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

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

Issue 625363004: Implement suspend/resume for AudioContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix typo caught by bots but not locally Created 6 years, 2 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/DefaultAudioDestinationNode.cpp
diff --git a/Source/modules/webaudio/DefaultAudioDestinationNode.cpp b/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
index 27436a24499f8337aa8835d4bd330973a68f5f57..73624867b5299f2f8619e5b785813018d6b5a523 100644
--- a/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
+++ b/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
@@ -94,6 +94,13 @@ void DefaultAudioDestinationNode::startRendering()
m_destination->start();
}
+void DefaultAudioDestinationNode::stop()
+{
+ ASSERT(isInitialized());
+ if (isInitialized())
+ m_destination->stop();
+}
haraken 2014/10/15 15:36:26 Can we add an ASSERT to verify that start() and st
Raymond Toy 2014/10/15 19:50:50 Added a check that destination is playing when cal
+
unsigned long DefaultAudioDestinationNode::maxChannelCount() const
{
return AudioDestination::maxChannelCount();

Powered by Google App Engine
This is Rietveld 408576698