OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 BiquadFilterNode_h | 25 #ifndef BiquadFilterNode_h |
26 #define BiquadFilterNode_h | 26 #define BiquadFilterNode_h |
27 | 27 |
28 #include "modules/webaudio/AudioBasicProcessorNode.h" | 28 #include "modules/webaudio/AudioBasicProcessorNode.h" |
29 #include "modules/webaudio/BiquadProcessor.h" | 29 #include "modules/webaudio/BiquadProcessor.h" |
30 | 30 |
31 namespace WebCore { | 31 namespace blink { |
32 | 32 |
33 class AudioParam; | 33 class AudioParam; |
34 | 34 |
35 class BiquadFilterNode FINAL : public AudioBasicProcessorNode { | 35 class BiquadFilterNode FINAL : public AudioBasicProcessorNode { |
36 public: | 36 public: |
37 // These must be defined as in the .idl file and must match those in the Biq
uadProcessor class. | 37 // These must be defined as in the .idl file and must match those in the Biq
uadProcessor class. |
38 enum { | 38 enum { |
39 LOWPASS = 0, | 39 LOWPASS = 0, |
40 HIGHPASS = 1, | 40 HIGHPASS = 1, |
41 BANDPASS = 2, | 41 BANDPASS = 2, |
(...skipping 23 matching lines...) Expand all Loading... |
65 Float32Array* magResponse, | 65 Float32Array* magResponse, |
66 Float32Array* phaseResponse); | 66 Float32Array* phaseResponse); |
67 | 67 |
68 private: | 68 private: |
69 BiquadFilterNode(AudioContext*, float sampleRate); | 69 BiquadFilterNode(AudioContext*, float sampleRate); |
70 | 70 |
71 BiquadProcessor* biquadProcessor() { return static_cast<BiquadProcessor*>(pr
ocessor()); } | 71 BiquadProcessor* biquadProcessor() { return static_cast<BiquadProcessor*>(pr
ocessor()); } |
72 bool setType(unsigned); // Returns true on success. | 72 bool setType(unsigned); // Returns true on success. |
73 }; | 73 }; |
74 | 74 |
75 } // namespace WebCore | 75 } // namespace blink |
76 | 76 |
77 #endif // BiquadFilterNode_h | 77 #endif // BiquadFilterNode_h |
OLD | NEW |