diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/webaudio/iir_filter_node.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/webaudio/iir_filter_node.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/chromium/third_party/blink/renderer/modules/webaudio/iir_filter_node.cc b/chromium/third_party/blink/renderer/modules/webaudio/iir_filter_node.cc index 09f56436125..79baa0b961b 100644 --- a/chromium/third_party/blink/renderer/modules/webaudio/iir_filter_node.cc +++ b/chromium/third_party/blink/renderer/modules/webaudio/iir_filter_node.cc @@ -245,25 +245,25 @@ void IIRFilterNode::getFrequencyResponse( NotShared<DOMFloat32Array> mag_response, NotShared<DOMFloat32Array> phase_response, ExceptionState& exception_state) { - size_t frequency_hz_length = frequency_hz.View()->length(); + size_t frequency_hz_length = frequency_hz->length(); // All the arrays must have the same length. Just verify that all // the arrays have the same length as the |frequency_hz| array. - if (mag_response.View()->length() != frequency_hz_length) { + if (mag_response->length() != frequency_hz_length) { exception_state.ThrowDOMException( DOMExceptionCode::kInvalidAccessError, ExceptionMessages::IndexOutsideRange( - "magResponse length", mag_response.View()->length(), - frequency_hz_length, ExceptionMessages::kInclusiveBound, - frequency_hz_length, ExceptionMessages::kInclusiveBound)); + "magResponse length", mag_response->length(), frequency_hz_length, + ExceptionMessages::kInclusiveBound, frequency_hz_length, + ExceptionMessages::kInclusiveBound)); return; } - if (phase_response.View()->length() != frequency_hz_length) { + if (phase_response->length() != frequency_hz_length) { exception_state.ThrowDOMException( DOMExceptionCode::kInvalidAccessError, ExceptionMessages::IndexOutsideRange( - "phaseResponse length", phase_response.View()->length(), + "phaseResponse length", phase_response->length(), frequency_hz_length, ExceptionMessages::kInclusiveBound, frequency_hz_length, ExceptionMessages::kInclusiveBound)); return; @@ -280,8 +280,8 @@ void IIRFilterNode::getFrequencyResponse( // Nothing to do if the length is 0. if (frequency_hz_length_as_int > 0) { GetIIRFilterProcessor()->GetFrequencyResponse( - frequency_hz_length_as_int, frequency_hz.View()->Data(), - mag_response.View()->Data(), phase_response.View()->Data()); + frequency_hz_length_as_int, frequency_hz->Data(), mag_response->Data(), + phase_response->Data()); } } |