| 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 11 matching lines...) Expand all  Loading... | 
| 22  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 
| 23  */ | 23  */ | 
| 24 | 24 | 
| 25 #ifndef BiquadDSPKernel_h | 25 #ifndef BiquadDSPKernel_h | 
| 26 #define BiquadDSPKernel_h | 26 #define BiquadDSPKernel_h | 
| 27 | 27 | 
| 28 #include "modules/webaudio/BiquadProcessor.h" | 28 #include "modules/webaudio/BiquadProcessor.h" | 
| 29 #include "platform/audio/AudioDSPKernel.h" | 29 #include "platform/audio/AudioDSPKernel.h" | 
| 30 #include "platform/audio/Biquad.h" | 30 #include "platform/audio/Biquad.h" | 
| 31 | 31 | 
| 32 #if ENABLE(WEB_AUDIO) |  | 
| 33 |  | 
| 34 namespace blink { | 32 namespace blink { | 
| 35 | 33 | 
| 36 class BiquadProcessor; | 34 class BiquadProcessor; | 
| 37 | 35 | 
| 38 // BiquadDSPKernel is an AudioDSPKernel and is responsible for filtering one cha
    nnel of a BiquadProcessor using a Biquad object. | 36 // BiquadDSPKernel is an AudioDSPKernel and is responsible for filtering one cha
    nnel of a BiquadProcessor using a Biquad object. | 
| 39 | 37 | 
| 40 class BiquadDSPKernel final : public AudioDSPKernel { | 38 class BiquadDSPKernel final : public AudioDSPKernel { | 
| 41 public: | 39 public: | 
| 42     explicit BiquadDSPKernel(BiquadProcessor* processor) | 40     explicit BiquadDSPKernel(BiquadProcessor* processor) | 
| 43         : AudioDSPKernel(processor) | 41         : AudioDSPKernel(processor) | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
| 65     // Update the biquad cofficients with the given parameters | 63     // Update the biquad cofficients with the given parameters | 
| 66     void updateCoefficients(double frequency, double Q, double gain, double detu
    ne); | 64     void updateCoefficients(double frequency, double Q, double gain, double detu
    ne); | 
| 67 | 65 | 
| 68 private: | 66 private: | 
| 69     // Synchronize process() with getting and setting the filter coefficients. | 67     // Synchronize process() with getting and setting the filter coefficients. | 
| 70     mutable Mutex m_processLock; | 68     mutable Mutex m_processLock; | 
| 71 }; | 69 }; | 
| 72 | 70 | 
| 73 } // namespace blink | 71 } // namespace blink | 
| 74 | 72 | 
| 75 #endif // ENABLE(WEB_AUDIO) |  | 
| 76 |  | 
| 77 #endif // BiquadDSPKernel_h | 73 #endif // BiquadDSPKernel_h | 
| OLD | NEW | 
|---|