| 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 ed635ed1cc7482a4f8e49e29a1db8121fca279ce..e6eb6091419fb6f922b8ef16ec562a390784be00 100644
|
| --- a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
|
| +++ b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
|
| @@ -22,6 +22,8 @@ import 'dart:_foreign_helper' show JS;
|
|
|
| @DocsEditable
|
| @DomName('AnalyserNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AnalyserNode
|
| +@Experimental
|
| class AnalyserNode extends AudioNode native "AnalyserNode" {
|
|
|
| @DomName('AnalyserNode.fftSize')
|
| @@ -63,6 +65,8 @@ class AnalyserNode extends AudioNode native "AnalyserNode" {
|
|
|
| @DocsEditable
|
| @DomName('AudioBuffer')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBuffer-section
|
| +@Experimental
|
| class AudioBuffer native "AudioBuffer" {
|
|
|
| @DomName('AudioBuffer.duration')
|
| @@ -96,6 +100,9 @@ class AudioBuffer native "AudioBuffer" {
|
| // WARNING: Do not edit - generated code.
|
|
|
|
|
| +@DomName('AudioBufferCallback')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBuffer-section
|
| +@Experimental
|
| typedef void AudioBufferCallback(AudioBuffer audioBuffer);
|
| // 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
|
| @@ -103,6 +110,8 @@ typedef void AudioBufferCallback(AudioBuffer audioBuffer);
|
|
|
|
|
| @DomName('AudioBufferSourceNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBufferSourceNode-section
|
| +@Experimental
|
| class AudioBufferSourceNode extends AudioSourceNode native "AudioBufferSourceNode" {
|
|
|
| // TODO(efortuna): Remove these methods when Chrome stable also uses start
|
| @@ -186,6 +195,8 @@ class AudioBufferSourceNode extends AudioSourceNode native "AudioBufferSourceNod
|
|
|
|
|
| @DomName('AudioContext')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioContext-section
|
| +@Experimental
|
| class AudioContext extends EventTarget native "AudioContext" {
|
|
|
| @DomName('AudioContext.completeEvent')
|
| @@ -325,6 +336,8 @@ class AudioContext extends EventTarget native "AudioContext" {
|
|
|
| @DocsEditable
|
| @DomName('AudioDestinationNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDestinationNode-section
|
| +@Experimental
|
| class AudioDestinationNode extends AudioNode native "AudioDestinationNode" {
|
|
|
| @DomName('AudioDestinationNode.maxChannelCount')
|
| @@ -338,6 +351,8 @@ class AudioDestinationNode extends AudioNode native "AudioDestinationNode" {
|
|
|
| @DocsEditable
|
| @DomName('AudioListener')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioListener-section
|
| +@Experimental
|
| class AudioListener native "AudioListener" {
|
|
|
| @DomName('AudioListener.dopplerFactor')
|
| @@ -367,6 +382,8 @@ class AudioListener native "AudioListener" {
|
|
|
| @DocsEditable
|
| @DomName('AudioNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNode-section
|
| +@Experimental
|
| class AudioNode native "AudioNode" {
|
|
|
| @DomName('AudioNode.channelCount')
|
| @@ -408,6 +425,8 @@ class AudioNode native "AudioNode" {
|
|
|
| @DocsEditable
|
| @DomName('AudioParam')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioParam
|
| +@Experimental
|
| class AudioParam native "AudioParam" {
|
|
|
| @DomName('AudioParam.defaultValue')
|
| @@ -465,6 +484,8 @@ class AudioParam native "AudioParam" {
|
|
|
| @DocsEditable
|
| @DomName('AudioProcessingEvent')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioProcessingEvent-section
|
| +@Experimental
|
| class AudioProcessingEvent extends Event native "AudioProcessingEvent" {
|
|
|
| @DomName('AudioProcessingEvent.inputBuffer')
|
| @@ -482,6 +503,8 @@ class AudioProcessingEvent extends Event native "AudioProcessingEvent" {
|
|
|
| @DocsEditable
|
| @DomName('AudioSourceNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html
|
| +@Experimental
|
| class AudioSourceNode extends AudioNode native "AudioSourceNode" {
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -491,6 +514,8 @@ class AudioSourceNode extends AudioNode native "AudioSourceNode" {
|
|
|
| @DocsEditable
|
| @DomName('BiquadFilterNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadFilterNode-section
|
| +@Experimental
|
| class BiquadFilterNode extends AudioNode native "BiquadFilterNode" {
|
|
|
| @DomName('BiquadFilterNode.ALLPASS')
|
| @@ -556,6 +581,8 @@ class BiquadFilterNode extends AudioNode native "BiquadFilterNode" {
|
|
|
| @DocsEditable
|
| @DomName('ChannelMergerNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ChannelMergerNode-section
|
| +@Experimental
|
| class ChannelMergerNode extends AudioNode native "ChannelMergerNode" {
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -565,6 +592,8 @@ class ChannelMergerNode extends AudioNode native "ChannelMergerNode" {
|
|
|
| @DocsEditable
|
| @DomName('ChannelSplitterNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ChannelSplitterNode-section
|
| +@Experimental
|
| class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode" {
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -574,6 +603,8 @@ class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode" {
|
|
|
| @DocsEditable
|
| @DomName('ConvolverNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ConvolverNode
|
| +@Experimental
|
| class ConvolverNode extends AudioNode native "ConvolverNode" {
|
|
|
| @DomName('ConvolverNode.buffer')
|
| @@ -591,6 +622,8 @@ class ConvolverNode extends AudioNode native "ConvolverNode" {
|
|
|
| @DocsEditable
|
| @DomName('DelayNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNode
|
| +@Experimental
|
| class DelayNode extends AudioNode native "DelayNode" {
|
|
|
| @DomName('DelayNode.delayTime')
|
| @@ -604,6 +637,8 @@ class DelayNode extends AudioNode native "DelayNode" {
|
|
|
| @DocsEditable
|
| @DomName('DynamicsCompressorNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DynamicsCompressorNode
|
| +@Experimental
|
| class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" {
|
|
|
| @DomName('DynamicsCompressorNode.attack')
|
| @@ -637,6 +672,8 @@ class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" {
|
|
|
| @DocsEditable
|
| @DomName('GainNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNode
|
| +@Experimental
|
| class GainNode extends AudioNode native "GainNode" {
|
|
|
| @DomName('GainNode.gain')
|
| @@ -650,10 +687,13 @@ class GainNode extends AudioNode native "GainNode" {
|
|
|
| @DocsEditable
|
| @DomName('MediaElementAudioSourceNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaElementAudioSourceNode
|
| +@Experimental
|
| class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAudioSourceNode" {
|
|
|
| @DomName('MediaElementAudioSourceNode.mediaElement')
|
| @DocsEditable
|
| + @Experimental // non-standard
|
| final MediaElement mediaElement;
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -663,6 +703,8 @@ class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAu
|
|
|
| @DocsEditable
|
| @DomName('MediaStreamAudioDestinationNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaStreamAudioDestinationNode
|
| +@Experimental
|
| class MediaStreamAudioDestinationNode extends AudioSourceNode native "MediaStreamAudioDestinationNode" {
|
|
|
| @DomName('MediaStreamAudioDestinationNode.stream')
|
| @@ -676,6 +718,8 @@ class MediaStreamAudioDestinationNode extends AudioSourceNode native "MediaStrea
|
|
|
| @DocsEditable
|
| @DomName('MediaStreamAudioSourceNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaStreamAudioSourceNode
|
| +@Experimental
|
| class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudioSourceNode" {
|
|
|
| @DomName('MediaStreamAudioSourceNode.mediaStream')
|
| @@ -689,6 +733,8 @@ class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudi
|
|
|
| @DocsEditable
|
| @DomName('OfflineAudioCompletionEvent')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#OfflineAudioCompletionEvent-section
|
| +@Experimental
|
| class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEvent" {
|
|
|
| @DomName('OfflineAudioCompletionEvent.renderedBuffer')
|
| @@ -702,6 +748,8 @@ class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEv
|
|
|
| @DocsEditable
|
| @DomName('OfflineAudioContext')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#OfflineAudioContext-section
|
| +@Experimental
|
| class OfflineAudioContext extends AudioContext implements EventTarget native "OfflineAudioContext" {
|
|
|
| @DomName('OfflineAudioContext.OfflineAudioContext')
|
| @@ -718,10 +766,14 @@ class OfflineAudioContext extends AudioContext implements EventTarget native "Of
|
|
|
| @DocsEditable
|
| @DomName('OscillatorNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-OscillatorNode
|
| +@Experimental
|
| class OscillatorNode extends AudioSourceNode native "OscillatorNode" {
|
|
|
| @DomName('OscillatorNode.CUSTOM')
|
| @DocsEditable
|
| + // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AlternateNames
|
| + @deprecated // deprecated
|
| static const int CUSTOM = 4;
|
|
|
| @DomName('OscillatorNode.FINISHED_STATE')
|
| @@ -734,6 +786,8 @@ class OscillatorNode extends AudioSourceNode native "OscillatorNode" {
|
|
|
| @DomName('OscillatorNode.SAWTOOTH')
|
| @DocsEditable
|
| + // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AlternateNames
|
| + @deprecated // deprecated
|
| static const int SAWTOOTH = 2;
|
|
|
| @DomName('OscillatorNode.SCHEDULED_STATE')
|
| @@ -742,14 +796,20 @@ class OscillatorNode extends AudioSourceNode native "OscillatorNode" {
|
|
|
| @DomName('OscillatorNode.SINE')
|
| @DocsEditable
|
| + // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AlternateNames
|
| + @deprecated // deprecated
|
| static const int SINE = 0;
|
|
|
| @DomName('OscillatorNode.SQUARE')
|
| @DocsEditable
|
| + // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AlternateNames
|
| + @deprecated // deprecated
|
| static const int SQUARE = 1;
|
|
|
| @DomName('OscillatorNode.TRIANGLE')
|
| @DocsEditable
|
| + // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AlternateNames
|
| + @deprecated // deprecated
|
| static const int TRIANGLE = 3;
|
|
|
| @DomName('OscillatorNode.UNSCHEDULED_STATE')
|
| @@ -791,30 +851,44 @@ class OscillatorNode extends AudioSourceNode native "OscillatorNode" {
|
|
|
| @DocsEditable
|
| @DomName('PannerNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerNode
|
| +@Experimental
|
| class PannerNode extends AudioNode native "PannerNode" {
|
|
|
| @DomName('PannerNode.EQUALPOWER')
|
| @DocsEditable
|
| + // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AlternateNames
|
| + @deprecated // deprecated
|
| static const int EQUALPOWER = 0;
|
|
|
| @DomName('PannerNode.EXPONENTIAL_DISTANCE')
|
| @DocsEditable
|
| + // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AlternateNames
|
| + @deprecated // deprecated
|
| static const int EXPONENTIAL_DISTANCE = 2;
|
|
|
| @DomName('PannerNode.HRTF')
|
| @DocsEditable
|
| + // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AlternateNames
|
| + @deprecated // deprecated
|
| static const int HRTF = 1;
|
|
|
| @DomName('PannerNode.INVERSE_DISTANCE')
|
| @DocsEditable
|
| + // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AlternateNames
|
| + @deprecated // deprecated
|
| static const int INVERSE_DISTANCE = 1;
|
|
|
| @DomName('PannerNode.LINEAR_DISTANCE')
|
| @DocsEditable
|
| + // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AlternateNames
|
| + @deprecated // deprecated
|
| static const int LINEAR_DISTANCE = 0;
|
|
|
| @DomName('PannerNode.SOUNDFIELD')
|
| @DocsEditable
|
| + // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AlternateNames
|
| + @deprecated // deprecated
|
| static const int SOUNDFIELD = 2;
|
|
|
| @DomName('PannerNode.coneInnerAngle')
|
| @@ -867,6 +941,8 @@ class PannerNode extends AudioNode native "PannerNode" {
|
|
|
|
|
| @DomName('ScriptProcessorNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptProcessorNode
|
| +@Experimental
|
| class ScriptProcessorNode extends AudioNode native "ScriptProcessorNode" {
|
| Stream<AudioProcessingEvent> _eventStream;
|
|
|
| @@ -913,6 +989,8 @@ class ScriptProcessorNode extends AudioNode native "ScriptProcessorNode" {
|
|
|
| @DocsEditable
|
| @DomName('WaveShaperNode')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-WaveShaperNode
|
| +@Experimental
|
| class WaveShaperNode extends AudioNode native "WaveShaperNode" {
|
|
|
| @DomName('WaveShaperNode.curve')
|
| @@ -926,5 +1004,7 @@ class WaveShaperNode extends AudioNode native "WaveShaperNode" {
|
|
|
| @DocsEditable
|
| @DomName('WaveTable')
|
| +// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTable-section
|
| +@Experimental
|
| class WaveTable native "WaveTable" {
|
| }
|
|
|