Add support for disabling pitching.
This provides an optimization by allowing processing to bypass the resampler. Audio data needs to pass through the resampler even for the case where pitch=1 because it needs to update internal buffers which if it didn't do, would result in a glitch when moving away from 1. In practice most sounds won't require individual pitch control, however in the interest in being consistent with miniaudio's philosophy of things "Just Working", pitching is enabled by default. Pitching can be disabled with MA_SOUND_FLAG_DISABLE_PITCH in ma_sound_init_*() and ma_sound_group_init().
Showing
Please register or sign in to comment