Skip to content

type 'AudioBufferImplementation' is not a subtype of type 'AudioBuffer' #3101

Closed
@DartBot

Description

@DartBot

This issue was originally filed by @bp74


What steps will reproduce the problem?

  1. load some audio with XMLHttpRequest
  2. decode the audio
  3. the success callback fails in "Checked Mode"

like this Dart Audio API sample does...
http://news.dartlang.org/2012/02/web-audio-api-and-dart.html

What is the expected output? What do you see instead?

http://api.dartlang.org/html/AudioContext.html

void decodeAudioData(ArrayBuffer audioData,
    bool successCallback(AudioBuffer audioBuffer),
    [bool errorCallback(AudioBuffer audioBuffer)])

The "successCallback" should be an (AudioBuffer) => bool.
But when you run "Checked Mode" it says:

Exception: type '(AudioBuffer) => bool' is not a subtype of type 'AudioBufferCallback' of 'successCallback'.
or
Exception: type 'AudioBufferImplementation' is not a subtype of type 'AudioBuffer' of 'value'.

What version of the product are you using? On what operating system?
Dart Editor Build 7696 32 bit, Windows 7 64 bit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions