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

Unified Diff: Source/modules/webaudio/OscillatorNode.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/OscillatorNode.cpp
diff --git a/Source/modules/webaudio/OscillatorNode.cpp b/Source/modules/webaudio/OscillatorNode.cpp
index 599f41f9057c9e8908fcee120a0d30889881e2e9..66d7ece5f427f7b56c5aad3ee5372387b11b6f56 100644
--- a/Source/modules/webaudio/OscillatorNode.cpp
+++ b/Source/modules/webaudio/OscillatorNode.cpp
@@ -74,6 +74,7 @@ OscillatorNode::OscillatorNode(AudioContext* context, float sampleRate)
// An oscillator is always mono.
addOutput(adoptPtr(new AudioNodeOutput(this, 1)));
+ suspendIfNeeded();
initialize();
}

Powered by Google App Engine
This is Rietveld 408576698