Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Unified Diff: Source/WebCore/platform/audio/ReverbConvolverStage.cpp

Issue 7745029: Merge 92408 - Make sure that AudioArray is 16-byte aligned (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/platform/audio/Biquad.cpp ('k') | Source/WebCore/webaudio/DelayDSPKernel.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/WebCore/platform/audio/Biquad.cpp ('k') | Source/WebCore/webaudio/DelayDSPKernel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698