| Index: tools/dom/templates/html/impl/impl_AudioContext.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_AudioContext.darttemplate b/tools/dom/templates/html/impl/impl_AudioContext.darttemplate
|
| index 965b892f7f8f58e931548f0f7c590dcf7856eeb1..1d0f91ef87b2c0ab623a9b38238845bece91e8e5 100644
|
| --- a/tools/dom/templates/html/impl/impl_AudioContext.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_AudioContext.darttemplate
|
| @@ -34,4 +34,18 @@ $if DART2JS
|
| }
|
| }
|
| $endif
|
| + @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;
|
| + }
|
| }
|
|
|