Skip to content

Commit

Permalink
Read the correct half-frequency bin
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Oct 14, 2023
1 parent c7ce776 commit d3d2357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alc/effects/convolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit d3d2357

Please sign in to comment.