| 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 10 matching lines...) Expand all Loading... |
| 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 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 DelayDSPKernel_h | 25 #ifndef DelayDSPKernel_h |
| 26 #define DelayDSPKernel_h | 26 #define DelayDSPKernel_h |
| 27 | 27 |
| 28 #include "modules/webaudio/DelayProcessor.h" | 28 #include "modules/webaudio/DelayProcessor.h" |
| 29 #include "platform/audio/AudioDelayDSPKernel.h" | 29 #include "platform/audio/AudioDelayDSPKernel.h" |
| 30 | 30 |
| 31 #if ENABLE(WEB_AUDIO) | |
| 32 | |
| 33 namespace blink { | 31 namespace blink { |
| 34 | 32 |
| 35 class DelayProcessor; | 33 class DelayProcessor; |
| 36 | 34 |
| 37 class DelayDSPKernel final : public AudioDelayDSPKernel { | 35 class DelayDSPKernel final : public AudioDelayDSPKernel { |
| 38 public: | 36 public: |
| 39 explicit DelayDSPKernel(DelayProcessor*); | 37 explicit DelayDSPKernel(DelayProcessor*); |
| 40 | 38 |
| 41 protected: | 39 protected: |
| 42 bool hasSampleAccurateValues() override; | 40 bool hasSampleAccurateValues() override; |
| 43 void calculateSampleAccurateValues(float* delayTimes, size_t framesToProcess
) override; | 41 void calculateSampleAccurateValues(float* delayTimes, size_t framesToProcess
) override; |
| 44 double delayTime(float sampleRate) override; | 42 double delayTime(float sampleRate) override; |
| 45 | 43 |
| 46 private: | 44 private: |
| 47 DelayProcessor* delayProcessor() { return static_cast<DelayProcessor*>(proce
ssor()); } | 45 DelayProcessor* delayProcessor() { return static_cast<DelayProcessor*>(proce
ssor()); } |
| 48 }; | 46 }; |
| 49 | 47 |
| 50 } // namespace blink | 48 } // namespace blink |
| 51 | 49 |
| 52 #endif // ENABLE(WEB_AUDIO) | |
| 53 | |
| 54 #endif // DelayDSPKernel_h | 50 #endif // DelayDSPKernel_h |
| OLD | NEW |