Index: Source/WebCore/platform/audio/ReverbConvolverStage.cpp |
=================================================================== |
--- Source/WebCore/platform/audio/ReverbConvolverStage.cpp (revision 93809) |
+++ Source/WebCore/platform/audio/ReverbConvolverStage.cpp (working copy) |
@@ -56,7 +56,7 @@ |
m_fftKernel.doPaddedFFT(impulseResponse + stageOffset, stageLength); |
m_convolver = adoptPtr(new FFTConvolver(fftSize)); |
- m_temporaryBuffer.resize(renderSliceSize); |
+ m_temporaryBuffer.allocate(renderSliceSize); |
// The convolution stage at offset stageOffset needs to have a corresponding delay to cancel out the offset. |
size_t totalDelay = stageOffset + reverbTotalLatency; |
@@ -78,7 +78,7 @@ |
m_preReadWriteIndex = 0; |
m_framesProcessed = 0; // total frames processed so far |
- m_preDelayBuffer.resize(m_preDelayLength < fftSize ? fftSize : m_preDelayLength); |
+ m_preDelayBuffer.allocate(m_preDelayLength < fftSize ? fftSize : m_preDelayLength); |
} |
void ReverbConvolverStage::processInBackground(ReverbConvolver* convolver, size_t framesToProcess) |