From 4171f9460fb7c6f634690d772f67af5d83fbdb64 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 17 Jan 2023 21:56:29 -0800 Subject: Make a variable for a reused value --- alc/effects/pshifter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/effects/pshifter.cpp') diff --git a/alc/effects/pshifter.cpp b/alc/effects/pshifter.cpp index f0a4c1dd..c2bf0ebf 100644 --- a/alc/effects/pshifter.cpp +++ b/alc/effects/pshifter.cpp @@ -227,10 +227,10 @@ void PshifterState::process(const size_t samplesToDo, const al::span>1) - 1)/mPitchShiftI + 1)}; + (((STFT_HALF_SIZE+1)<>1)) >> MixerFracBits}; + const size_t j{(k*mPitchShiftI + MixerFracHalf) >> MixerFracBits}; /* If more than two bins end up together, use the target frequency * bin for the one with the dominant magnitude. There might be a -- cgit v1.2.3