aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-10-14 10:56:37 -0700
committerChris Robinson <[email protected]>2023-10-14 10:56:37 -0700
commitd3d23579add16fbe3c21f2b436457f398f0f5254 (patch)
tree5e42c27f55297ae6420a33e0749bb627304626b4 /alc
parentc7ce77634ffeb9dc84c4435aed3dac59b042bfbd (diff)
Read the correct half-frequency bin
Diffstat (limited to 'alc')
-rw-r--r--alc/effects/convolution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/effects/convolution.cpp b/alc/effects/convolution.cpp
index fe681745..ca356508 100644
--- a/alc/effects/convolution.cpp
+++ b/alc/effects/convolution.cpp
@@ -418,7 +418,7 @@ void ConvolutionState::deviceUpdate(const DeviceBase *device, const BufferStorag
{
ffttmp[i*2 ] = static_cast<float>(fftbuffer[i].real()) * fftscale;
ffttmp[i*2 + 1] = static_cast<float>((i == 0) ?
- fftbuffer[ConvolveUpdateSamples+1].real() : fftbuffer[i].imag()) * fftscale;
+ fftbuffer[ConvolveUpdateSamples].real() : fftbuffer[i].imag()) * fftscale;
}
/* Reorder backward to make it suitable for pffft_zconvolve and the
* subsequent pffft_transform(..., PFFFT_BACKWARD).