Index: Source/WebCore/webaudio/DelayDSPKernel.cpp |
=================================================================== |
--- Source/WebCore/webaudio/DelayDSPKernel.cpp (revision 93809) |
+++ Source/WebCore/webaudio/DelayDSPKernel.cpp (working copy) |
@@ -48,7 +48,7 @@ |
if (!processor) |
return; |
- m_buffer.resize(static_cast<size_t>(processor->sampleRate() * DefaultMaxDelayTime)); |
+ m_buffer.allocate(static_cast<size_t>(processor->sampleRate() * DefaultMaxDelayTime)); |
m_buffer.zero(); |
m_smoothingRate = AudioUtilities::discreteTimeConstantForSampleRate(SmoothingTimeConstant, processor->sampleRate()); |
@@ -69,7 +69,7 @@ |
if (!bufferLength) |
return; |
- m_buffer.resize(bufferLength); |
+ m_buffer.allocate(bufferLength); |
m_buffer.zero(); |
m_smoothingRate = AudioUtilities::discreteTimeConstantForSampleRate(SmoothingTimeConstant, sampleRate); |