Source
@DomName('AudioContext.decodeAudioData')
Future<AudioBuffer> decodeAudioData(ByteBuffer audioData,
[AudioBufferCallback successCallback,
AudioBufferCallback errorCallback]) {
if (errorCallback != null) {
return convertNativePromiseToDartFuture(_blink.BlinkAudioContext.instance
.decodeAudioData_Callback_3_(
this, audioData, successCallback, errorCallback));
}
if (successCallback != null) {
return convertNativePromiseToDartFuture(_blink.BlinkAudioContext.instance
.decodeAudioData_Callback_2_(this, audioData, successCallback));
}
return convertNativePromiseToDartFuture(_blink.BlinkAudioContext.instance
.decodeAudioData_Callback_1_(this, audioData));
}