Index: third_party/WebKit/Source/platform/audio/AudioDelayDSPKernel.cpp |
diff --git a/third_party/WebKit/Source/platform/audio/AudioDelayDSPKernel.cpp b/third_party/WebKit/Source/platform/audio/AudioDelayDSPKernel.cpp |
index de7e6b9775d2652a523bccce4f3b3301a073ebfa..1814a4521563dd1335316c2354fbf8be9c817d9c 100644 |
--- a/third_party/WebKit/Source/platform/audio/AudioDelayDSPKernel.cpp |
+++ b/third_party/WebKit/Source/platform/audio/AudioDelayDSPKernel.cpp |
@@ -119,7 +119,10 @@ void AudioDelayDSPKernel::process(const float* source, float* destination, size_ |
for (unsigned i = 0; i < framesToProcess; ++i) { |
if (sampleAccurate) { |
delayTime = delayTimes[i]; |
- delayTime = clampTo(delayTime, 0.0, maxTime); |
+ if (std::isnan(delayTime)) |
+ delayTime = maxTime; |
+ else |
+ delayTime = clampTo(delayTime, 0.0, maxTime); |
m_currentDelayTime = delayTime; |
} else { |
// Approach desired delay time. |