The WebAudio spec is proposing to add a dictionary the the decodeAudioData dictionary. The IDL defintionis are basically going to bePromise<AudioBuffer> decodeAudioData(ArrayBuffer audioData, optional AudioBufferCallback successCallback, optional AudioBufferCallback errorCallback);Promise<AudioBuffer> decodeAudioData(ArrayBuffer audioData, DecodeAudioDataOptions options);
The first is the existing method, and the second is the new method.I implemented this in blink like so:[RaisesException, MeasureAs=AudioContextDecodeAudioData, CallWith=ScriptState] Promise<AudioBuffer> decodeAudioData(ArrayBuffer audioData, optional AudioBufferCallback successCallback, optional AudioBufferCallback errorCallback);[RaisesException, MeasureAs=AudioContextDecodeAudioData, CallWith=ScriptState] Promise<AudioBuffer> decodeAudioData(ArrayBuffer audioData, DecodeAudioDataOptions options);This doesn't work. Whenever I try decodeAudioData(<buffer>, { disableResampling: true}), I get an error that the second arg isn't a function.However, when I edit the idl file and reverse the order of the methods, everything works.Is this expected? I'm not 100% sure, but I think the idl compiler worked before, as shown in https://codereview.chromium.org/2085353008, patch 2 which was uploaded 3 weeks ago.
+platform-architecture-dev
--
You received this message because you are subscribed to the Google Groups "platform-architecture-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to platform-architect...@chromium.org.
To post to this group, send email to platform-arc...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/platform-architecture-dev/CAO9Q3i%2B1Wu7VTbNVJB1xTNQcuCKQwM-uNjTgLWrEN3q_Cc7Oaw%40mail.gmail.com.