DescriptionRevert of AudioContext.decodeAudioData returns a Promise (patchset #7 id:120001 of https://chromiumcodereview.appspot.com/1006963003/)
Reason for revert:
Causes problems noted in issue 477089
Original issue's description:
> AudioContext.decodeAudioData returns a Promise
>
> See the spec: http://webaudio.github.io/web-audio-api/#widl-AudioContext-decodeAudioData-Promise-AudioBuffer--ArrayBuffer-audioData-DecodeSuccessCallback-successCallback-DecodeErrorCallback-errorCallback
>
> A few other issues are also fixed:
>
> No longer throw an error if the audio data arg is null. This is supposed to reject the promise and also call the errorcallback.
>
> The error callback is supposed to be invoked with the error. Previously, we just used null.
>
> BUG=420107, 464130
> TEST=decode-audio-data-promise.html
>
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193648
TBR=hongchan@chromium.org,haraken@chromium.org,tkent@chromium.org,yhirano@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=420107, 464130
Patch Set 1 #
Created: 5 years, 8 months ago
(Patch set is too large to download)
Messages
Total messages: 7 (2 generated)
|