From dcd432bc8458a74d219ac3e4571a7f90055489a9 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sat, 17 Jun 2023 08:11:10 +1000 Subject: [PATCH] Update data converter to use the default LPF order for resampling. This ensures the data converter has the same defaults as the resampler so things work a bit more consistently. --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index 4e2b8b01..62bedcc0 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -53901,7 +53901,7 @@ MA_API ma_data_converter_config ma_data_converter_config_init_default(void) config.allowDynamicSampleRate = MA_FALSE; /* Disable dynamic sample rates by default because dynamic rate adjustments should be quite rare and it allows an optimization for cases when the in and out sample rates are the same. */ /* Linear resampling defaults. */ - config.resampling.linear.lpfOrder = 1; + config.resampling.linear.lpfOrder = ma_min(MA_DEFAULT_RESAMPLER_LPF_ORDER, MA_MAX_FILTER_ORDER); return config; }