Chromium Code Reviews| Index: third_party/WebKit/Source/modules/webaudio/AnalyserNode.cpp |
| diff --git a/third_party/WebKit/Source/modules/webaudio/AnalyserNode.cpp b/third_party/WebKit/Source/modules/webaudio/AnalyserNode.cpp |
| index 822e8117b326ed224e4691260fa771803433cafc..01ebca82d3e2f636a5b6c02bc361de1a6155ed85 100644 |
| --- a/third_party/WebKit/Source/modules/webaudio/AnalyserNode.cpp |
| +++ b/third_party/WebKit/Source/modules/webaudio/AnalyserNode.cpp |
| @@ -202,12 +202,9 @@ AnalyserNode* AnalyserNode::Create(BaseAudioContext* context, |
| node->HandleChannelOptions(options, exception_state); |
| - if (options.hasFftSize()) |
| - node->setFftSize(options.fftSize(), exception_state); |
| - |
| - if (options.hasSmoothingTimeConstant()) |
| - node->setSmoothingTimeConstant(options.smoothingTimeConstant(), |
| - exception_state); |
| + node->setFftSize(options.fftSize(), exception_state); |
|
hongchan
2017/04/12 16:37:53
Not relevant to this CL, but why 'set..' not 'Set.
Raymond Toy
2017/04/12 18:10:12
Who knows? setFftSize didn't get changed by the Gr
|
| + node->setSmoothingTimeConstant(options.smoothingTimeConstant(), |
| + exception_state); |
| // minDecibels and maxDecibels have default values. Set both of the values |
| // at once. |