Description
This issue was originally filed by @bp74
What steps will reproduce the problem?
- load some audio with XMLHttpRequest
- decode the audio
- 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