| Index: third_party/WebKit/Source/modules/webaudio/RealtimeAnalyser.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/RealtimeAnalyser.cpp b/third_party/WebKit/Source/modules/webaudio/RealtimeAnalyser.cpp
|
| index 26b2f68dedaa3cf74cb9ea7e9ad78167bb2695a9..6f8b620ee53bd811963e1dfe5fa82ddf15aa825c 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/RealtimeAnalyser.cpp
|
| +++ b/third_party/WebKit/Source/modules/webaudio/RealtimeAnalyser.cpp
|
| @@ -190,9 +190,7 @@ void RealtimeAnalyser::doFFTAnalysis()
|
| void RealtimeAnalyser::getFloatFrequencyData(DOMFloat32Array* destinationArray)
|
| {
|
| ASSERT(isMainThread());
|
| -
|
| - if (!destinationArray)
|
| - return;
|
| + ASSERT(destinationArray);
|
|
|
| doFFTAnalysis();
|
|
|
| @@ -215,9 +213,7 @@ void RealtimeAnalyser::getFloatFrequencyData(DOMFloat32Array* destinationArray)
|
| void RealtimeAnalyser::getByteFrequencyData(DOMUint8Array* destinationArray)
|
| {
|
| ASSERT(isMainThread());
|
| -
|
| - if (!destinationArray)
|
| - return;
|
| + ASSERT(destinationArray);
|
|
|
| doFFTAnalysis();
|
|
|
| @@ -252,9 +248,7 @@ void RealtimeAnalyser::getByteFrequencyData(DOMUint8Array* destinationArray)
|
| void RealtimeAnalyser::getFloatTimeDomainData(DOMFloat32Array* destinationArray)
|
| {
|
| ASSERT(isMainThread());
|
| -
|
| - if (!destinationArray)
|
| - return;
|
| + ASSERT(destinationArray);
|
|
|
| unsigned fftSize = this->fftSize();
|
| size_t len = std::min(fftSize, destinationArray->length());
|
| @@ -281,9 +275,7 @@ void RealtimeAnalyser::getFloatTimeDomainData(DOMFloat32Array* destinationArray)
|
| void RealtimeAnalyser::getByteTimeDomainData(DOMUint8Array* destinationArray)
|
| {
|
| ASSERT(isMainThread());
|
| -
|
| - if (!destinationArray)
|
| - return;
|
| + ASSERT(destinationArray);
|
|
|
| unsigned fftSize = this->fftSize();
|
| size_t len = std::min(fftSize, destinationArray->length());
|
|
|