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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: update comment, add TODO Created 3 years, 8 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: third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp b/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp
index d0904f9c8937442c1c344e4dbdc44959cca07fb1..0b8322443422bc6ddf8871814a8f48759f04780d 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioBufferSourceNode.cpp
@@ -425,7 +425,7 @@ void AudioBufferSourceHandler::SetBuffer(AudioBuffer* buffer,
destination_channels_ = WrapArrayUnique(new float*[number_of_channels]);
for (unsigned i = 0; i < number_of_channels; ++i)
- source_channels_[i] = buffer->getChannelData(i)->Data();
+ source_channels_[i] = buffer->getChannelData(i).View()->Data();
// If this is a grain (as set by a previous call to start()), validate the
// grain parameters now since it wasn't validated when start was called
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioBuffer.cpp ('k') | third_party/WebKit/Source/modules/webaudio/AudioParam.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698