Change the Web IDL description of decodeAudioData arguments
authorEhsan Akhgari <ehsan@mozilla.com>
Thu, 29 Nov 2012 15:59:38 -0500
changeset 225 cb492d3bd589
parent 224 de8152f9c7ca
child 226 f4bef40f3efe
Change the Web IDL description of decodeAudioData arguments

The details of this change were discussed in
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20039.
webaudio/specification.html
--- a/webaudio/specification.html	Wed Nov 28 10:30:40 2012 -0800
+++ b/webaudio/specification.html	Thu Nov 29 15:59:38 2012 -0500
@@ -807,7 +807,8 @@
 <div class="blockContent">
 <pre class="code"><code class="idl-code">
 
-callback AudioBufferCallback = void (AudioBuffer decodedData);
+callback DecodeSuccessCallback = void (AudioBuffer decodedData);
+callback DecodeErrorCallback = void ();
 
 [Constructor]
 interface <dfn id="dfn-AudioContext">AudioContext</dfn> {
@@ -823,8 +824,8 @@
     AudioBuffer createBuffer(ArrayBuffer buffer, boolean mixToMono);
 
     void decodeAudioData(ArrayBuffer audioData,
-                         AudioBufferCallback successCallback,
-                         optional AudioBufferCallback errorCallback);
+                         DecodeSuccessCallback successCallback,
+                         optional DecodeErrorCallback errorCallback);
 
 
     <span class="comment">// AudioNode creation </span>