summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/webaudio/biquad_filter_node.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/webaudio/biquad_filter_node.cc')
-rw-r--r--chromium/third_party/blink/renderer/modules/webaudio/biquad_filter_node.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/chromium/third_party/blink/renderer/modules/webaudio/biquad_filter_node.cc b/chromium/third_party/blink/renderer/modules/webaudio/biquad_filter_node.cc
index 2c732a101f3..0c6e6623bf7 100644
--- a/chromium/third_party/blink/renderer/modules/webaudio/biquad_filter_node.cc
+++ b/chromium/third_party/blink/renderer/modules/webaudio/biquad_filter_node.cc
@@ -255,23 +255,23 @@ void BiquadFilterNode::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();
- 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;
@@ -288,8 +288,8 @@ void BiquadFilterNode::getFrequencyResponse(
// If the length is 0, there's nothing to do.
if (frequency_hz_length_as_int > 0) {
GetBiquadProcessor()->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());
}
}