decodeAudioData method

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

Implementation

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

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-web_audio/BaseAudioContext/decodeAudioData.html