| Index: Source/core/platform/audio/AudioResampler.cpp
|
| diff --git a/Source/core/platform/audio/AudioResampler.cpp b/Source/core/platform/audio/AudioResampler.cpp
|
| index a3c18cb182ec8cad6ccbc652cbbf8b33af252991..58ceae1c6fcc4b9fea2f51b9f68b2f7c7c3c5ffe 100644
|
| --- a/Source/core/platform/audio/AudioResampler.cpp
|
| +++ b/Source/core/platform/audio/AudioResampler.cpp
|
| @@ -33,7 +33,7 @@
|
| #include "wtf/MathExtras.h"
|
|
|
| using namespace std;
|
| -
|
| +
|
| namespace WebCore {
|
|
|
| const double AudioResampler::MaxRate = 8.0;
|
| @@ -76,7 +76,7 @@ void AudioResampler::process(AudioSourceProvider* provider, AudioBus* destinatio
|
| ASSERT(provider);
|
| if (!provider)
|
| return;
|
| -
|
| +
|
| unsigned numberOfChannels = m_kernels.size();
|
|
|
| // Make sure our configuration matches the bus we're rendering to.
|
| @@ -93,7 +93,7 @@ void AudioResampler::process(AudioSourceProvider* provider, AudioBus* destinatio
|
| ASSERT(fillPointer);
|
| if (!fillPointer)
|
| return;
|
| -
|
| +
|
| m_sourceBus->setChannelMemory(i, fillPointer, framesNeeded);
|
| }
|
|
|
| @@ -112,7 +112,7 @@ void AudioResampler::setRate(double rate)
|
| {
|
| if (std::isnan(rate) || std::isinf(rate) || rate <= 0.0)
|
| return;
|
| -
|
| +
|
| m_rate = min(AudioResampler::MaxRate, rate);
|
| }
|
|
|
|
|