Chromium Code Reviews| 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(); |