diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/webaudio/analyser_node.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/webaudio/analyser_node.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chromium/third_party/blink/renderer/modules/webaudio/analyser_node.cc b/chromium/third_party/blink/renderer/modules/webaudio/analyser_node.cc index 39ee21aae4b..a6887cfd30d 100644 --- a/chromium/third_party/blink/renderer/modules/webaudio/analyser_node.cc +++ b/chromium/third_party/blink/renderer/modules/webaudio/analyser_node.cc @@ -48,7 +48,7 @@ AnalyserHandler::~AnalyserHandler() { Uninitialize(); } -void AnalyserHandler::Process(size_t frames_to_process) { +void AnalyserHandler::Process(uint32_t frames_to_process) { AudioBus* output_bus = Output(0).Bus(); if (!IsInitialized()) { @@ -205,7 +205,7 @@ AnalyserNode* AnalyserNode::Create(BaseAudioContext& context, } AnalyserNode* AnalyserNode::Create(BaseAudioContext* context, - const AnalyserOptions& options, + const AnalyserOptions* options, ExceptionState& exception_state) { DCHECK(IsMainThread()); @@ -216,13 +216,13 @@ AnalyserNode* AnalyserNode::Create(BaseAudioContext* context, node->HandleChannelOptions(options, exception_state); - node->setFftSize(options.fftSize(), exception_state); - node->setSmoothingTimeConstant(options.smoothingTimeConstant(), + node->setFftSize(options->fftSize(), exception_state); + node->setSmoothingTimeConstant(options->smoothingTimeConstant(), exception_state); // minDecibels and maxDecibels have default values. Set both of the values // at once. - node->SetMinMaxDecibels(options.minDecibels(), options.maxDecibels(), + node->SetMinMaxDecibels(options->minDecibels(), options->maxDecibels(), exception_state); return node; |