| 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 16 matching lines...) Expand all Loading... |
| 27 #define BiquadDSPKernel_h | 27 #define BiquadDSPKernel_h |
| 28 | 28 |
| 29 #include "modules/webaudio/BiquadProcessor.h" | 29 #include "modules/webaudio/BiquadProcessor.h" |
| 30 #include "platform/audio/AudioDSPKernel.h" | 30 #include "platform/audio/AudioDSPKernel.h" |
| 31 #include "platform/audio/Biquad.h" | 31 #include "platform/audio/Biquad.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class BiquadProcessor; | 35 class BiquadProcessor; |
| 36 | 36 |
| 37 // BiquadDSPKernel is an AudioDSPKernel and is responsible for filtering one cha
nnel of a BiquadProcessor using a Biquad object. | 37 // BiquadDSPKernel is an AudioDSPKernel and is responsible for filtering one |
| 38 // channel of a BiquadProcessor using a Biquad object. |
| 38 | 39 |
| 39 class BiquadDSPKernel final : public AudioDSPKernel { | 40 class BiquadDSPKernel final : public AudioDSPKernel { |
| 40 public: | 41 public: |
| 41 explicit BiquadDSPKernel(BiquadProcessor* processor) | 42 explicit BiquadDSPKernel(BiquadProcessor* processor) |
| 42 : AudioDSPKernel(processor) {} | 43 : AudioDSPKernel(processor) {} |
| 43 | 44 |
| 44 // AudioDSPKernel | 45 // AudioDSPKernel |
| 45 void process(const float* source, | 46 void process(const float* source, |
| 46 float* dest, | 47 float* dest, |
| 47 size_t framesToProcess) override; | 48 size_t framesToProcess) override; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 74 const float* detune); | 75 const float* detune); |
| 75 | 76 |
| 76 private: | 77 private: |
| 77 // Synchronize process() with getting and setting the filter coefficients. | 78 // Synchronize process() with getting and setting the filter coefficients. |
| 78 mutable Mutex m_processLock; | 79 mutable Mutex m_processLock; |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace blink | 82 } // namespace blink |
| 82 | 83 |
| 83 #endif // BiquadDSPKernel_h | 84 #endif // BiquadDSPKernel_h |
| OLD | NEW |