| 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 15 matching lines...) Expand all Loading... |
| 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 public: | 37 public: |
| 37 // 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. |
| 38 enum { | 39 enum { |
| 39 LOWPASS = 0, | 40 LOWPASS = 0, |
| 40 HIGHPASS = 1, | 41 HIGHPASS = 1, |
| 41 BANDPASS = 2, | 42 BANDPASS = 2, |
| 42 LOWSHELF = 3, | 43 LOWSHELF = 3, |
| 43 HIGHSHELF = 4, | 44 HIGHSHELF = 4, |
| 44 PEAKING = 5, | 45 PEAKING = 5, |
| 45 NOTCH = 6, | 46 NOTCH = 6, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 68 private: | 69 private: |
| 69 BiquadFilterNode(AudioContext*, float sampleRate); | 70 BiquadFilterNode(AudioContext*, float sampleRate); |
| 70 | 71 |
| 71 BiquadProcessor* biquadProcessor() { return static_cast<BiquadProcessor*>(pr
ocessor()); } | 72 BiquadProcessor* biquadProcessor() { return static_cast<BiquadProcessor*>(pr
ocessor()); } |
| 72 bool setType(unsigned); // Returns true on success. | 73 bool setType(unsigned); // Returns true on success. |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 } // namespace blink | 76 } // namespace blink |
| 76 | 77 |
| 77 #endif // BiquadFilterNode_h | 78 #endif // BiquadFilterNode_h |
| OLD | NEW |