Use the correct Web IDL notation for the AudioBufferCallback callback type
authorEhsan Akhgari <ehsan@mozilla.com>
Wed, 15 Aug 2012 22:35:33 -0400
changeset 126 009a4f7eb13d
parent 125 a337a3ad2a7f
child 127 63f9debd3c30
Use the correct Web IDL notation for the AudioBufferCallback callback type
webaudio/specification.html
--- a/webaudio/specification.html	Wed Aug 15 22:28:37 2012 -0400
+++ b/webaudio/specification.html	Wed Aug 15 22:35:33 2012 -0400
@@ -705,6 +705,8 @@
 <div class="blockContent">
 <pre class="code"><code class="idl-code"> 
 
+        callback AudioBufferCallback = void (AudioBuffer decodedData);
+
         interface <dfn id="dfn-AudioContext">AudioContext</dfn> {
 
             readonly attribute AudioDestinationNode destination;
@@ -720,8 +722,8 @@
                 raises(DOMException);
             
             void decodeAudioData(in ArrayBuffer audioData,
-                                 in [Callback] AudioBufferCallback successCallback,
-                                 in [Callback] optional AudioBufferCallback errorCallback)
+                                 in AudioBufferCallback successCallback,
+                                 in optional AudioBufferCallback errorCallback)
                 raises(DOMException);