| 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 #ifndef IIRDSPKernel_h | 5 #ifndef IIRDSPKernel_h |
| 6 #define IIRDSPKernel_h | 6 #define IIRDSPKernel_h |
| 7 | 7 |
| 8 #include "modules/webaudio/IIRProcessor.h" | 8 #include "modules/webaudio/IIRProcessor.h" |
| 9 #include "platform/audio/AudioDSPKernel.h" | 9 #include "platform/audio/AudioDSPKernel.h" |
| 10 #include "platform/audio/IIRFilter.h" | 10 #include "platform/audio/IIRFilter.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 // Get the magnitude and phase response of the filter at the given | 26 // Get the magnitude and phase response of the filter at the given |
| 27 // set of frequencies (in Hz). The phase response is in radians. | 27 // set of frequencies (in Hz). The phase response is in radians. |
| 28 void GetFrequencyResponse(int n_frequencies, | 28 void GetFrequencyResponse(int n_frequencies, |
| 29 const float* frequency_hz, | 29 const float* frequency_hz, |
| 30 float* mag_response, | 30 float* mag_response, |
| 31 float* phase_response); | 31 float* phase_response); |
| 32 | 32 |
| 33 double TailTime() const override; | 33 double TailTime() const override; |
| 34 double LatencyTime() const override; | 34 double LatencyTime() const override; |
| 35 bool RequiresTailProcessing() const override; |
| 35 | 36 |
| 36 protected: | 37 protected: |
| 37 IIRFilter iir_; | 38 IIRFilter iir_; |
| 38 | 39 |
| 39 private: | 40 private: |
| 40 double tail_time_; | 41 double tail_time_; |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 } // namespace blink | 44 } // namespace blink |
| 44 | 45 |
| 45 #endif // IIRDSPKernel_h | 46 #endif // IIRDSPKernel_h |
| OLD | NEW |