| Index: third_party/WebKit/Source/modules/webaudio/PannerNode.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp b/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp
|
| index 939c9a7d80dc99b002963efc786e10ff67cb9fbe..cacfde36ba820402ed034a9823db71f690c28d15 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp
|
| +++ b/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp
|
| @@ -520,7 +520,7 @@ float PannerHandler::calculateDistanceConeGain(
|
|
|
| void PannerHandler::azimuthElevation(double* outAzimuth, double* outElevation)
|
| {
|
| - ASSERT(context()->isAudioThread());
|
| + DCHECK(context()->isAudioThread());
|
|
|
| // Calculate new azimuth and elevation if the panner or the listener changed
|
| // position or orientation in any way.
|
| @@ -541,7 +541,7 @@ void PannerHandler::azimuthElevation(double* outAzimuth, double* outElevation)
|
|
|
| float PannerHandler::distanceConeGain()
|
| {
|
| - ASSERT(context()->isAudioThread());
|
| + DCHECK(context()->isAudioThread());
|
|
|
| // Calculate new distance and cone gain if the panner or the listener
|
| // changed position or orientation in any way.
|
| @@ -564,7 +564,7 @@ void PannerHandler::markPannerAsDirty(unsigned dirty)
|
|
|
| void PannerHandler::setChannelCount(unsigned long channelCount, ExceptionState& exceptionState)
|
| {
|
| - ASSERT(isMainThread());
|
| + DCHECK(isMainThread());
|
| BaseAudioContext::AutoLocker locker(context());
|
|
|
| // A PannerNode only supports 1 or 2 channels
|
| @@ -589,7 +589,7 @@ void PannerHandler::setChannelCount(unsigned long channelCount, ExceptionState&
|
|
|
| void PannerHandler::setChannelCountMode(const String& mode, ExceptionState& exceptionState)
|
| {
|
| - ASSERT(isMainThread());
|
| + DCHECK(isMainThread());
|
| BaseAudioContext::AutoLocker locker(context());
|
|
|
| ChannelCountMode oldMode = m_channelCountMode;
|
|
|