Disable filtering for pitch shifting on sounds by design.

This commit is contained in:
David Reid
2026-02-14 13:29:27 +10:00
parent 0615ce28f1
commit c39ace1604
+1 -1
View File
@@ -84434,7 +84434,7 @@ MA_API ma_sound_config ma_sound_config_init(ma_engine* pEngine)
config.monoExpansionMode = ma_mono_expansion_mode_default;
config.pitchResampling = ma_resampler_config_init(ma_format_f32, 0, 0, 0, ma_resample_algorithm_linear);
config.pitchResampling.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. */
config.pitchResampling.linear.lpfOrder = 0; /* <-- Pitch shifting does not need filtering by default. Might make this configurable later on if I can be sold on it. */
}
config.rangeEndInPCMFrames = ~((ma_uint64)0);