| Index: Source/modules/webaudio/DefaultAudioDestinationNode.cpp
|
| diff --git a/Source/modules/webaudio/DefaultAudioDestinationNode.cpp b/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
|
| index 27436a24499f8337aa8835d4bd330973a68f5f57..0d2b0299884049ded8b58b0b41ff2a3dd4df5412 100644
|
| --- a/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
|
| +++ b/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
|
| @@ -90,8 +90,19 @@ void DefaultAudioDestinationNode::createDestination()
|
| void DefaultAudioDestinationNode::startRendering()
|
| {
|
| ASSERT(isInitialized());
|
| - if (isInitialized())
|
| + if (isInitialized()) {
|
| + ASSERT(!m_destination->isPlaying());
|
| m_destination->start();
|
| + }
|
| +}
|
| +
|
| +void DefaultAudioDestinationNode::stopRendering()
|
| +{
|
| + ASSERT(isInitialized());
|
| + if (isInitialized()) {
|
| + ASSERT(m_destination->isPlaying());
|
| + m_destination->stop();
|
| + }
|
| }
|
|
|
| unsigned long DefaultAudioDestinationNode::maxChannelCount() const
|
|
|