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 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 BiquadFilterNode_h | 25 #ifndef BiquadFilterNode_h |
26 #define BiquadFilterNode_h | 26 #define BiquadFilterNode_h |
27 | 27 |
28 #include "core/dom/DOMTypedArray.h" | 28 #include "core/dom/DOMTypedArray.h" |
29 #include "modules/webaudio/AudioNode.h" | 29 #include "modules/webaudio/AudioNode.h" |
30 #include "modules/webaudio/BiquadProcessor.h" | 30 #include "modules/webaudio/BiquadProcessor.h" |
31 | 31 |
32 #if ENABLE(WEB_AUDIO) | |
33 | |
34 namespace blink { | 32 namespace blink { |
35 | 33 |
36 class AbstractAudioContext; | 34 class AbstractAudioContext; |
37 class AudioParam; | 35 class AudioParam; |
38 | 36 |
39 class BiquadFilterNode final : public AudioNode { | 37 class BiquadFilterNode final : public AudioNode { |
40 DEFINE_WRAPPERTYPEINFO(); | 38 DEFINE_WRAPPERTYPEINFO(); |
41 public: | 39 public: |
42 // These must be defined as in the .idl file and must match those in the Biq
uadProcessor class. | 40 // These must be defined as in the .idl file and must match those in the Biq
uadProcessor class. |
43 enum { | 41 enum { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 bool setType(unsigned); // Returns true on success. | 74 bool setType(unsigned); // Returns true on success. |
77 | 75 |
78 Member<AudioParam> m_frequency; | 76 Member<AudioParam> m_frequency; |
79 Member<AudioParam> m_q; | 77 Member<AudioParam> m_q; |
80 Member<AudioParam> m_gain; | 78 Member<AudioParam> m_gain; |
81 Member<AudioParam> m_detune; | 79 Member<AudioParam> m_detune; |
82 }; | 80 }; |
83 | 81 |
84 } // namespace blink | 82 } // namespace blink |
85 | 83 |
86 #endif // ENABLE(WEB_AUDIO) | |
87 | |
88 #endif // BiquadFilterNode_h | 84 #endif // BiquadFilterNode_h |
OLD | NEW |