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

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

Issue 23596014: Keep AudioScheduledSourceNode alive until onended is called. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 years, 3 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/modules/webaudio/AudioBufferSourceNode.cpp
diff --git a/Source/modules/webaudio/AudioBufferSourceNode.cpp b/Source/modules/webaudio/AudioBufferSourceNode.cpp
index ae13166067105727edc12d3242d773b133cc94d6..8239f4a90e85d271c8c695911d858a4eb35e6145 100644
--- a/Source/modules/webaudio/AudioBufferSourceNode.cpp
+++ b/Source/modules/webaudio/AudioBufferSourceNode.cpp
@@ -75,6 +75,7 @@ AudioBufferSourceNode::AudioBufferSourceNode(AudioContext* context, float sample
// Default to mono. A call to setBuffer() will set the number of output channels to that of the buffer.
addOutput(adoptPtr(new AudioNodeOutput(this, 1)));
+ suspendIfNeeded();
initialize();
}
« no previous file with comments | « no previous file | Source/modules/webaudio/AudioBufferSourceNode.idl » ('j') | Source/modules/webaudio/AudioScheduledSourceNode.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698