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

Unified Diff: Source/WebCore/webaudio/DelayDSPKernel.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
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);
« no previous file with comments | « Source/WebCore/platform/audio/ReverbConvolverStage.cpp ('k') | Source/WebCore/webaudio/RealtimeAnalyser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698