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 b1788510717593441fb95f59c8e1d4cd7ee5ac5b..9e46ca7f203618bbba7321c10e1ee394f41f07bb 100644 |
--- a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart |
+++ b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart |
@@ -10,21 +10,18 @@ import 'dart:html'; |
import 'dart:html_common'; |
import 'dart:_native_typed_data'; |
import 'dart:typed_data'; |
-import 'dart:_js_helper' show Creates, JSName, Native, Returns, convertDartClosureToJS; |
+import 'dart:_js_helper' |
+ show Creates, JSName, Native, Returns, convertDartClosureToJS; |
import 'dart:_foreign_helper' show JS; |
import 'dart:_interceptors' show Interceptor; |
// DO NOT EDIT - unless you are editing documentation as per: |
// https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation |
// Auto-generated dart:audio library. |
- |
- |
- |
// 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 |
// BSD-style license that can be found in the LICENSE file. |
- |
@DocsEditable() |
@DomName('AnalyserNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AnalyserNode |
@@ -32,7 +29,9 @@ import 'dart:_interceptors' show Interceptor; |
@Native("AnalyserNode,RealtimeAnalyserNode") |
class AnalyserNode extends AudioNode { |
// To suppress missing implicit constructor warnings. |
- factory AnalyserNode._() { throw new UnsupportedError("Not supported"); } |
+ factory AnalyserNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('AnalyserNode.fftSize') |
@DocsEditable() |
@@ -56,26 +55,25 @@ class AnalyserNode extends AudioNode { |
@DomName('AnalyserNode.getByteFrequencyData') |
@DocsEditable() |
- void getByteFrequencyData(Uint8List array) native; |
+ void getByteFrequencyData(Uint8List array) native ; |
@DomName('AnalyserNode.getByteTimeDomainData') |
@DocsEditable() |
- void getByteTimeDomainData(Uint8List array) native; |
+ void getByteTimeDomainData(Uint8List array) native ; |
@DomName('AnalyserNode.getFloatFrequencyData') |
@DocsEditable() |
- void getFloatFrequencyData(Float32List array) native; |
+ void getFloatFrequencyData(Float32List array) native ; |
@DomName('AnalyserNode.getFloatTimeDomainData') |
@DocsEditable() |
@Experimental() // untriaged |
- void getFloatTimeDomainData(Float32List array) native; |
+ void getFloatTimeDomainData(Float32List array) native ; |
} |
// 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 |
// BSD-style license that can be found in the LICENSE file. |
- |
@DocsEditable() |
@DomName('AudioBuffer') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBuffer-section |
@@ -83,7 +81,9 @@ class AnalyserNode extends AudioNode { |
@Native("AudioBuffer") |
class AudioBuffer extends Interceptor { |
// To suppress missing implicit constructor warnings. |
- factory AudioBuffer._() { throw new UnsupportedError("Not supported"); } |
+ factory AudioBuffer._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('AudioBuffer.duration') |
@DocsEditable() |
@@ -104,16 +104,18 @@ class AudioBuffer extends Interceptor { |
@DomName('AudioBuffer.copyFromChannel') |
@DocsEditable() |
@Experimental() // untriaged |
- void copyFromChannel(Float32List destination, int channelNumber, [int startInChannel]) native; |
+ void copyFromChannel(Float32List destination, int channelNumber, |
+ [int startInChannel]) native ; |
@DomName('AudioBuffer.copyToChannel') |
@DocsEditable() |
@Experimental() // untriaged |
- void copyToChannel(Float32List source, int channelNumber, [int startInChannel]) native; |
+ void copyToChannel(Float32List source, int channelNumber, |
+ [int startInChannel]) native ; |
@DomName('AudioBuffer.getChannelData') |
@DocsEditable() |
- Float32List getChannelData(int channelIndex) native; |
+ Float32List getChannelData(int channelIndex) native ; |
} |
// 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 |
@@ -121,7 +123,6 @@ class AudioBuffer extends Interceptor { |
// WARNING: Do not edit - generated code. |
- |
@DomName('AudioBufferCallback') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBuffer-section |
@Experimental() |
@@ -130,7 +131,6 @@ typedef void AudioBufferCallback(AudioBuffer audioBuffer); |
// 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. |
- |
@DomName('AudioBufferSourceNode') |
@SupportedBrowser(SupportedBrowser.CHROME) |
@SupportedBrowser(SupportedBrowser.FIREFOX) |
@@ -138,7 +138,6 @@ typedef void AudioBufferCallback(AudioBuffer audioBuffer); |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBufferSourceNode-section |
@Native("AudioBufferSourceNode") |
class AudioBufferSourceNode extends AudioSourceNode { |
- |
// TODO(efortuna): Remove these methods when Chrome stable also uses start |
// instead of noteOn. |
void start(num when, [num grainOffset, num grainDuration]) { |
@@ -168,8 +167,11 @@ class AudioBufferSourceNode extends AudioSourceNode { |
JS('void', '#.noteOff(#)', this, when); |
} |
} |
+ |
// To suppress missing implicit constructor warnings. |
- factory AudioBufferSourceNode._() { throw new UnsupportedError("Not supported"); } |
+ factory AudioBufferSourceNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
/** |
* Static factory designed to expose `ended` events to event |
@@ -180,7 +182,8 @@ class AudioBufferSourceNode extends AudioSourceNode { |
@DomName('AudioBufferSourceNode.endedEvent') |
@DocsEditable() |
@Experimental() // untriaged |
- static const EventStreamProvider<Event> endedEvent = const EventStreamProvider<Event>('ended'); |
+ static const EventStreamProvider<Event> endedEvent = |
+ const EventStreamProvider<Event>('ended'); |
@DomName('AudioBufferSourceNode.buffer') |
@DocsEditable() |
@@ -212,13 +215,11 @@ class AudioBufferSourceNode extends AudioSourceNode { |
@DocsEditable() |
@Experimental() // untriaged |
Stream<Event> get onEnded => endedEvent.forTarget(this); |
- |
} |
// 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 |
// BSD-style license that can be found in the LICENSE file. |
- |
@DomName('AudioContext') |
@SupportedBrowser(SupportedBrowser.CHROME) |
@SupportedBrowser(SupportedBrowser.FIREFOX) |
@@ -227,10 +228,13 @@ class AudioBufferSourceNode extends AudioSourceNode { |
@Native("AudioContext,webkitAudioContext") |
class AudioContext extends EventTarget { |
// To suppress missing implicit constructor warnings. |
- factory AudioContext._() { throw new UnsupportedError("Not supported"); } |
+ factory AudioContext._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
/// Checks if this type is supported on the current platform. |
- static bool get supported => JS('bool', '!!(window.AudioContext || window.webkitAudioContext)'); |
+ static bool get supported => |
+ JS('bool', '!!(window.AudioContext || window.webkitAudioContext)'); |
@DomName('AudioContext.currentTime') |
@DocsEditable() |
@@ -256,92 +260,97 @@ class AudioContext extends EventTarget { |
@DomName('AudioContext.close') |
@DocsEditable() |
@Experimental() // untriaged |
- Future close() native; |
+ Future close() native ; |
@DomName('AudioContext.createAnalyser') |
@DocsEditable() |
- AnalyserNode createAnalyser() native; |
+ AnalyserNode createAnalyser() native ; |
@DomName('AudioContext.createBiquadFilter') |
@DocsEditable() |
- BiquadFilterNode createBiquadFilter() native; |
+ BiquadFilterNode createBiquadFilter() native ; |
@DomName('AudioContext.createBuffer') |
@DocsEditable() |
- AudioBuffer createBuffer(int numberOfChannels, int numberOfFrames, num sampleRate) native; |
+ AudioBuffer createBuffer( |
+ int numberOfChannels, int numberOfFrames, num sampleRate) native ; |
@DomName('AudioContext.createBufferSource') |
@DocsEditable() |
- AudioBufferSourceNode createBufferSource() native; |
+ AudioBufferSourceNode createBufferSource() native ; |
@DomName('AudioContext.createChannelMerger') |
@DocsEditable() |
- ChannelMergerNode createChannelMerger([int numberOfInputs]) native; |
+ ChannelMergerNode createChannelMerger([int numberOfInputs]) native ; |
@DomName('AudioContext.createChannelSplitter') |
@DocsEditable() |
- ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native; |
+ ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native ; |
@DomName('AudioContext.createConvolver') |
@DocsEditable() |
- ConvolverNode createConvolver() native; |
+ ConvolverNode createConvolver() native ; |
@DomName('AudioContext.createDelay') |
@DocsEditable() |
- DelayNode createDelay([num maxDelayTime]) native; |
+ DelayNode createDelay([num maxDelayTime]) native ; |
@DomName('AudioContext.createDynamicsCompressor') |
@DocsEditable() |
- DynamicsCompressorNode createDynamicsCompressor() native; |
+ DynamicsCompressorNode createDynamicsCompressor() native ; |
@DomName('AudioContext.createMediaElementSource') |
@DocsEditable() |
- MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement) native; |
+ MediaElementAudioSourceNode createMediaElementSource( |
+ MediaElement mediaElement) native ; |
@DomName('AudioContext.createMediaStreamDestination') |
@DocsEditable() |
- MediaStreamAudioDestinationNode createMediaStreamDestination() native; |
+ MediaStreamAudioDestinationNode createMediaStreamDestination() native ; |
@DomName('AudioContext.createMediaStreamSource') |
@DocsEditable() |
- MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) native; |
+ MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) |
+ native ; |
@DomName('AudioContext.createOscillator') |
@DocsEditable() |
- OscillatorNode createOscillator() native; |
+ OscillatorNode createOscillator() native ; |
@DomName('AudioContext.createPanner') |
@DocsEditable() |
- PannerNode createPanner() native; |
+ PannerNode createPanner() native ; |
@DomName('AudioContext.createPeriodicWave') |
@DocsEditable() |
@Experimental() // untriaged |
- PeriodicWave createPeriodicWave(Float32List real, Float32List imag) native; |
+ PeriodicWave createPeriodicWave(Float32List real, Float32List imag) native ; |
@DomName('AudioContext.createStereoPanner') |
@DocsEditable() |
@Experimental() // untriaged |
- StereoPannerNode createStereoPanner() native; |
+ StereoPannerNode createStereoPanner() native ; |
@DomName('AudioContext.createWaveShaper') |
@DocsEditable() |
- WaveShaperNode createWaveShaper() native; |
+ WaveShaperNode createWaveShaper() native ; |
@JSName('decodeAudioData') |
@DomName('AudioContext.decodeAudioData') |
@DocsEditable() |
- void _decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallback, [AudioBufferCallback errorCallback]) native; |
+ void _decodeAudioData( |
+ ByteBuffer audioData, AudioBufferCallback successCallback, |
+ [AudioBufferCallback errorCallback]) native ; |
@DomName('AudioContext.resume') |
@DocsEditable() |
@Experimental() // untriaged |
- Future resume() native; |
+ Future resume() native ; |
@DomName('AudioContext.suspend') |
@DocsEditable() |
@Experimental() // untriaged |
- Future suspend() native; |
+ Future suspend() native ; |
factory AudioContext() => JS('AudioContext', |
'new (window.AudioContext || window.webkitAudioContext)()'); |
@@ -356,8 +365,12 @@ class AudioContext extends EventTarget { |
ScriptProcessorNode createScriptProcessor(int bufferSize, |
[int numberOfInputChannels, int numberOfOutputChannels]) { |
- var function = JS('=Object', '#.createScriptProcessor || ' |
- '#.createJavaScriptNode', this, this); |
+ var function = JS( |
+ '=Object', |
+ '#.createScriptProcessor || ' |
+ '#.createJavaScriptNode', |
+ this, |
+ this); |
if (numberOfOutputChannels != null) { |
return JS('ScriptProcessorNode', '#.call(#, #, #, #)', function, this, |
bufferSize, numberOfInputChannels, numberOfOutputChannels); |
@@ -365,22 +378,23 @@ class AudioContext extends EventTarget { |
return JS('ScriptProcessorNode', '#.call(#, #, #)', function, this, |
bufferSize, numberOfInputChannels); |
} else { |
- return JS('ScriptProcessorNode', '#.call(#, #)', function, this, |
- bufferSize); |
+ return JS( |
+ 'ScriptProcessorNode', '#.call(#, #)', function, this, 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); |
- } |
- }); |
+ _decodeAudioData(audioData, (value) { |
+ completer.complete(value); |
+ }, (error) { |
+ if (error == null) { |
+ completer.completeError(''); |
+ } else { |
+ completer.completeError(error); |
+ } |
+ }); |
return completer.future; |
} |
} |
@@ -388,7 +402,6 @@ class AudioContext extends EventTarget { |
// 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. |
- |
@DocsEditable() |
@DomName('AudioDestinationNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDestinationNode-section |
@@ -396,7 +409,9 @@ class AudioContext extends EventTarget { |
@Native("AudioDestinationNode") |
class AudioDestinationNode extends AudioNode { |
// To suppress missing implicit constructor warnings. |
- factory AudioDestinationNode._() { throw new UnsupportedError("Not supported"); } |
+ factory AudioDestinationNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('AudioDestinationNode.maxChannelCount') |
@DocsEditable() |
@@ -406,7 +421,6 @@ class AudioDestinationNode extends AudioNode { |
// 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. |
- |
@DocsEditable() |
@DomName('AudioListener') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioListener-section |
@@ -414,7 +428,9 @@ class AudioDestinationNode extends AudioNode { |
@Native("AudioListener") |
class AudioListener extends Interceptor { |
// To suppress missing implicit constructor warnings. |
- factory AudioListener._() { throw new UnsupportedError("Not supported"); } |
+ factory AudioListener._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('AudioListener.dopplerFactor') |
@DocsEditable() |
@@ -426,28 +442,29 @@ class AudioListener extends Interceptor { |
@DomName('AudioListener.setOrientation') |
@DocsEditable() |
- void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; |
+ void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native ; |
@DomName('AudioListener.setPosition') |
@DocsEditable() |
- void setPosition(num x, num y, num z) native; |
+ void setPosition(num x, num y, num z) native ; |
@DomName('AudioListener.setVelocity') |
@DocsEditable() |
- void setVelocity(num x, num y, num z) native; |
+ void setVelocity(num x, num y, num z) native ; |
} |
// 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 |
// BSD-style license that can be found in the LICENSE file. |
- |
@DomName('AudioNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNode-section |
@Experimental() |
@Native("AudioNode") |
class AudioNode extends EventTarget { |
// To suppress missing implicit constructor warnings. |
- factory AudioNode._() { throw new UnsupportedError("Not supported"); } |
+ factory AudioNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('AudioNode.channelCount') |
@DocsEditable() |
@@ -476,11 +493,11 @@ class AudioNode extends EventTarget { |
@JSName('connect') |
@DomName('AudioNode.connect') |
@DocsEditable() |
- void _connect(destination, [int output, int input]) native; |
+ void _connect(destination, [int output, int input]) native ; |
@DomName('AudioNode.disconnect') |
@DocsEditable() |
- void disconnect([destination_OR_output, int output, int input]) native; |
+ void disconnect([destination_OR_output, int output, int input]) native ; |
@DomName('AudioNode.connect') |
void connectNode(AudioNode destination, [int output = 0, int input = 0]) { |
@@ -496,7 +513,6 @@ class AudioNode extends EventTarget { |
// 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. |
- |
@DocsEditable() |
@DomName('AudioParam') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioParam |
@@ -504,7 +520,9 @@ class AudioNode extends EventTarget { |
@Native("AudioParam") |
class AudioParam extends Interceptor { |
// To suppress missing implicit constructor warnings. |
- factory AudioParam._() { throw new UnsupportedError("Not supported"); } |
+ factory AudioParam._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('AudioParam.defaultValue') |
@DocsEditable() |
@@ -516,33 +534,32 @@ class AudioParam extends Interceptor { |
@DomName('AudioParam.cancelScheduledValues') |
@DocsEditable() |
- void cancelScheduledValues(num startTime) native; |
+ void cancelScheduledValues(num startTime) native ; |
@DomName('AudioParam.exponentialRampToValueAtTime') |
@DocsEditable() |
- void exponentialRampToValueAtTime(num value, num time) native; |
+ void exponentialRampToValueAtTime(num value, num time) native ; |
@DomName('AudioParam.linearRampToValueAtTime') |
@DocsEditable() |
- void linearRampToValueAtTime(num value, num time) native; |
+ void linearRampToValueAtTime(num value, num time) native ; |
@DomName('AudioParam.setTargetAtTime') |
@DocsEditable() |
- void setTargetAtTime(num target, num time, num timeConstant) native; |
+ void setTargetAtTime(num target, num time, num timeConstant) native ; |
@DomName('AudioParam.setValueAtTime') |
@DocsEditable() |
- void setValueAtTime(num value, num time) native; |
+ void setValueAtTime(num value, num time) native ; |
@DomName('AudioParam.setValueCurveAtTime') |
@DocsEditable() |
- void setValueCurveAtTime(Float32List values, num time, num duration) native; |
+ void setValueCurveAtTime(Float32List values, num time, num duration) native ; |
} |
// 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 |
// BSD-style license that can be found in the LICENSE file. |
- |
@DocsEditable() |
@DomName('AudioProcessingEvent') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioProcessingEvent-section |
@@ -550,7 +567,9 @@ class AudioParam extends Interceptor { |
@Native("AudioProcessingEvent") |
class AudioProcessingEvent extends Event { |
// To suppress missing implicit constructor warnings. |
- factory AudioProcessingEvent._() { throw new UnsupportedError("Not supported"); } |
+ factory AudioProcessingEvent._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('AudioProcessingEvent.inputBuffer') |
@DocsEditable() |
@@ -569,7 +588,6 @@ class AudioProcessingEvent extends Event { |
// 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. |
- |
@DocsEditable() |
@DomName('AudioSourceNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html |
@@ -577,13 +595,14 @@ class AudioProcessingEvent extends Event { |
@Native("AudioSourceNode") |
class AudioSourceNode extends AudioNode { |
// To suppress missing implicit constructor warnings. |
- factory AudioSourceNode._() { throw new UnsupportedError("Not supported"); } |
+ factory AudioSourceNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
} |
// 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 |
// BSD-style license that can be found in the LICENSE file. |
- |
@DocsEditable() |
@DomName('BiquadFilterNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadFilterNode-section |
@@ -591,7 +610,9 @@ class AudioSourceNode extends AudioNode { |
@Native("BiquadFilterNode") |
class BiquadFilterNode extends AudioNode { |
// To suppress missing implicit constructor warnings. |
- factory BiquadFilterNode._() { throw new UnsupportedError("Not supported"); } |
+ factory BiquadFilterNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('BiquadFilterNode.Q') |
@DocsEditable() |
@@ -615,13 +636,13 @@ class BiquadFilterNode extends AudioNode { |
@DomName('BiquadFilterNode.getFrequencyResponse') |
@DocsEditable() |
- void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Float32List phaseResponse) native; |
+ void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, |
+ Float32List phaseResponse) native ; |
} |
// 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 |
// BSD-style license that can be found in the LICENSE file. |
- |
@DocsEditable() |
@DomName('ChannelMergerNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ChannelMergerNode-section |
@@ -629,13 +650,14 @@ class BiquadFilterNode extends AudioNode { |
@Native("ChannelMergerNode,AudioChannelMerger") |
class ChannelMergerNode extends AudioNode { |
// To suppress missing implicit constructor warnings. |
- factory ChannelMergerNode._() { throw new UnsupportedError("Not supported"); } |
+ factory ChannelMergerNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
} |
// 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 |
// BSD-style license that can be found in the LICENSE file. |
- |
@DocsEditable() |
@DomName('ChannelSplitterNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ChannelSplitterNode-section |
@@ -643,13 +665,14 @@ class ChannelMergerNode extends AudioNode { |
@Native("ChannelSplitterNode,AudioChannelSplitter") |
class ChannelSplitterNode extends AudioNode { |
// To suppress missing implicit constructor warnings. |
- factory ChannelSplitterNode._() { throw new UnsupportedError("Not supported"); } |
+ factory ChannelSplitterNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
} |
// 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 |
// BSD-style license that can be found in the LICENSE file. |
- |
@DocsEditable() |
@DomName('ConvolverNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ConvolverNode |
@@ -657,7 +680,9 @@ class ChannelSplitterNode extends AudioNode { |
@Native("ConvolverNode") |
class ConvolverNode extends AudioNode { |
// To suppress missing implicit constructor warnings. |
- factory ConvolverNode._() { throw new UnsupportedError("Not supported"); } |
+ factory ConvolverNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('ConvolverNode.buffer') |
@DocsEditable() |
@@ -671,7 +696,6 @@ class ConvolverNode extends AudioNode { |
// 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. |
- |
@DocsEditable() |
@DomName('DelayNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNode |
@@ -679,7 +703,9 @@ class ConvolverNode extends AudioNode { |
@Native("DelayNode") |
class DelayNode extends AudioNode { |
// To suppress missing implicit constructor warnings. |
- factory DelayNode._() { throw new UnsupportedError("Not supported"); } |
+ factory DelayNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('DelayNode.delayTime') |
@DocsEditable() |
@@ -689,7 +715,6 @@ class DelayNode extends AudioNode { |
// 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. |
- |
@DocsEditable() |
@DomName('DynamicsCompressorNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DynamicsCompressorNode |
@@ -697,7 +722,9 @@ class DelayNode extends AudioNode { |
@Native("DynamicsCompressorNode") |
class DynamicsCompressorNode extends AudioNode { |
// To suppress missing implicit constructor warnings. |
- factory DynamicsCompressorNode._() { throw new UnsupportedError("Not supported"); } |
+ factory DynamicsCompressorNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('DynamicsCompressorNode.attack') |
@DocsEditable() |
@@ -727,7 +754,6 @@ class DynamicsCompressorNode extends AudioNode { |
// 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. |
- |
@DocsEditable() |
@DomName('GainNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNode |
@@ -735,7 +761,9 @@ class DynamicsCompressorNode extends AudioNode { |
@Native("GainNode,AudioGainNode") |
class GainNode extends AudioNode { |
// To suppress missing implicit constructor warnings. |
- factory GainNode._() { throw new UnsupportedError("Not supported"); } |
+ factory GainNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('GainNode.gain') |
@DocsEditable() |
@@ -745,7 +773,6 @@ class GainNode extends AudioNode { |
// 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. |
- |
@DocsEditable() |
@DomName('MediaElementAudioSourceNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaElementAudioSourceNode |
@@ -753,7 +780,9 @@ class GainNode extends AudioNode { |
@Native("MediaElementAudioSourceNode") |
class MediaElementAudioSourceNode extends AudioSourceNode { |
// To suppress missing implicit constructor warnings. |
- factory MediaElementAudioSourceNode._() { throw new UnsupportedError("Not supported"); } |
+ factory MediaElementAudioSourceNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('MediaElementAudioSourceNode.mediaElement') |
@DocsEditable() |
@@ -764,7 +793,6 @@ class MediaElementAudioSourceNode extends AudioSourceNode { |
// 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. |
- |
@DocsEditable() |
@DomName('MediaStreamAudioDestinationNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaStreamAudioDestinationNode |
@@ -772,7 +800,9 @@ class MediaElementAudioSourceNode extends AudioSourceNode { |
@Native("MediaStreamAudioDestinationNode") |
class MediaStreamAudioDestinationNode extends AudioNode { |
// To suppress missing implicit constructor warnings. |
- factory MediaStreamAudioDestinationNode._() { throw new UnsupportedError("Not supported"); } |
+ factory MediaStreamAudioDestinationNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('MediaStreamAudioDestinationNode.stream') |
@DocsEditable() |
@@ -782,7 +812,6 @@ class MediaStreamAudioDestinationNode extends AudioNode { |
// 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. |
- |
@DocsEditable() |
@DomName('MediaStreamAudioSourceNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaStreamAudioSourceNode |
@@ -790,7 +819,9 @@ class MediaStreamAudioDestinationNode extends AudioNode { |
@Native("MediaStreamAudioSourceNode") |
class MediaStreamAudioSourceNode extends AudioSourceNode { |
// To suppress missing implicit constructor warnings. |
- factory MediaStreamAudioSourceNode._() { throw new UnsupportedError("Not supported"); } |
+ factory MediaStreamAudioSourceNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('MediaStreamAudioSourceNode.mediaStream') |
@DocsEditable() |
@@ -800,7 +831,6 @@ class MediaStreamAudioSourceNode extends AudioSourceNode { |
// 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. |
- |
@DocsEditable() |
@DomName('OfflineAudioCompletionEvent') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#OfflineAudioCompletionEvent-section |
@@ -808,7 +838,9 @@ class MediaStreamAudioSourceNode extends AudioSourceNode { |
@Native("OfflineAudioCompletionEvent") |
class OfflineAudioCompletionEvent extends Event { |
// To suppress missing implicit constructor warnings. |
- factory OfflineAudioCompletionEvent._() { throw new UnsupportedError("Not supported"); } |
+ factory OfflineAudioCompletionEvent._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('OfflineAudioCompletionEvent.renderedBuffer') |
@DocsEditable() |
@@ -818,7 +850,6 @@ class OfflineAudioCompletionEvent extends Event { |
// 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. |
- |
@DocsEditable() |
@DomName('OfflineAudioContext') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#OfflineAudioContext-section |
@@ -826,25 +857,31 @@ class OfflineAudioCompletionEvent extends Event { |
@Native("OfflineAudioContext") |
class OfflineAudioContext extends AudioContext { |
// To suppress missing implicit constructor warnings. |
- factory OfflineAudioContext._() { throw new UnsupportedError("Not supported"); } |
+ factory OfflineAudioContext._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('OfflineAudioContext.OfflineAudioContext') |
@DocsEditable() |
- factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num sampleRate) { |
- return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampleRate); |
+ factory OfflineAudioContext( |
+ int numberOfChannels, int numberOfFrames, num sampleRate) { |
+ return OfflineAudioContext._create_1( |
+ numberOfChannels, numberOfFrames, sampleRate); |
} |
- static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleRate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChannels, numberOfFrames, sampleRate); |
+ static OfflineAudioContext _create_1( |
+ numberOfChannels, numberOfFrames, sampleRate) => |
+ JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', |
+ numberOfChannels, numberOfFrames, sampleRate); |
@DomName('OfflineAudioContext.startRendering') |
@DocsEditable() |
@Experimental() // untriaged |
- Future startRendering() native; |
+ Future startRendering() native ; |
} |
// 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 |
// BSD-style license that can be found in the LICENSE file. |
- |
@DocsEditable() |
@DomName('OscillatorNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-OscillatorNode |
@@ -852,7 +889,9 @@ class OfflineAudioContext extends AudioContext { |
@Native("OscillatorNode,Oscillator") |
class OscillatorNode extends AudioSourceNode { |
// To suppress missing implicit constructor warnings. |
- factory OscillatorNode._() { throw new UnsupportedError("Not supported"); } |
+ factory OscillatorNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
/** |
* Static factory designed to expose `ended` events to event |
@@ -863,7 +902,8 @@ class OscillatorNode extends AudioSourceNode { |
@DomName('OscillatorNode.endedEvent') |
@DocsEditable() |
@Experimental() // untriaged |
- static const EventStreamProvider<Event> endedEvent = const EventStreamProvider<Event>('ended'); |
+ static const EventStreamProvider<Event> endedEvent = |
+ const EventStreamProvider<Event>('ended'); |
@DomName('OscillatorNode.detune') |
@DocsEditable() |
@@ -880,15 +920,15 @@ class OscillatorNode extends AudioSourceNode { |
@DomName('OscillatorNode.setPeriodicWave') |
@DocsEditable() |
@Experimental() // untriaged |
- void setPeriodicWave(PeriodicWave periodicWave) native; |
+ void setPeriodicWave(PeriodicWave periodicWave) native ; |
@DomName('OscillatorNode.start') |
@DocsEditable() |
- void start([num when]) native; |
+ void start([num when]) native ; |
@DomName('OscillatorNode.stop') |
@DocsEditable() |
- void stop([num when]) native; |
+ void stop([num when]) native ; |
/// Stream of `ended` events handled by this [OscillatorNode]. |
@DomName('OscillatorNode.onended') |
@@ -900,7 +940,6 @@ class OscillatorNode extends AudioSourceNode { |
// 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. |
- |
@DocsEditable() |
@DomName('PannerNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerNode |
@@ -908,7 +947,9 @@ class OscillatorNode extends AudioSourceNode { |
@Native("PannerNode,AudioPannerNode,webkitAudioPannerNode") |
class PannerNode extends AudioNode { |
// To suppress missing implicit constructor warnings. |
- factory PannerNode._() { throw new UnsupportedError("Not supported"); } |
+ factory PannerNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('PannerNode.coneInnerAngle') |
@DocsEditable() |
@@ -944,34 +985,34 @@ class PannerNode extends AudioNode { |
@DomName('PannerNode.setOrientation') |
@DocsEditable() |
- void setOrientation(num x, num y, num z) native; |
+ void setOrientation(num x, num y, num z) native ; |
@DomName('PannerNode.setPosition') |
@DocsEditable() |
- void setPosition(num x, num y, num z) native; |
+ void setPosition(num x, num y, num z) native ; |
@DomName('PannerNode.setVelocity') |
@DocsEditable() |
- void setVelocity(num x, num y, num z) native; |
+ void setVelocity(num x, num y, num z) native ; |
} |
// 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 |
// BSD-style license that can be found in the LICENSE file. |
- |
@DocsEditable() |
@DomName('PeriodicWave') |
@Experimental() // untriaged |
@Native("PeriodicWave") |
class PeriodicWave extends Interceptor { |
// To suppress missing implicit constructor warnings. |
- factory PeriodicWave._() { throw new UnsupportedError("Not supported"); } |
+ factory PeriodicWave._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
} |
// 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 |
// BSD-style license that can be found in the LICENSE file. |
- |
@DocsEditable() |
@DomName('ScriptProcessorNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptProcessorNode |
@@ -979,7 +1020,9 @@ class PeriodicWave extends Interceptor { |
@Native("ScriptProcessorNode,JavaScriptAudioNode") |
class ScriptProcessorNode extends AudioNode { |
// To suppress missing implicit constructor warnings. |
- factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported"); } |
+ factory ScriptProcessorNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
/** |
* Static factory designed to expose `audioprocess` events to event |
@@ -990,7 +1033,8 @@ class ScriptProcessorNode extends AudioNode { |
@DomName('ScriptProcessorNode.audioprocessEvent') |
@DocsEditable() |
@Experimental() // untriaged |
- static const EventStreamProvider<AudioProcessingEvent> audioProcessEvent = const EventStreamProvider<AudioProcessingEvent>('audioprocess'); |
+ static const EventStreamProvider<AudioProcessingEvent> audioProcessEvent = |
+ const EventStreamProvider<AudioProcessingEvent>('audioprocess'); |
@DomName('ScriptProcessorNode.bufferSize') |
@DocsEditable() |
@@ -999,7 +1043,7 @@ class ScriptProcessorNode extends AudioNode { |
@DomName('ScriptProcessorNode.setEventListener') |
@DocsEditable() |
@Experimental() // untriaged |
- void setEventListener(EventListener eventListener) native; |
+ void setEventListener(EventListener eventListener) native ; |
/// Stream of `audioprocess` events handled by this [ScriptProcessorNode]. |
/** |
@@ -1012,20 +1056,22 @@ class ScriptProcessorNode extends AudioNode { |
@DomName('ScriptProcessorNode.onaudioprocess') |
@DocsEditable() |
@Experimental() // untriaged |
- Stream<AudioProcessingEvent> get onAudioProcess => audioProcessEvent.forTarget(this); |
+ Stream<AudioProcessingEvent> get onAudioProcess => |
+ audioProcessEvent.forTarget(this); |
} |
// 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 |
// BSD-style license that can be found in the LICENSE file. |
- |
@DocsEditable() |
@DomName('StereoPannerNode') |
@Experimental() // untriaged |
@Native("StereoPannerNode") |
class StereoPannerNode extends AudioNode { |
// To suppress missing implicit constructor warnings. |
- factory StereoPannerNode._() { throw new UnsupportedError("Not supported"); } |
+ factory StereoPannerNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('StereoPannerNode.pan') |
@DocsEditable() |
@@ -1036,7 +1082,6 @@ class StereoPannerNode extends AudioNode { |
// 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. |
- |
@DocsEditable() |
@DomName('WaveShaperNode') |
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-WaveShaperNode |
@@ -1044,7 +1089,9 @@ class StereoPannerNode extends AudioNode { |
@Native("WaveShaperNode") |
class WaveShaperNode extends AudioNode { |
// To suppress missing implicit constructor warnings. |
- factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } |
+ factory WaveShaperNode._() { |
+ throw new UnsupportedError("Not supported"); |
+ } |
@DomName('WaveShaperNode.curve') |
@DocsEditable() |