| Index: third_party/WebKit/Source/platform/audio/AudioUtilities.cpp
|
| diff --git a/third_party/WebKit/Source/platform/audio/AudioUtilities.cpp b/third_party/WebKit/Source/platform/audio/AudioUtilities.cpp
|
| index e716d6ca6566fea465d5dbd84f916ff8b42f0f91..f162c6be9079d852a87351ac80e4471417bbf4e3 100644
|
| --- a/third_party/WebKit/Source/platform/audio/AudioUtilities.cpp
|
| +++ b/third_party/WebKit/Source/platform/audio/AudioUtilities.cpp
|
| @@ -37,11 +37,7 @@ float decibelsToLinear(float decibels)
|
|
|
| float linearToDecibels(float linear)
|
| {
|
| - // It's not possible to calculate decibels for a zero linear value since it would be -Inf.
|
| - // -1000.0 dB represents a very tiny linear value in case we ever reach this case.
|
| - ASSERT(linear);
|
| - if (!linear)
|
| - return -1000;
|
| + ASSERT(linear >= 0);
|
|
|
| return 20 * log10f(linear);
|
| }
|
|
|