| Index: third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.cpp b/third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
|
| index 4efdff8a4eac5d6bed54ece5bacf7e3bd6acc9c7..e1ec4ad8ff1e0698a9ae6870c7cbe345f56040cf 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
|
| +++ b/third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
|
| @@ -47,7 +47,7 @@ PassRefPtr<DefaultAudioDestinationHandler> DefaultAudioDestinationHandler::creat
|
|
|
| DefaultAudioDestinationHandler::~DefaultAudioDestinationHandler()
|
| {
|
| - ASSERT(!isInitialized());
|
| + DCHECK(!isInitialized());
|
| }
|
|
|
| void DefaultAudioDestinationHandler::dispose()
|
| @@ -58,7 +58,7 @@ void DefaultAudioDestinationHandler::dispose()
|
|
|
| void DefaultAudioDestinationHandler::initialize()
|
| {
|
| - ASSERT(isMainThread());
|
| + DCHECK(isMainThread());
|
| if (isInitialized())
|
| return;
|
|
|
| @@ -68,7 +68,7 @@ void DefaultAudioDestinationHandler::initialize()
|
|
|
| void DefaultAudioDestinationHandler::uninitialize()
|
| {
|
| - ASSERT(isMainThread());
|
| + DCHECK(isMainThread());
|
| if (!isInitialized())
|
| return;
|
|
|
| @@ -88,18 +88,18 @@ void DefaultAudioDestinationHandler::createDestination()
|
|
|
| void DefaultAudioDestinationHandler::startRendering()
|
| {
|
| - ASSERT(isInitialized());
|
| + DCHECK(isInitialized());
|
| if (isInitialized()) {
|
| - ASSERT(!m_destination->isPlaying());
|
| + DCHECK(!m_destination->isPlaying());
|
| m_destination->start();
|
| }
|
| }
|
|
|
| void DefaultAudioDestinationHandler::stopRendering()
|
| {
|
| - ASSERT(isInitialized());
|
| + DCHECK(isInitialized());
|
| if (isInitialized()) {
|
| - ASSERT(m_destination->isPlaying());
|
| + DCHECK(m_destination->isPlaying());
|
| m_destination->stop();
|
| }
|
| }
|
| @@ -115,7 +115,7 @@ void DefaultAudioDestinationHandler::setChannelCount(unsigned long channelCount,
|
| // send to the audio hardware. It can only be set depending on the maximum number of
|
| // channels supported by the hardware.
|
|
|
| - ASSERT(isMainThread());
|
| + DCHECK(isMainThread());
|
|
|
| if (!maxChannelCount() || channelCount > maxChannelCount()) {
|
| exceptionState.throwDOMException(
|
|
|