decodeAudioData 方法

Future<AudioBuffer> decodeAudioData(
  1. ByteBuffer audioData,
  2. [DecodeSuccessCallback? successCallback,
  3. DecodeErrorCallback? errorCallback]
)

实现

Future<AudioBuffer> decodeAudioData(ByteBuffer audioData,
        [DecodeSuccessCallback? successCallback,
        DecodeErrorCallback? errorCallback]) =>
    promiseToFuture<AudioBuffer>(JS(
        "creates:AudioBuffer;",
        "#.decodeAudioData(#, #, #)",
        this,
        audioData,
        successCallback,
        errorCallback));