Add methods to compute magnitude and phase response for biquads
[WebKit-https.git] / Source / WebCore / webaudio / BiquadFilterNode.idl
index 817f65863d62e032ef8c6936759abc4ac7c46e5a..84e015aa3381505417b1501653344c3e87cf625f 100644 (file)
@@ -37,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);
     };
 }