| Index: sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
|
| diff --git a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
|
| index 69077f07147bf869f330d844da77e6b7a3bb2975..4de5e853e60ea8cb23171f704d1420ed5b1ac8e3 100644
|
| --- a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
|
| +++ b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
|
| @@ -361,17 +361,6 @@ class AudioContext extends EventTarget native "AudioContext,webkitAudioContext"
|
| @DocsEditable()
|
| void _decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallback, [AudioBufferCallback errorCallback]) native;
|
|
|
| - @JSName('decodeAudioData')
|
| - @DomName('AudioContext.decodeAudioData')
|
| - @DocsEditable()
|
| - Future<AudioBuffer> decodeAudioData(ByteBuffer audioData) {
|
| - var completer = new Completer<AudioBuffer>();
|
| - _decodeAudioData(audioData,
|
| - (value) { completer.complete(value); },
|
| - (error) { completer.completeError(error); });
|
| - return completer.future;
|
| - }
|
| -
|
| @DomName('AudioContext.startRendering')
|
| @DocsEditable()
|
| void startRendering() native;
|
| @@ -407,6 +396,20 @@ class AudioContext extends EventTarget native "AudioContext,webkitAudioContext"
|
| bufferSize);
|
| }
|
| }
|
| + @DomName('AudioContext.decodeAudioData')
|
| + Future<AudioBuffer> decodeAudioData(ByteBuffer audioData) {
|
| + var completer = new Completer<AudioBuffer>();
|
| + _decodeAudioData(audioData,
|
| + (value) { completer.complete(value); },
|
| + (error) {
|
| + if (error == null) {
|
| + completer.completeError('');
|
| + } else {
|
| + completer.completeError(error);
|
| + }
|
| + });
|
| + return completer.future;
|
| + }
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
|
|