| Index: third_party/WebKit/Source/platform/audio/DynamicsCompressor.cpp
|
| diff --git a/third_party/WebKit/Source/platform/audio/DynamicsCompressor.cpp b/third_party/WebKit/Source/platform/audio/DynamicsCompressor.cpp
|
| index 38d1da601f86bc78e229f940517e7e3623d4b19e..8e911615ee3944e351f63c53d9cd8872bb58c8ac 100644
|
| --- a/third_party/WebKit/Source/platform/audio/DynamicsCompressor.cpp
|
| +++ b/third_party/WebKit/Source/platform/audio/DynamicsCompressor.cpp
|
| @@ -51,7 +51,7 @@ DynamicsCompressor::DynamicsCompressor(float sampleRate,
|
| }
|
|
|
| void DynamicsCompressor::setParameterValue(unsigned parameterID, float value) {
|
| - ASSERT(parameterID < ParamLast);
|
| + DCHECK_LT(parameterID, ParamLast);
|
| if (parameterID < ParamLast)
|
| m_parameters[parameterID] = value;
|
| }
|
| @@ -84,7 +84,7 @@ void DynamicsCompressor::initializeParameters() {
|
| }
|
|
|
| float DynamicsCompressor::parameterValue(unsigned parameterID) {
|
| - ASSERT(parameterID < ParamLast);
|
| + DCHECK_LT(parameterID, ParamLast);
|
| return m_parameters[parameterID];
|
| }
|
|
|
| @@ -100,7 +100,8 @@ void DynamicsCompressor::process(const AudioBus* sourceBus,
|
| unsigned numberOfChannels = destinationBus->numberOfChannels();
|
| unsigned numberOfSourceChannels = sourceBus->numberOfChannels();
|
|
|
| - ASSERT(numberOfChannels == m_numberOfChannels && numberOfSourceChannels);
|
| + DCHECK_EQ(numberOfChannels, m_numberOfChannels);
|
| + DCHECK(numberOfSourceChannels);
|
|
|
| if (numberOfChannels != m_numberOfChannels || !numberOfSourceChannels) {
|
| destinationBus->zero();
|
|
|