| 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 14 matching lines...) Expand all Loading... |
| 25 #include "config.h" | 25 #include "config.h" |
| 26 | 26 |
| 27 #if ENABLE(WEB_AUDIO) | 27 #if ENABLE(WEB_AUDIO) |
| 28 | 28 |
| 29 #include "modules/webaudio/BiquadDSPKernel.h" | 29 #include "modules/webaudio/BiquadDSPKernel.h" |
| 30 | 30 |
| 31 #include "platform/FloatConversion.h" | 31 #include "platform/FloatConversion.h" |
| 32 #include <limits.h> | 32 #include <limits.h> |
| 33 #include "wtf/Vector.h" | 33 #include "wtf/Vector.h" |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace blink { |
| 36 | 36 |
| 37 // FIXME: As a recursive linear filter, depending on its parameters, a biquad fi
lter can have | 37 // FIXME: As a recursive linear filter, depending on its parameters, a biquad fi
lter can have |
| 38 // an infinite tailTime. In practice, Biquad filters do not usually (except for
very high resonance values) | 38 // an infinite tailTime. In practice, Biquad filters do not usually (except for
very high resonance values) |
| 39 // have a tailTime of longer than approx. 200ms. This value could possibly be ca
lculated based on the | 39 // have a tailTime of longer than approx. 200ms. This value could possibly be ca
lculated based on the |
| 40 // settings of the Biquad. | 40 // settings of the Biquad. |
| 41 static const double MaxBiquadDelayTime = 0.2; | 41 static const double MaxBiquadDelayTime = 0.2; |
| 42 | 42 |
| 43 void BiquadDSPKernel::updateCoefficientsIfNecessary() | 43 void BiquadDSPKernel::updateCoefficientsIfNecessary() |
| 44 { | 44 { |
| 45 if (biquadProcessor()->filterCoefficientsDirty()) { | 45 if (biquadProcessor()->filterCoefficientsDirty()) { |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 double BiquadDSPKernel::tailTime() const | 183 double BiquadDSPKernel::tailTime() const |
| 184 { | 184 { |
| 185 return MaxBiquadDelayTime; | 185 return MaxBiquadDelayTime; |
| 186 } | 186 } |
| 187 | 187 |
| 188 double BiquadDSPKernel::latencyTime() const | 188 double BiquadDSPKernel::latencyTime() const |
| 189 { | 189 { |
| 190 return 0; | 190 return 0; |
| 191 } | 191 } |
| 192 | 192 |
| 193 } // namespace WebCore | 193 } // namespace blink |
| 194 | 194 |
| 195 #endif // ENABLE(WEB_AUDIO) | 195 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |