| Index: Source/platform/audio/AudioDelayDSPKernel.cpp
|
| diff --git a/Source/platform/audio/AudioDelayDSPKernel.cpp b/Source/platform/audio/AudioDelayDSPKernel.cpp
|
| index 2eb5d972463fd7864fae8213d90a6feb1907f743..aded55985408eadbca95a06111c9d01e3687fa8c 100644
|
| --- a/Source/platform/audio/AudioDelayDSPKernel.cpp
|
| +++ b/Source/platform/audio/AudioDelayDSPKernel.cpp
|
| @@ -29,6 +29,7 @@
|
| #include "platform/audio/AudioDelayDSPKernel.h"
|
|
|
| #include "platform/audio/AudioUtilities.h"
|
| +#include "wtf/MathExtras.h"
|
| #include <algorithm>
|
|
|
| using namespace std;
|
| @@ -51,8 +52,8 @@ AudioDelayDSPKernel::AudioDelayDSPKernel(double maxDelayTime, float sampleRate)
|
| , m_writeIndex(0)
|
| , m_firstTime(true)
|
| {
|
| - ASSERT(maxDelayTime > 0.0);
|
| - if (maxDelayTime <= 0.0)
|
| + ASSERT(maxDelayTime > 0.0 && !std::isnan(maxDelayTime));
|
| + if (maxDelayTime <= 0.0 || std::isnan(maxDelayTime))
|
| return;
|
|
|
| size_t bufferLength = bufferLengthForDelay(maxDelayTime, sampleRate);
|
|
|