diff options
Diffstat (limited to 'alc/effects/convolution.cpp')
-rw-r--r-- | alc/effects/convolution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/effects/convolution.cpp b/alc/effects/convolution.cpp index 68becf49..9d8f9767 100644 --- a/alc/effects/convolution.cpp +++ b/alc/effects/convolution.cpp @@ -223,7 +223,7 @@ EffectBufferBase *ConvolutionState::createBuffer(const ALCdevice *device, /* Calculate the number of segments needed to hold the impulse response and * the input history (rounded up), and allocate them. */ - filter->mNumConvolveSegs = (buffer.mSampleLen+(ConvolveUpdateSamples-1)) / + filter->mNumConvolveSegs = (resampledCount+(ConvolveUpdateSamples-1)) / ConvolveUpdateSamples; const size_t complex_length{filter->mNumConvolveSegs * m * (numChannels+1)}; |