Temporary hack to fix some clicking glitches relating to resampling.

This commit is contained in:
David Reid
2021-01-26 17:21:31 +10:00
parent 243df7ebe0
commit 8cd72f46a0
+1
View File
@@ -10269,6 +10269,7 @@ MA_API ma_result ma_engine_node_init(const ma_engine_node_config* pConfig, const
/* We'll always do resampling first. */
resamplerConfig = ma_resampler_config_init(ma_format_f32, baseNodeConfig.inputChannels[0], ma_engine_get_sample_rate(pEngineNode->pEngine), ma_engine_get_sample_rate(pEngineNode->pEngine), ma_resample_algorithm_linear);
resamplerConfig.linear.lpfOrder = 0; /* <-- Need to disable low-pass filtering for pitch shifting for now because there's cases where the biquads are becoming unstable. Need to figure out a better fix for this. */
result = ma_resampler_init(&resamplerConfig, &pEngineNode->resampler);
if (result != MA_SUCCESS) {