| 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 a61c68d1f0c78f45d51db6f00144f9d95b87577b..aaa0d1ed7f3f5d2cf56be9b397930bdb80df6cce 100644
|
| --- a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
|
| +++ b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
|
| @@ -251,6 +251,11 @@ class AudioContext extends EventTarget native "AudioContext" {
|
| @DocsEditable
|
| AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames, [num sampleRate]) native;
|
|
|
| + @JSName('createBuffer')
|
| + @DomName('AudioContext.createBuffer')
|
| + @DocsEditable
|
| + AudioBuffer createBufferFromBuffer(ByteBuffer buffer, bool mixToMono) native;
|
| +
|
| @DomName('AudioContext.createBufferSource')
|
| @DocsEditable
|
| AudioBufferSourceNode createBufferSource() native;
|
| @@ -279,6 +284,11 @@ class AudioContext extends EventTarget native "AudioContext" {
|
| @DocsEditable
|
| DynamicsCompressorNode createDynamicsCompressor() native;
|
|
|
| + @JSName('createBuffer')
|
| + @DomName('AudioContext.createBuffer')
|
| + @DocsEditable
|
| + AudioBuffer createEmptyBuffer(int numberOfChannels, int numberOfFrames, num sampleRate) native;
|
| +
|
| @DomName('AudioContext.createGainNode')
|
| @DocsEditable
|
| GainNode createGainNode() native;
|
| @@ -405,7 +415,6 @@ class AudioListener native "AudioListener" {
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
|
|
| -@DocsEditable
|
| @DomName('AudioNode')
|
| // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNode-section
|
| @Experimental
|
| @@ -440,9 +449,10 @@ class AudioNode extends EventTarget native "AudioNode" {
|
| @DocsEditable
|
| void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native;
|
|
|
| + @JSName('connect')
|
| @DomName('AudioNode.connect')
|
| @DocsEditable
|
| - void connect(destination, int output, [int input]) native;
|
| + void $dom_connect(destination, int output, [int input]) native;
|
|
|
| @DomName('AudioNode.disconnect')
|
| @DocsEditable
|
| @@ -456,6 +466,14 @@ class AudioNode extends EventTarget native "AudioNode" {
|
| @DomName('AudioNode.removeEventListener')
|
| @DocsEditable
|
| void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native;
|
| +
|
| + @DomName('AudioNode.connect')
|
| + void connectNode(AudioNode destination, [int output = 0, int input = 0]) =>
|
| + $dom_connect(destination, output, input);
|
| +
|
| + @DomName('AudioNode.connect')
|
| + void connectParam(AudioParam destination, [int output = 0]) =>
|
| + $dom_connect(destination, output);
|
| }
|
| // 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
|
|
|