Index: sdk/lib/web_audio/dartium/web_audio_dartium.dart |
diff --git a/sdk/lib/web_audio/dartium/web_audio_dartium.dart b/sdk/lib/web_audio/dartium/web_audio_dartium.dart |
index 94ece937d99eeee931b78dde9dec58bc6656d8b8..67f4da0765be95824e8b63511dcbb4ae01c75dfe 100644 |
--- a/sdk/lib/web_audio/dartium/web_audio_dartium.dart |
+++ b/sdk/lib/web_audio/dartium/web_audio_dartium.dart |
@@ -296,19 +296,13 @@ class AudioContext extends EventTarget { |
@DocsEditable |
BiquadFilterNode createBiquadFilter() native "AudioContext_createBiquadFilter_Callback"; |
- AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames, [num sampleRate]) { |
- if ((sampleRate is num || sampleRate == null) && (mixToMono_OR_numberOfFrames is int || mixToMono_OR_numberOfFrames == null) && (buffer_OR_numberOfChannels is int || buffer_OR_numberOfChannels == null)) { |
- return _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames, sampleRate); |
- } |
- if ((mixToMono_OR_numberOfFrames is bool || mixToMono_OR_numberOfFrames == null) && (buffer_OR_numberOfChannels is ByteBuffer || buffer_OR_numberOfChannels == null) && sampleRate == null) { |
- return _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames); |
- } |
- throw new ArgumentError("Incorrect number or type of arguments"); |
- } |
- |
- AudioBuffer _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames, sampleRate) native "AudioContext__createBuffer_1_Callback"; |
+ @DomName('AudioContext.createBuffer') |
+ @DocsEditable |
+ AudioBuffer createBuffer(int numberOfChannels, int numberOfFrames, num sampleRate) native "AudioContext_createBuffer_Callback"; |
- AudioBuffer _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames) native "AudioContext__createBuffer_2_Callback"; |
+ @DomName('AudioContext.createBufferFromBuffer') |
+ @DocsEditable |
+ AudioBuffer createBufferFromBuffer(ByteBuffer buffer, bool mixToMono) native "AudioContext_createBufferFromBuffer_Callback"; |
@DomName('AudioContext.createBufferSource') |
@DocsEditable |
@@ -513,10 +507,7 @@ class AudioListener extends NativeFieldWrapperClass1 { |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-// WARNING: Do not edit - generated code. |
- |
-@DocsEditable |
@DomName('AudioNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNode-section |
@Experimental |
@@ -563,7 +554,7 @@ class AudioNode extends EventTarget { |
@DocsEditable |
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "AudioNode_addEventListener_Callback"; |
- void connect(destination, int output, [int input]) { |
+ void $dom_connect(destination, int output, [int input]) { |
if ((input is int || input == null) && (output is int || output == null) && (destination is AudioNode || destination == null)) { |
_connect_1(destination, output, input); |
return; |
@@ -591,6 +582,13 @@ class AudioNode extends EventTarget { |
@DocsEditable |
void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "AudioNode_removeEventListener_Callback"; |
+ @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 |