From 3a58bac7bd4e0baa2a24169703c8cb7e6fc49e8f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 9 Nov 2020 08:10:43 -0800 Subject: Fix pitch shifter bin count --- alc/effects/pshifter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alc/effects/pshifter.cpp') diff --git a/alc/effects/pshifter.cpp b/alc/effects/pshifter.cpp index 8a525cf1..e9d188d3 100644 --- a/alc/effects/pshifter.cpp +++ b/alc/effects/pshifter.cpp @@ -207,7 +207,7 @@ void PshifterState::process(const size_t samplesToDo, const al::span>1))/mPitchShiftI)}; + (((STFT_HALF_SIZE+1)<>1) - 1)/mPitchShiftI + 1)}; for(size_t k{0u};k < bin_count;k++) { const size_t j{(k*mPitchShiftI + (MixerFracOne>>1)) >> MixerFracBits}; -- cgit v1.2.3