OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "modules/webaudio/IIRProcessor.h" | 5 #include "modules/webaudio/IIRProcessor.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "modules/webaudio/IIRDSPKernel.h" | 8 #include "modules/webaudio/IIRDSPKernel.h" |
8 #include "wtf/PtrUtil.h" | 9 #include "wtf/PtrUtil.h" |
9 #include <memory> | |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 IIRProcessor::IIRProcessor(float sampleRate, | 13 IIRProcessor::IIRProcessor(float sampleRate, |
14 size_t numberOfChannels, | 14 size_t numberOfChannels, |
15 const Vector<double>& feedforwardCoef, | 15 const Vector<double>& feedforwardCoef, |
16 const Vector<double>& feedbackCoef) | 16 const Vector<double>& feedbackCoef) |
17 : AudioDSPKernelProcessor(sampleRate, numberOfChannels) { | 17 : AudioDSPKernelProcessor(sampleRate, numberOfChannels) { |
18 unsigned feedbackLength = feedbackCoef.size(); | 18 unsigned feedbackLength = feedbackCoef.size(); |
19 unsigned feedforwardLength = feedforwardCoef.size(); | 19 unsigned feedforwardLength = feedforwardCoef.size(); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 81 |
82 void IIRProcessor::getFrequencyResponse(int nFrequencies, | 82 void IIRProcessor::getFrequencyResponse(int nFrequencies, |
83 const float* frequencyHz, | 83 const float* frequencyHz, |
84 float* magResponse, | 84 float* magResponse, |
85 float* phaseResponse) { | 85 float* phaseResponse) { |
86 m_responseKernel->getFrequencyResponse(nFrequencies, frequencyHz, magResponse, | 86 m_responseKernel->getFrequencyResponse(nFrequencies, frequencyHz, magResponse, |
87 phaseResponse); | 87 phaseResponse); |
88 } | 88 } |
89 | 89 |
90 } // namespace blink | 90 } // namespace blink |
OLD | NEW |