| Index: third_party/WebKit/Source/platform/audio/DynamicsCompressorKernel.cpp
|
| diff --git a/third_party/WebKit/Source/platform/audio/DynamicsCompressorKernel.cpp b/third_party/WebKit/Source/platform/audio/DynamicsCompressorKernel.cpp
|
| index e0cc41a80b1b444167aabe7c293bc011b95655d4..3bbd761e7ec02095af8fa84beeca84b2799b2f60 100644
|
| --- a/third_party/WebKit/Source/platform/audio/DynamicsCompressorKernel.cpp
|
| +++ b/third_party/WebKit/Source/platform/audio/DynamicsCompressorKernel.cpp
|
| @@ -29,10 +29,11 @@
|
| #include "platform/audio/DynamicsCompressorKernel.h"
|
|
|
| #if ENABLE(WEB_AUDIO)
|
| -#include <algorithm>
|
| #include "platform/audio/AudioUtilities.h"
|
| #include "platform/audio/DenormalDisabler.h"
|
| #include "wtf/MathExtras.h"
|
| +#include <algorithm>
|
| +#include <cmath>
|
|
|
| namespace blink {
|
|
|
| @@ -318,8 +319,7 @@ void DynamicsCompressorKernel::process(const float* sourceChannels[],
|
|
|
| // Contain within range: -12 -> 0 then scale to go from 0 -> 3
|
| float x = compressionDiffDb;
|
| - x = std::max(-12.0f, x);
|
| - x = std::min(0.0f, x);
|
| + x = clampTo(x, -12.0f, 0.0f);
|
| x = 0.25f * (x + 12);
|
|
|
| // Compute adaptive release curve using 4th order polynomial.
|
|
|