Index: modules/webaudio/BiquadFilterNode.idl |
diff --git a/modules/webaudio/BiquadFilterNode.idl b/modules/webaudio/BiquadFilterNode.idl |
index 2422dfb1a985946b0c7122189bf6d8d93ff7c639..9783ab2a22b502f44c5d3782a4b784cf6c331d91 100644 |
--- a/modules/webaudio/BiquadFilterNode.idl |
+++ b/modules/webaudio/BiquadFilterNode.idl |
@@ -22,20 +22,21 @@ |
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+enum BiquadFilterType { |
+ "lowpass", |
+ "highpass", |
+ "bandpass", |
+ "lowshelf", |
+ "highshelf", |
+ "peaking", |
+ "notch", |
+ "allpass" |
+}; |
+ |
[ |
Conditional=WEB_AUDIO |
] interface BiquadFilterNode : AudioNode { |
- // Filter type. |
- const unsigned short LOWPASS = 0; |
- const unsigned short HIGHPASS = 1; |
- const unsigned short BANDPASS = 2; |
- const unsigned short LOWSHELF = 3; |
- const unsigned short HIGHSHELF = 4; |
- const unsigned short PEAKING = 5; |
- const unsigned short NOTCH = 6; |
- const unsigned short ALLPASS = 7; |
- |
- [Custom=Setter] attribute DOMString type; |
+ attribute BiquadFilterType type; |
readonly attribute AudioParam frequency; // in Hertz |
readonly attribute AudioParam detune; // in Cents |