OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 AudioParamHandler& gain, | 60 AudioParamHandler& gain, |
61 AudioParamHandler& detune); | 61 AudioParamHandler& detune); |
62 ~BiquadProcessor() override; | 62 ~BiquadProcessor() override; |
63 | 63 |
64 std::unique_ptr<AudioDSPKernel> createKernel() override; | 64 std::unique_ptr<AudioDSPKernel> createKernel() override; |
65 | 65 |
66 void process(const AudioBus* source, | 66 void process(const AudioBus* source, |
67 AudioBus* destination, | 67 AudioBus* destination, |
68 size_t framesToProcess) override; | 68 size_t framesToProcess) override; |
69 | 69 |
| 70 void processOnlyAudioParams(size_t framesToProcess) override; |
| 71 |
70 // Get the magnitude and phase response of the filter at the given | 72 // Get the magnitude and phase response of the filter at the given |
71 // set of frequencies (in Hz). The phase response is in radians. | 73 // set of frequencies (in Hz). The phase response is in radians. |
72 void getFrequencyResponse(int nFrequencies, | 74 void getFrequencyResponse(int nFrequencies, |
73 const float* frequencyHz, | 75 const float* frequencyHz, |
74 float* magResponse, | 76 float* magResponse, |
75 float* phaseResponse); | 77 float* phaseResponse); |
76 | 78 |
77 void checkForDirtyCoefficients(); | 79 void checkForDirtyCoefficients(); |
78 | 80 |
79 bool filterCoefficientsDirty() const { return m_filterCoefficientsDirty; } | 81 bool filterCoefficientsDirty() const { return m_filterCoefficientsDirty; } |
(...skipping 18 matching lines...) Expand all Loading... |
98 // so DSP kernels know when to re-compute coefficients | 100 // so DSP kernels know when to re-compute coefficients |
99 bool m_filterCoefficientsDirty; | 101 bool m_filterCoefficientsDirty; |
100 | 102 |
101 // Set to true if any of the filter parameters are sample-accurate. | 103 // Set to true if any of the filter parameters are sample-accurate. |
102 bool m_hasSampleAccurateValues; | 104 bool m_hasSampleAccurateValues; |
103 }; | 105 }; |
104 | 106 |
105 } // namespace blink | 107 } // namespace blink |
106 | 108 |
107 #endif // BiquadProcessor_h | 109 #endif // BiquadProcessor_h |
OLD | NEW |