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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 gain = GetBiquadProcessor()->Parameter3().Value(); | 201 gain = GetBiquadProcessor()->Parameter3().Value(); |
202 detune = GetBiquadProcessor()->Parameter4().Value(); | 202 detune = GetBiquadProcessor()->Parameter4().Value(); |
203 } | 203 } |
204 | 204 |
205 UpdateCoefficients(1, &cutoff_frequency, &q, &gain, &detune); | 205 UpdateCoefficients(1, &cutoff_frequency, &q, &gain, &detune); |
206 | 206 |
207 biquad_.GetFrequencyResponse(n_frequencies, frequency.data(), mag_response, | 207 biquad_.GetFrequencyResponse(n_frequencies, frequency.data(), mag_response, |
208 phase_response); | 208 phase_response); |
209 } | 209 } |
210 | 210 |
| 211 bool BiquadDSPKernel::RequiresTailProcessing() const { |
| 212 // Always return true even if the tail time and latency might both |
| 213 // be zero. |
| 214 return true; |
| 215 } |
| 216 |
211 double BiquadDSPKernel::TailTime() const { | 217 double BiquadDSPKernel::TailTime() const { |
212 return tail_time_; | 218 return tail_time_; |
213 } | 219 } |
214 | 220 |
215 double BiquadDSPKernel::LatencyTime() const { | 221 double BiquadDSPKernel::LatencyTime() const { |
216 return 0; | 222 return 0; |
217 } | 223 } |
218 | 224 |
219 } // namespace blink | 225 } // namespace blink |
OLD | NEW |