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 14 matching lines...) Expand all Loading... |
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 blink { | 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 DEFINE_WRAPPERTYPEINFO(); | 36 DEFINE_WRAPPERTYPEINFO(); |
37 public: | 37 public: |
38 // These must be defined as in the .idl file and must match those in the Biq
uadProcessor class. | 38 // These must be defined as in the .idl file and must match those in the Biq
uadProcessor class. |
39 enum { | 39 enum { |
40 LOWPASS = 0, | 40 LOWPASS = 0, |
41 HIGHPASS = 1, | 41 HIGHPASS = 1, |
42 BANDPASS = 2, | 42 BANDPASS = 2, |
43 LOWSHELF = 3, | 43 LOWSHELF = 3, |
44 HIGHSHELF = 4, | 44 HIGHSHELF = 4, |
45 PEAKING = 5, | 45 PEAKING = 5, |
(...skipping 23 matching lines...) Expand all Loading... |
69 private: | 69 private: |
70 BiquadFilterNode(AudioContext*, float sampleRate); | 70 BiquadFilterNode(AudioContext*, float sampleRate); |
71 | 71 |
72 BiquadProcessor* biquadProcessor() { return static_cast<BiquadProcessor*>(pr
ocessor()); } | 72 BiquadProcessor* biquadProcessor() { return static_cast<BiquadProcessor*>(pr
ocessor()); } |
73 bool setType(unsigned); // Returns true on success. | 73 bool setType(unsigned); // Returns true on success. |
74 }; | 74 }; |
75 | 75 |
76 } // namespace blink | 76 } // namespace blink |
77 | 77 |
78 #endif // BiquadFilterNode_h | 78 #endif // BiquadFilterNode_h |
OLD | NEW |