Add methods to compute magnitude and phase response for biquads
[WebKit-https.git] / Source / WebCore / webaudio / BiquadFilterNode.idl
index dba2f3989379506cb2405f18e62c5dd5a0c09191..84e015aa3381505417b1501653344c3e87cf625f 100644 (file)
@@ -24,7 +24,6 @@
 
 module audio {
     interface [
-        LegacyDefaultOptionalArguments,
         Conditional=WEB_AUDIO,
         GenerateToJS
     ] BiquadFilterNode : AudioNode {
@@ -38,9 +37,15 @@ module audio {
         const unsigned short NOTCH = 6;
         const unsigned short ALLPASS = 7;
 
-        attribute unsigned short type;
+        attribute unsigned short type
+            setter raises(DOMException);
+        
         readonly attribute AudioParam frequency; // in Hertz
         readonly attribute AudioParam Q; // Quality factor
         readonly attribute AudioParam gain; // in Decibels
+
+        void getFrequencyResponse(in Float32Array frequencyHz,
+                                  in Float32Array magResponse,
+                                  in Float32Array phaseResponse);
     };
 }