| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // dezippering is used to slowly change the parameters. | 68 // dezippering is used to slowly change the parameters. |
| 69 void UpdateCoefficientsIfNecessary(int); | 69 void UpdateCoefficientsIfNecessary(int); |
| 70 // Update the biquad cofficients with the given parameters | 70 // Update the biquad cofficients with the given parameters |
| 71 void UpdateCoefficients(int, | 71 void UpdateCoefficients(int, |
| 72 const float* frequency, | 72 const float* frequency, |
| 73 const float* q, | 73 const float* q, |
| 74 const float* gain, | 74 const float* gain, |
| 75 const float* detune); | 75 const float* detune); |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 // Compute the tail time using the BiquadFilter coefficients at | |
| 79 // index |coef_index|. | |
| 80 void UpdateTailTime(int coef_index); | |
| 81 | |
| 82 // Synchronize process() with getting and setting the filter coefficients. | 78 // Synchronize process() with getting and setting the filter coefficients. |
| 83 mutable Mutex process_lock_; | 79 mutable Mutex process_lock_; |
| 84 | |
| 85 // The current tail time for biquad filter. | |
| 86 double tail_time_; | |
| 87 }; | 80 }; |
| 88 | 81 |
| 89 } // namespace blink | 82 } // namespace blink |
| 90 | 83 |
| 91 #endif // BiquadDSPKernel_h | 84 #endif // BiquadDSPKernel_h |
| OLD | NEW |