aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/reverb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/effects/reverb.cpp')
-rw-r--r--Alc/effects/reverb.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/effects/reverb.cpp b/Alc/effects/reverb.cpp
index 8b63e473..229cd316 100644
--- a/Alc/effects/reverb.cpp
+++ b/Alc/effects/reverb.cpp
@@ -535,9 +535,10 @@ static ALboolean AllocLines(const ALuint frequency, ReverbState *State)
totalSamples += CalcLineLength(length, totalSamples, frequency, 0,
&State->mLate.Delay);
+ totalSamples *= NUM_LINES;
if(totalSamples != State->mSampleBuffer.size())
{
- State->mSampleBuffer.resize(sizeof(ALfloat[NUM_LINES]) * totalSamples);
+ State->mSampleBuffer.resize(totalSamples);
State->mSampleBuffer.shrink_to_fit();
}