| OLD | NEW |
| 1 /** | 1 /** |
| 2 * High-fidelity audio programming in the browser. | 2 * High-fidelity audio programming in the browser. |
| 3 */ | 3 */ |
| 4 library dart.dom.web_audio; | 4 library dart.dom.web_audio; |
| 5 | 5 |
| 6 import 'dart:async'; | 6 import 'dart:async'; |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:_internal'; | 8 import 'dart:_internal'; |
| 9 import 'dart:html'; | 9 import 'dart:html'; |
| 10 import 'dart:html_common'; | 10 import 'dart:html_common'; |
| 11 import 'dart:nativewrappers'; | 11 import 'dart:nativewrappers'; |
| 12 import 'dart:typed_data'; | 12 import 'dart:typed_data'; |
| 13 import 'dart:_blink' as _blink; | 13 import 'dart:_blink' as _blink; |
| 14 import 'dart:js' as js; | 14 import 'dart:js' as js; |
| 15 // DO NOT EDIT | 15 // DO NOT EDIT |
| 16 // Auto-generated dart:audio library. | 16 // Auto-generated dart:audio library. |
| 17 | 17 |
| 18 | 18 |
| 19 | 19 |
| 20 | 20 |
| 21 // FIXME: Can we make this private? | 21 // FIXME: Can we make this private? |
| 22 @Deprecated("Internal Use Only") | 22 @Deprecated("Internal Use Only") |
| 23 final web_audioBlinkMap = { | 23 final web_audioBlinkMap = { |
| 24 'AnalyserNode': () => AnalyserNode, | 24 'AnalyserNode': () => AnalyserNode.instanceRuntimeType, |
| 25 'AudioBuffer': () => AudioBuffer, | 25 'AudioBuffer': () => AudioBuffer.instanceRuntimeType, |
| 26 'AudioBufferSourceNode': () => AudioBufferSourceNode, | 26 'AudioBufferSourceNode': () => AudioBufferSourceNode.instanceRuntimeType, |
| 27 'AudioContext': () => AudioContext, | 27 'AudioContext': () => AudioContext.instanceRuntimeType, |
| 28 'AudioDestinationNode': () => AudioDestinationNode, | 28 'AudioDestinationNode': () => AudioDestinationNode.instanceRuntimeType, |
| 29 'AudioListener': () => AudioListener, | 29 'AudioListener': () => AudioListener.instanceRuntimeType, |
| 30 'AudioNode': () => AudioNode, | 30 'AudioNode': () => AudioNode.instanceRuntimeType, |
| 31 'AudioParam': () => AudioParam, | 31 'AudioParam': () => AudioParam.instanceRuntimeType, |
| 32 'AudioProcessingEvent': () => AudioProcessingEvent, | 32 'AudioProcessingEvent': () => AudioProcessingEvent.instanceRuntimeType, |
| 33 'AudioSourceNode': () => AudioSourceNode, | 33 'AudioSourceNode': () => AudioSourceNode.instanceRuntimeType, |
| 34 'BiquadFilterNode': () => BiquadFilterNode, | 34 'BiquadFilterNode': () => BiquadFilterNode.instanceRuntimeType, |
| 35 'ChannelMergerNode': () => ChannelMergerNode, | 35 'ChannelMergerNode': () => ChannelMergerNode.instanceRuntimeType, |
| 36 'ChannelSplitterNode': () => ChannelSplitterNode, | 36 'ChannelSplitterNode': () => ChannelSplitterNode.instanceRuntimeType, |
| 37 'ConvolverNode': () => ConvolverNode, | 37 'ConvolverNode': () => ConvolverNode.instanceRuntimeType, |
| 38 'DelayNode': () => DelayNode, | 38 'DelayNode': () => DelayNode.instanceRuntimeType, |
| 39 'DynamicsCompressorNode': () => DynamicsCompressorNode, | 39 'DynamicsCompressorNode': () => DynamicsCompressorNode.instanceRuntimeType, |
| 40 'GainNode': () => GainNode, | 40 'GainNode': () => GainNode.instanceRuntimeType, |
| 41 'MediaElementAudioSourceNode': () => MediaElementAudioSourceNode, | 41 'MediaElementAudioSourceNode': () => MediaElementAudioSourceNode.instanceRunti
meType, |
| 42 'MediaStreamAudioDestinationNode': () => MediaStreamAudioDestinationNode, | 42 'MediaStreamAudioDestinationNode': () => MediaStreamAudioDestinationNode.insta
nceRuntimeType, |
| 43 'MediaStreamAudioSourceNode': () => MediaStreamAudioSourceNode, | 43 'MediaStreamAudioSourceNode': () => MediaStreamAudioSourceNode.instanceRuntime
Type, |
| 44 'OfflineAudioCompletionEvent': () => OfflineAudioCompletionEvent, | 44 'OfflineAudioCompletionEvent': () => OfflineAudioCompletionEvent.instanceRunti
meType, |
| 45 'OfflineAudioContext': () => OfflineAudioContext, | 45 'OfflineAudioContext': () => OfflineAudioContext.instanceRuntimeType, |
| 46 'OscillatorNode': () => OscillatorNode, | 46 'OscillatorNode': () => OscillatorNode.instanceRuntimeType, |
| 47 'PannerNode': () => PannerNode, | 47 'PannerNode': () => PannerNode.instanceRuntimeType, |
| 48 'PeriodicWave': () => PeriodicWave, | 48 'PeriodicWave': () => PeriodicWave.instanceRuntimeType, |
| 49 'ScriptProcessorNode': () => ScriptProcessorNode, | 49 'ScriptProcessorNode': () => ScriptProcessorNode.instanceRuntimeType, |
| 50 'StereoPannerNode': () => StereoPannerNode, | 50 'StereoPannerNode': () => StereoPannerNode.instanceRuntimeType, |
| 51 'WaveShaperNode': () => WaveShaperNode, | 51 'WaveShaperNode': () => WaveShaperNode.instanceRuntimeType, |
| 52 | |
| 53 }; | |
| 54 | |
| 55 // FIXME: Can we make this private? | |
| 56 @Deprecated("Internal Use Only") | |
| 57 final web_audioBlinkFunctionMap = { | |
| 58 'AnalyserNode': () => AnalyserNode.internalCreateAnalyserNode, | |
| 59 'AudioBuffer': () => AudioBuffer.internalCreateAudioBuffer, | |
| 60 'AudioBufferSourceNode': () => AudioBufferSourceNode.internalCreateAudioBuffer
SourceNode, | |
| 61 'AudioContext': () => AudioContext.internalCreateAudioContext, | |
| 62 'AudioDestinationNode': () => AudioDestinationNode.internalCreateAudioDestinat
ionNode, | |
| 63 'AudioListener': () => AudioListener.internalCreateAudioListener, | |
| 64 'AudioNode': () => AudioNode.internalCreateAudioNode, | |
| 65 'AudioParam': () => AudioParam.internalCreateAudioParam, | |
| 66 'AudioProcessingEvent': () => AudioProcessingEvent.internalCreateAudioProcessi
ngEvent, | |
| 67 'AudioSourceNode': () => AudioSourceNode.internalCreateAudioSourceNode, | |
| 68 'BiquadFilterNode': () => BiquadFilterNode.internalCreateBiquadFilterNode, | |
| 69 'ChannelMergerNode': () => ChannelMergerNode.internalCreateChannelMergerNode, | |
| 70 'ChannelSplitterNode': () => ChannelSplitterNode.internalCreateChannelSplitter
Node, | |
| 71 'ConvolverNode': () => ConvolverNode.internalCreateConvolverNode, | |
| 72 'DelayNode': () => DelayNode.internalCreateDelayNode, | |
| 73 'DynamicsCompressorNode': () => DynamicsCompressorNode.internalCreateDynamicsC
ompressorNode, | |
| 74 'GainNode': () => GainNode.internalCreateGainNode, | |
| 75 'MediaElementAudioSourceNode': () => MediaElementAudioSourceNode.internalCreat
eMediaElementAudioSourceNode, | |
| 76 'MediaStreamAudioDestinationNode': () => MediaStreamAudioDestinationNode.inter
nalCreateMediaStreamAudioDestinationNode, | |
| 77 'MediaStreamAudioSourceNode': () => MediaStreamAudioSourceNode.internalCreateM
ediaStreamAudioSourceNode, | |
| 78 'OfflineAudioCompletionEvent': () => OfflineAudioCompletionEvent.internalCreat
eOfflineAudioCompletionEvent, | |
| 79 'OfflineAudioContext': () => OfflineAudioContext.internalCreateOfflineAudioCon
text, | |
| 80 'OscillatorNode': () => OscillatorNode.internalCreateOscillatorNode, | |
| 81 'PannerNode': () => PannerNode.internalCreatePannerNode, | |
| 82 'PeriodicWave': () => PeriodicWave.internalCreatePeriodicWave, | |
| 83 'ScriptProcessorNode': () => ScriptProcessorNode.internalCreateScriptProcessor
Node, | |
| 84 'StereoPannerNode': () => StereoPannerNode.internalCreateStereoPannerNode, | |
| 85 'WaveShaperNode': () => WaveShaperNode.internalCreateWaveShaperNode, | |
| 86 | 52 |
| 87 }; | 53 }; |
| 88 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 54 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 89 // for details. All rights reserved. Use of this source code is governed by a | 55 // for details. All rights reserved. Use of this source code is governed by a |
| 90 // BSD-style license that can be found in the LICENSE file. | 56 // BSD-style license that can be found in the LICENSE file. |
| 91 | 57 |
| 92 // WARNING: Do not edit - generated code. | 58 // WARNING: Do not edit - generated code. |
| 93 | 59 |
| 94 | 60 |
| 95 @DocsEditable() | 61 @DocsEditable() |
| 96 @DomName('AnalyserNode') | 62 @DomName('AnalyserNode') |
| 97 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Analyse
rNode | 63 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Analyse
rNode |
| 98 @Experimental() | 64 @Experimental() |
| 99 class AnalyserNode extends AudioNode { | 65 class AnalyserNode extends AudioNode { |
| 100 // To suppress missing implicit constructor warnings. | 66 // To suppress missing implicit constructor warnings. |
| 101 factory AnalyserNode._() { throw new UnsupportedError("Not supported"); } | 67 factory AnalyserNode._() { throw new UnsupportedError("Not supported"); } |
| 102 | 68 |
| 103 | 69 |
| 104 @Deprecated("Internal Use Only") | 70 @Deprecated("Internal Use Only") |
| 105 static AnalyserNode internalCreateAnalyserNode() { | 71 external static Type get instanceRuntimeType; |
| 106 return new AnalyserNode._internalWrap(); | |
| 107 } | |
| 108 | |
| 109 external factory AnalyserNode._internalWrap(); | |
| 110 | 72 |
| 111 @Deprecated("Internal Use Only") | 73 @Deprecated("Internal Use Only") |
| 112 AnalyserNode.internal_() : super.internal_(); | 74 AnalyserNode.internal_() : super.internal_(); |
| 113 | 75 |
| 114 | 76 |
| 115 @DomName('AnalyserNode.fftSize') | 77 @DomName('AnalyserNode.fftSize') |
| 116 @DocsEditable() | 78 @DocsEditable() |
| 117 int get fftSize => _blink.BlinkAnalyserNode.instance.fftSize_Getter_(unwrap_js
o(this)); | 79 int get fftSize => _blink.BlinkAnalyserNode.instance.fftSize_Getter_(this); |
| 118 | 80 |
| 119 @DomName('AnalyserNode.fftSize') | 81 @DomName('AnalyserNode.fftSize') |
| 120 @DocsEditable() | 82 @DocsEditable() |
| 121 set fftSize(int value) => _blink.BlinkAnalyserNode.instance.fftSize_Setter_(un
wrap_jso(this), value); | 83 set fftSize(int value) => _blink.BlinkAnalyserNode.instance.fftSize_Setter_(th
is, value); |
| 122 | 84 |
| 123 @DomName('AnalyserNode.frequencyBinCount') | 85 @DomName('AnalyserNode.frequencyBinCount') |
| 124 @DocsEditable() | 86 @DocsEditable() |
| 125 int get frequencyBinCount => _blink.BlinkAnalyserNode.instance.frequencyBinCou
nt_Getter_(unwrap_jso(this)); | 87 int get frequencyBinCount => _blink.BlinkAnalyserNode.instance.frequencyBinCou
nt_Getter_(this); |
| 126 | 88 |
| 127 @DomName('AnalyserNode.maxDecibels') | 89 @DomName('AnalyserNode.maxDecibels') |
| 128 @DocsEditable() | 90 @DocsEditable() |
| 129 num get maxDecibels => _blink.BlinkAnalyserNode.instance.maxDecibels_Getter_(u
nwrap_jso(this)); | 91 num get maxDecibels => _blink.BlinkAnalyserNode.instance.maxDecibels_Getter_(t
his); |
| 130 | 92 |
| 131 @DomName('AnalyserNode.maxDecibels') | 93 @DomName('AnalyserNode.maxDecibels') |
| 132 @DocsEditable() | 94 @DocsEditable() |
| 133 set maxDecibels(num value) => _blink.BlinkAnalyserNode.instance.maxDecibels_Se
tter_(unwrap_jso(this), value); | 95 set maxDecibels(num value) => _blink.BlinkAnalyserNode.instance.maxDecibels_Se
tter_(this, value); |
| 134 | 96 |
| 135 @DomName('AnalyserNode.minDecibels') | 97 @DomName('AnalyserNode.minDecibels') |
| 136 @DocsEditable() | 98 @DocsEditable() |
| 137 num get minDecibels => _blink.BlinkAnalyserNode.instance.minDecibels_Getter_(u
nwrap_jso(this)); | 99 num get minDecibels => _blink.BlinkAnalyserNode.instance.minDecibels_Getter_(t
his); |
| 138 | 100 |
| 139 @DomName('AnalyserNode.minDecibels') | 101 @DomName('AnalyserNode.minDecibels') |
| 140 @DocsEditable() | 102 @DocsEditable() |
| 141 set minDecibels(num value) => _blink.BlinkAnalyserNode.instance.minDecibels_Se
tter_(unwrap_jso(this), value); | 103 set minDecibels(num value) => _blink.BlinkAnalyserNode.instance.minDecibels_Se
tter_(this, value); |
| 142 | 104 |
| 143 @DomName('AnalyserNode.smoothingTimeConstant') | 105 @DomName('AnalyserNode.smoothingTimeConstant') |
| 144 @DocsEditable() | 106 @DocsEditable() |
| 145 num get smoothingTimeConstant => _blink.BlinkAnalyserNode.instance.smoothingTi
meConstant_Getter_(unwrap_jso(this)); | 107 num get smoothingTimeConstant => _blink.BlinkAnalyserNode.instance.smoothingTi
meConstant_Getter_(this); |
| 146 | 108 |
| 147 @DomName('AnalyserNode.smoothingTimeConstant') | 109 @DomName('AnalyserNode.smoothingTimeConstant') |
| 148 @DocsEditable() | 110 @DocsEditable() |
| 149 set smoothingTimeConstant(num value) => _blink.BlinkAnalyserNode.instance.smoo
thingTimeConstant_Setter_(unwrap_jso(this), value); | 111 set smoothingTimeConstant(num value) => _blink.BlinkAnalyserNode.instance.smoo
thingTimeConstant_Setter_(this, value); |
| 150 | 112 |
| 151 @DomName('AnalyserNode.getByteFrequencyData') | 113 @DomName('AnalyserNode.getByteFrequencyData') |
| 152 @DocsEditable() | 114 @DocsEditable() |
| 153 void getByteFrequencyData(Uint8List array) => _blink.BlinkAnalyserNode.instanc
e.getByteFrequencyData_Callback_1_(unwrap_jso(this), unwrap_jso(array)); | 115 void getByteFrequencyData(Uint8List array) => _blink.BlinkAnalyserNode.instanc
e.getByteFrequencyData_Callback_1_(this, array); |
| 154 | 116 |
| 155 @DomName('AnalyserNode.getByteTimeDomainData') | 117 @DomName('AnalyserNode.getByteTimeDomainData') |
| 156 @DocsEditable() | 118 @DocsEditable() |
| 157 void getByteTimeDomainData(Uint8List array) => _blink.BlinkAnalyserNode.instan
ce.getByteTimeDomainData_Callback_1_(unwrap_jso(this), unwrap_jso(array)); | 119 void getByteTimeDomainData(Uint8List array) => _blink.BlinkAnalyserNode.instan
ce.getByteTimeDomainData_Callback_1_(this, array); |
| 158 | 120 |
| 159 @DomName('AnalyserNode.getFloatFrequencyData') | 121 @DomName('AnalyserNode.getFloatFrequencyData') |
| 160 @DocsEditable() | 122 @DocsEditable() |
| 161 void getFloatFrequencyData(Float32List array) => _blink.BlinkAnalyserNode.inst
ance.getFloatFrequencyData_Callback_1_(unwrap_jso(this), unwrap_jso(array)); | 123 void getFloatFrequencyData(Float32List array) => _blink.BlinkAnalyserNode.inst
ance.getFloatFrequencyData_Callback_1_(this, array); |
| 162 | 124 |
| 163 @DomName('AnalyserNode.getFloatTimeDomainData') | 125 @DomName('AnalyserNode.getFloatTimeDomainData') |
| 164 @DocsEditable() | 126 @DocsEditable() |
| 165 @Experimental() // untriaged | 127 @Experimental() // untriaged |
| 166 void getFloatTimeDomainData(Float32List array) => _blink.BlinkAnalyserNode.ins
tance.getFloatTimeDomainData_Callback_1_(unwrap_jso(this), unwrap_jso(array)); | 128 void getFloatTimeDomainData(Float32List array) => _blink.BlinkAnalyserNode.ins
tance.getFloatTimeDomainData_Callback_1_(this, array); |
| 167 | 129 |
| 168 } | 130 } |
| 169 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 131 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 170 // for details. All rights reserved. Use of this source code is governed by a | 132 // for details. All rights reserved. Use of this source code is governed by a |
| 171 // BSD-style license that can be found in the LICENSE file. | 133 // BSD-style license that can be found in the LICENSE file. |
| 172 | 134 |
| 173 // WARNING: Do not edit - generated code. | 135 // WARNING: Do not edit - generated code. |
| 174 | 136 |
| 175 | 137 |
| 176 @DocsEditable() | 138 @DocsEditable() |
| 177 @DomName('AudioBuffer') | 139 @DomName('AudioBuffer') |
| 178 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section | 140 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section |
| 179 @Experimental() | 141 @Experimental() |
| 180 class AudioBuffer extends DartHtmlDomObject { | 142 class AudioBuffer extends DartHtmlDomObject { |
| 181 // To suppress missing implicit constructor warnings. | 143 // To suppress missing implicit constructor warnings. |
| 182 factory AudioBuffer._() { throw new UnsupportedError("Not supported"); } | 144 factory AudioBuffer._() { throw new UnsupportedError("Not supported"); } |
| 183 | 145 |
| 146 |
| 184 @Deprecated("Internal Use Only") | 147 @Deprecated("Internal Use Only") |
| 185 static AudioBuffer internalCreateAudioBuffer() { | 148 external static Type get instanceRuntimeType; |
| 186 return new AudioBuffer._internalWrap(); | |
| 187 } | |
| 188 | |
| 189 factory AudioBuffer._internalWrap() { | |
| 190 return new AudioBuffer.internal_(); | |
| 191 } | |
| 192 | 149 |
| 193 @Deprecated("Internal Use Only") | 150 @Deprecated("Internal Use Only") |
| 194 AudioBuffer.internal_() { } | 151 AudioBuffer.internal_() { } |
| 195 | 152 |
| 196 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | |
| 197 int get hashCode => unwrap_jso(this).hashCode; | |
| 198 | |
| 199 @DomName('AudioBuffer.duration') | 153 @DomName('AudioBuffer.duration') |
| 200 @DocsEditable() | 154 @DocsEditable() |
| 201 num get duration => _blink.BlinkAudioBuffer.instance.duration_Getter_(unwrap_j
so(this)); | 155 num get duration => _blink.BlinkAudioBuffer.instance.duration_Getter_(this); |
| 202 | 156 |
| 203 @DomName('AudioBuffer.length') | 157 @DomName('AudioBuffer.length') |
| 204 @DocsEditable() | 158 @DocsEditable() |
| 205 int get length => _blink.BlinkAudioBuffer.instance.length_Getter_(unwrap_jso(t
his)); | 159 int get length => _blink.BlinkAudioBuffer.instance.length_Getter_(this); |
| 206 | 160 |
| 207 @DomName('AudioBuffer.numberOfChannels') | 161 @DomName('AudioBuffer.numberOfChannels') |
| 208 @DocsEditable() | 162 @DocsEditable() |
| 209 int get numberOfChannels => _blink.BlinkAudioBuffer.instance.numberOfChannels_
Getter_(unwrap_jso(this)); | 163 int get numberOfChannels => _blink.BlinkAudioBuffer.instance.numberOfChannels_
Getter_(this); |
| 210 | 164 |
| 211 @DomName('AudioBuffer.sampleRate') | 165 @DomName('AudioBuffer.sampleRate') |
| 212 @DocsEditable() | 166 @DocsEditable() |
| 213 num get sampleRate => _blink.BlinkAudioBuffer.instance.sampleRate_Getter_(unwr
ap_jso(this)); | 167 num get sampleRate => _blink.BlinkAudioBuffer.instance.sampleRate_Getter_(this
); |
| 214 | 168 |
| 215 void copyFromChannel(Float32List destination, int channelNumber, [int startInC
hannel]) { | 169 void copyFromChannel(Float32List destination, int channelNumber, [int startInC
hannel]) { |
| 216 if (startInChannel != null) { | 170 if (startInChannel != null) { |
| 217 _blink.BlinkAudioBuffer.instance.copyFromChannel_Callback_3_(unwrap_jso(th
is), unwrap_jso(destination), channelNumber, startInChannel); | 171 _blink.BlinkAudioBuffer.instance.copyFromChannel_Callback_3_(this, destina
tion, channelNumber, startInChannel); |
| 218 return; | 172 return; |
| 219 } | 173 } |
| 220 _blink.BlinkAudioBuffer.instance.copyFromChannel_Callback_2_(unwrap_jso(this
), unwrap_jso(destination), channelNumber); | 174 _blink.BlinkAudioBuffer.instance.copyFromChannel_Callback_2_(this, destinati
on, channelNumber); |
| 221 return; | 175 return; |
| 222 } | 176 } |
| 223 | 177 |
| 224 void copyToChannel(Float32List source, int channelNumber, [int startInChannel]
) { | 178 void copyToChannel(Float32List source, int channelNumber, [int startInChannel]
) { |
| 225 if (startInChannel != null) { | 179 if (startInChannel != null) { |
| 226 _blink.BlinkAudioBuffer.instance.copyToChannel_Callback_3_(unwrap_jso(this
), unwrap_jso(source), channelNumber, startInChannel); | 180 _blink.BlinkAudioBuffer.instance.copyToChannel_Callback_3_(this, source, c
hannelNumber, startInChannel); |
| 227 return; | 181 return; |
| 228 } | 182 } |
| 229 _blink.BlinkAudioBuffer.instance.copyToChannel_Callback_2_(unwrap_jso(this),
unwrap_jso(source), channelNumber); | 183 _blink.BlinkAudioBuffer.instance.copyToChannel_Callback_2_(this, source, cha
nnelNumber); |
| 230 return; | 184 return; |
| 231 } | 185 } |
| 232 | 186 |
| 233 @DomName('AudioBuffer.getChannelData') | 187 @DomName('AudioBuffer.getChannelData') |
| 234 @DocsEditable() | 188 @DocsEditable() |
| 235 Float32List getChannelData(int channelIndex) => wrap_jso(_blink.BlinkAudioBuff
er.instance.getChannelData_Callback_1_(unwrap_jso(this), channelIndex)); | 189 Float32List getChannelData(int channelIndex) => _blink.BlinkAudioBuffer.instan
ce.getChannelData_Callback_1_(this, channelIndex); |
| 236 | 190 |
| 237 } | 191 } |
| 238 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 192 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 239 // for details. All rights reserved. Use of this source code is governed by a | 193 // for details. All rights reserved. Use of this source code is governed by a |
| 240 // BSD-style license that can be found in the LICENSE file. | 194 // BSD-style license that can be found in the LICENSE file. |
| 241 | 195 |
| 242 // WARNING: Do not edit - generated code. | 196 // WARNING: Do not edit - generated code. |
| 243 | 197 |
| 244 | 198 |
| 245 @DomName('AudioBufferCallback') | 199 @DomName('AudioBufferCallback') |
| (...skipping 23 matching lines...) Expand all Loading... |
| 269 * | 223 * |
| 270 * See [EventStreamProvider] for usage information. | 224 * See [EventStreamProvider] for usage information. |
| 271 */ | 225 */ |
| 272 @DomName('AudioBufferSourceNode.endedEvent') | 226 @DomName('AudioBufferSourceNode.endedEvent') |
| 273 @DocsEditable() | 227 @DocsEditable() |
| 274 @Experimental() // untriaged | 228 @Experimental() // untriaged |
| 275 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider
<Event>('ended'); | 229 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider
<Event>('ended'); |
| 276 | 230 |
| 277 | 231 |
| 278 @Deprecated("Internal Use Only") | 232 @Deprecated("Internal Use Only") |
| 279 static AudioBufferSourceNode internalCreateAudioBufferSourceNode() { | 233 external static Type get instanceRuntimeType; |
| 280 return new AudioBufferSourceNode._internalWrap(); | |
| 281 } | |
| 282 | |
| 283 external factory AudioBufferSourceNode._internalWrap(); | |
| 284 | 234 |
| 285 @Deprecated("Internal Use Only") | 235 @Deprecated("Internal Use Only") |
| 286 AudioBufferSourceNode.internal_() : super.internal_(); | 236 AudioBufferSourceNode.internal_() : super.internal_(); |
| 287 | 237 |
| 288 | 238 |
| 289 @DomName('AudioBufferSourceNode.buffer') | 239 @DomName('AudioBufferSourceNode.buffer') |
| 290 @DocsEditable() | 240 @DocsEditable() |
| 291 AudioBuffer get buffer => wrap_jso(_blink.BlinkAudioBufferSourceNode.instance.
buffer_Getter_(unwrap_jso(this))); | 241 AudioBuffer get buffer => _blink.BlinkAudioBufferSourceNode.instance.buffer_Ge
tter_(this); |
| 292 | 242 |
| 293 @DomName('AudioBufferSourceNode.buffer') | 243 @DomName('AudioBufferSourceNode.buffer') |
| 294 @DocsEditable() | 244 @DocsEditable() |
| 295 set buffer(AudioBuffer value) => _blink.BlinkAudioBufferSourceNode.instance.bu
ffer_Setter_(unwrap_jso(this), unwrap_jso(value)); | 245 set buffer(AudioBuffer value) => _blink.BlinkAudioBufferSourceNode.instance.bu
ffer_Setter_(this, value); |
| 296 | 246 |
| 297 @DomName('AudioBufferSourceNode.detune') | 247 @DomName('AudioBufferSourceNode.detune') |
| 298 @DocsEditable() | 248 @DocsEditable() |
| 299 @Experimental() // untriaged | 249 @Experimental() // untriaged |
| 300 AudioParam get detune => wrap_jso(_blink.BlinkAudioBufferSourceNode.instance.d
etune_Getter_(unwrap_jso(this))); | 250 AudioParam get detune => _blink.BlinkAudioBufferSourceNode.instance.detune_Get
ter_(this); |
| 301 | 251 |
| 302 @DomName('AudioBufferSourceNode.loop') | 252 @DomName('AudioBufferSourceNode.loop') |
| 303 @DocsEditable() | 253 @DocsEditable() |
| 304 bool get loop => _blink.BlinkAudioBufferSourceNode.instance.loop_Getter_(unwra
p_jso(this)); | 254 bool get loop => _blink.BlinkAudioBufferSourceNode.instance.loop_Getter_(this)
; |
| 305 | 255 |
| 306 @DomName('AudioBufferSourceNode.loop') | 256 @DomName('AudioBufferSourceNode.loop') |
| 307 @DocsEditable() | 257 @DocsEditable() |
| 308 set loop(bool value) => _blink.BlinkAudioBufferSourceNode.instance.loop_Setter
_(unwrap_jso(this), value); | 258 set loop(bool value) => _blink.BlinkAudioBufferSourceNode.instance.loop_Setter
_(this, value); |
| 309 | 259 |
| 310 @DomName('AudioBufferSourceNode.loopEnd') | 260 @DomName('AudioBufferSourceNode.loopEnd') |
| 311 @DocsEditable() | 261 @DocsEditable() |
| 312 num get loopEnd => _blink.BlinkAudioBufferSourceNode.instance.loopEnd_Getter_(
unwrap_jso(this)); | 262 num get loopEnd => _blink.BlinkAudioBufferSourceNode.instance.loopEnd_Getter_(
this); |
| 313 | 263 |
| 314 @DomName('AudioBufferSourceNode.loopEnd') | 264 @DomName('AudioBufferSourceNode.loopEnd') |
| 315 @DocsEditable() | 265 @DocsEditable() |
| 316 set loopEnd(num value) => _blink.BlinkAudioBufferSourceNode.instance.loopEnd_S
etter_(unwrap_jso(this), value); | 266 set loopEnd(num value) => _blink.BlinkAudioBufferSourceNode.instance.loopEnd_S
etter_(this, value); |
| 317 | 267 |
| 318 @DomName('AudioBufferSourceNode.loopStart') | 268 @DomName('AudioBufferSourceNode.loopStart') |
| 319 @DocsEditable() | 269 @DocsEditable() |
| 320 num get loopStart => _blink.BlinkAudioBufferSourceNode.instance.loopStart_Gett
er_(unwrap_jso(this)); | 270 num get loopStart => _blink.BlinkAudioBufferSourceNode.instance.loopStart_Gett
er_(this); |
| 321 | 271 |
| 322 @DomName('AudioBufferSourceNode.loopStart') | 272 @DomName('AudioBufferSourceNode.loopStart') |
| 323 @DocsEditable() | 273 @DocsEditable() |
| 324 set loopStart(num value) => _blink.BlinkAudioBufferSourceNode.instance.loopSta
rt_Setter_(unwrap_jso(this), value); | 274 set loopStart(num value) => _blink.BlinkAudioBufferSourceNode.instance.loopSta
rt_Setter_(this, value); |
| 325 | 275 |
| 326 @DomName('AudioBufferSourceNode.playbackRate') | 276 @DomName('AudioBufferSourceNode.playbackRate') |
| 327 @DocsEditable() | 277 @DocsEditable() |
| 328 AudioParam get playbackRate => wrap_jso(_blink.BlinkAudioBufferSourceNode.inst
ance.playbackRate_Getter_(unwrap_jso(this))); | 278 AudioParam get playbackRate => _blink.BlinkAudioBufferSourceNode.instance.play
backRate_Getter_(this); |
| 329 | 279 |
| 330 void start([num when, num grainOffset, num grainDuration]) { | 280 void start([num when, num grainOffset, num grainDuration]) { |
| 331 if (grainDuration != null) { | 281 if (grainDuration != null) { |
| 332 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_3_(unwrap_jso(th
is), when, grainOffset, grainDuration); | 282 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_3_(this, when, g
rainOffset, grainDuration); |
| 333 return; | 283 return; |
| 334 } | 284 } |
| 335 if (grainOffset != null) { | 285 if (grainOffset != null) { |
| 336 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_2_(unwrap_jso(th
is), when, grainOffset); | 286 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_2_(this, when, g
rainOffset); |
| 337 return; | 287 return; |
| 338 } | 288 } |
| 339 if (when != null) { | 289 if (when != null) { |
| 340 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_1_(unwrap_jso(th
is), when); | 290 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_1_(this, when); |
| 341 return; | 291 return; |
| 342 } | 292 } |
| 343 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_0_(unwrap_jso(this
)); | 293 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_0_(this); |
| 344 return; | 294 return; |
| 345 } | 295 } |
| 346 | 296 |
| 347 void stop([num when]) { | 297 void stop([num when]) { |
| 348 if (when != null) { | 298 if (when != null) { |
| 349 _blink.BlinkAudioBufferSourceNode.instance.stop_Callback_1_(unwrap_jso(thi
s), when); | 299 _blink.BlinkAudioBufferSourceNode.instance.stop_Callback_1_(this, when); |
| 350 return; | 300 return; |
| 351 } | 301 } |
| 352 _blink.BlinkAudioBufferSourceNode.instance.stop_Callback_0_(unwrap_jso(this)
); | 302 _blink.BlinkAudioBufferSourceNode.instance.stop_Callback_0_(this); |
| 353 return; | 303 return; |
| 354 } | 304 } |
| 355 | 305 |
| 356 /// Stream of `ended` events handled by this [AudioBufferSourceNode]. | 306 /// Stream of `ended` events handled by this [AudioBufferSourceNode]. |
| 357 @DomName('AudioBufferSourceNode.onended') | 307 @DomName('AudioBufferSourceNode.onended') |
| 358 @DocsEditable() | 308 @DocsEditable() |
| 359 @Experimental() // untriaged | 309 @Experimental() // untriaged |
| 360 Stream<Event> get onEnded => endedEvent.forTarget(this); | 310 Stream<Event> get onEnded => endedEvent.forTarget(this); |
| 361 | 311 |
| 362 } | 312 } |
| 363 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 313 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 364 // for details. All rights reserved. Use of this source code is governed by a | 314 // for details. All rights reserved. Use of this source code is governed by a |
| 365 // BSD-style license that can be found in the LICENSE file. | 315 // BSD-style license that can be found in the LICENSE file. |
| 366 | 316 |
| 367 | 317 |
| 368 @DomName('AudioContext') | 318 @DomName('AudioContext') |
| 369 @SupportedBrowser(SupportedBrowser.CHROME) | 319 @SupportedBrowser(SupportedBrowser.CHROME) |
| 370 @SupportedBrowser(SupportedBrowser.FIREFOX) | 320 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 371 @Experimental() | 321 @Experimental() |
| 372 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo
ntext-section | 322 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo
ntext-section |
| 373 class AudioContext extends EventTarget { | 323 class AudioContext extends EventTarget { |
| 374 // To suppress missing implicit constructor warnings. | 324 // To suppress missing implicit constructor warnings. |
| 375 factory AudioContext._() { throw new UnsupportedError("Not supported"); } | 325 factory AudioContext._() { throw new UnsupportedError("Not supported"); } |
| 376 | 326 |
| 377 @DomName('AudioContext.AudioContext') | 327 @DomName('AudioContext.AudioContext') |
| 378 @DocsEditable() | 328 @DocsEditable() |
| 379 factory AudioContext() { | 329 factory AudioContext() { |
| 380 return wrap_jso(_blink.BlinkAudioContext.instance.constructorCallback_0_()); | 330 return _blink.BlinkAudioContext.instance.constructorCallback_0_(); |
| 381 } | 331 } |
| 382 | 332 |
| 383 | 333 |
| 384 @Deprecated("Internal Use Only") | 334 @Deprecated("Internal Use Only") |
| 385 static AudioContext internalCreateAudioContext() { | 335 external static Type get instanceRuntimeType; |
| 386 return new AudioContext._internalWrap(); | |
| 387 } | |
| 388 | |
| 389 external factory AudioContext._internalWrap(); | |
| 390 | 336 |
| 391 @Deprecated("Internal Use Only") | 337 @Deprecated("Internal Use Only") |
| 392 AudioContext.internal_() : super.internal_(); | 338 AudioContext.internal_() : super.internal_(); |
| 393 | 339 |
| 394 | 340 |
| 395 /// Checks if this type is supported on the current platform. | 341 /// Checks if this type is supported on the current platform. |
| 396 static bool get supported => true; | 342 static bool get supported => true; |
| 397 | 343 |
| 398 @DomName('AudioContext.currentTime') | 344 @DomName('AudioContext.currentTime') |
| 399 @DocsEditable() | 345 @DocsEditable() |
| 400 num get currentTime => _blink.BlinkAudioContext.instance.currentTime_Getter_(u
nwrap_jso(this)); | 346 num get currentTime => _blink.BlinkAudioContext.instance.currentTime_Getter_(t
his); |
| 401 | 347 |
| 402 @DomName('AudioContext.destination') | 348 @DomName('AudioContext.destination') |
| 403 @DocsEditable() | 349 @DocsEditable() |
| 404 AudioDestinationNode get destination => wrap_jso(_blink.BlinkAudioContext.inst
ance.destination_Getter_(unwrap_jso(this))); | 350 AudioDestinationNode get destination => _blink.BlinkAudioContext.instance.dest
ination_Getter_(this); |
| 405 | 351 |
| 406 @DomName('AudioContext.listener') | 352 @DomName('AudioContext.listener') |
| 407 @DocsEditable() | 353 @DocsEditable() |
| 408 AudioListener get listener => wrap_jso(_blink.BlinkAudioContext.instance.liste
ner_Getter_(unwrap_jso(this))); | 354 AudioListener get listener => _blink.BlinkAudioContext.instance.listener_Gette
r_(this); |
| 409 | 355 |
| 410 @DomName('AudioContext.sampleRate') | 356 @DomName('AudioContext.sampleRate') |
| 411 @DocsEditable() | 357 @DocsEditable() |
| 412 num get sampleRate => _blink.BlinkAudioContext.instance.sampleRate_Getter_(unw
rap_jso(this)); | 358 num get sampleRate => _blink.BlinkAudioContext.instance.sampleRate_Getter_(thi
s); |
| 413 | 359 |
| 414 @DomName('AudioContext.state') | 360 @DomName('AudioContext.state') |
| 415 @DocsEditable() | 361 @DocsEditable() |
| 416 @Experimental() // untriaged | 362 @Experimental() // untriaged |
| 417 String get state => _blink.BlinkAudioContext.instance.state_Getter_(unwrap_jso
(this)); | 363 String get state => _blink.BlinkAudioContext.instance.state_Getter_(this); |
| 418 | 364 |
| 419 @DomName('AudioContext.close') | 365 @DomName('AudioContext.close') |
| 420 @DocsEditable() | 366 @DocsEditable() |
| 421 @Experimental() // untriaged | 367 @Experimental() // untriaged |
| 422 Future close() => wrap_jso(_blink.BlinkAudioContext.instance.close_Callback_0_
(unwrap_jso(this))); | 368 Future close() => convertNativePromiseToDartFuture(_blink.BlinkAudioContext.in
stance.close_Callback_0_(this)); |
| 423 | 369 |
| 424 @DomName('AudioContext.createAnalyser') | 370 @DomName('AudioContext.createAnalyser') |
| 425 @DocsEditable() | 371 @DocsEditable() |
| 426 AnalyserNode createAnalyser() => wrap_jso(_blink.BlinkAudioContext.instance.cr
eateAnalyser_Callback_0_(unwrap_jso(this))); | 372 AnalyserNode createAnalyser() => _blink.BlinkAudioContext.instance.createAnaly
ser_Callback_0_(this); |
| 427 | 373 |
| 428 @DomName('AudioContext.createBiquadFilter') | 374 @DomName('AudioContext.createBiquadFilter') |
| 429 @DocsEditable() | 375 @DocsEditable() |
| 430 BiquadFilterNode createBiquadFilter() => wrap_jso(_blink.BlinkAudioContext.ins
tance.createBiquadFilter_Callback_0_(unwrap_jso(this))); | 376 BiquadFilterNode createBiquadFilter() => _blink.BlinkAudioContext.instance.cre
ateBiquadFilter_Callback_0_(this); |
| 431 | 377 |
| 432 @DomName('AudioContext.createBuffer') | 378 @DomName('AudioContext.createBuffer') |
| 433 @DocsEditable() | 379 @DocsEditable() |
| 434 AudioBuffer createBuffer(int numberOfChannels, int numberOfFrames, num sampleR
ate) => wrap_jso(_blink.BlinkAudioContext.instance.createBuffer_Callback_3_(unwr
ap_jso(this), numberOfChannels, numberOfFrames, sampleRate)); | 380 AudioBuffer createBuffer(int numberOfChannels, int numberOfFrames, num sampleR
ate) => _blink.BlinkAudioContext.instance.createBuffer_Callback_3_(this, numberO
fChannels, numberOfFrames, sampleRate); |
| 435 | 381 |
| 436 @DomName('AudioContext.createBufferSource') | 382 @DomName('AudioContext.createBufferSource') |
| 437 @DocsEditable() | 383 @DocsEditable() |
| 438 AudioBufferSourceNode createBufferSource() => wrap_jso(_blink.BlinkAudioContex
t.instance.createBufferSource_Callback_0_(unwrap_jso(this))); | 384 AudioBufferSourceNode createBufferSource() => _blink.BlinkAudioContext.instanc
e.createBufferSource_Callback_0_(this); |
| 439 | 385 |
| 440 ChannelMergerNode createChannelMerger([int numberOfInputs]) { | 386 ChannelMergerNode createChannelMerger([int numberOfInputs]) { |
| 441 if (numberOfInputs != null) { | 387 if (numberOfInputs != null) { |
| 442 return wrap_jso(_blink.BlinkAudioContext.instance.createChannelMerger_Call
back_1_(unwrap_jso(this), numberOfInputs)); | 388 return _blink.BlinkAudioContext.instance.createChannelMerger_Callback_1_(t
his, numberOfInputs); |
| 443 } | 389 } |
| 444 return wrap_jso(_blink.BlinkAudioContext.instance.createChannelMerger_Callba
ck_0_(unwrap_jso(this))); | 390 return _blink.BlinkAudioContext.instance.createChannelMerger_Callback_0_(thi
s); |
| 445 } | 391 } |
| 446 | 392 |
| 447 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) { | 393 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) { |
| 448 if (numberOfOutputs != null) { | 394 if (numberOfOutputs != null) { |
| 449 return wrap_jso(_blink.BlinkAudioContext.instance.createChannelSplitter_Ca
llback_1_(unwrap_jso(this), numberOfOutputs)); | 395 return _blink.BlinkAudioContext.instance.createChannelSplitter_Callback_1_
(this, numberOfOutputs); |
| 450 } | 396 } |
| 451 return wrap_jso(_blink.BlinkAudioContext.instance.createChannelSplitter_Call
back_0_(unwrap_jso(this))); | 397 return _blink.BlinkAudioContext.instance.createChannelSplitter_Callback_0_(t
his); |
| 452 } | 398 } |
| 453 | 399 |
| 454 @DomName('AudioContext.createConvolver') | 400 @DomName('AudioContext.createConvolver') |
| 455 @DocsEditable() | 401 @DocsEditable() |
| 456 ConvolverNode createConvolver() => wrap_jso(_blink.BlinkAudioContext.instance.
createConvolver_Callback_0_(unwrap_jso(this))); | 402 ConvolverNode createConvolver() => _blink.BlinkAudioContext.instance.createCon
volver_Callback_0_(this); |
| 457 | 403 |
| 458 DelayNode createDelay([num maxDelayTime]) { | 404 DelayNode createDelay([num maxDelayTime]) { |
| 459 if (maxDelayTime != null) { | 405 if (maxDelayTime != null) { |
| 460 return wrap_jso(_blink.BlinkAudioContext.instance.createDelay_Callback_1_(
unwrap_jso(this), maxDelayTime)); | 406 return _blink.BlinkAudioContext.instance.createDelay_Callback_1_(this, max
DelayTime); |
| 461 } | 407 } |
| 462 return wrap_jso(_blink.BlinkAudioContext.instance.createDelay_Callback_0_(un
wrap_jso(this))); | 408 return _blink.BlinkAudioContext.instance.createDelay_Callback_0_(this); |
| 463 } | 409 } |
| 464 | 410 |
| 465 @DomName('AudioContext.createDynamicsCompressor') | 411 @DomName('AudioContext.createDynamicsCompressor') |
| 466 @DocsEditable() | 412 @DocsEditable() |
| 467 DynamicsCompressorNode createDynamicsCompressor() => wrap_jso(_blink.BlinkAudi
oContext.instance.createDynamicsCompressor_Callback_0_(unwrap_jso(this))); | 413 DynamicsCompressorNode createDynamicsCompressor() => _blink.BlinkAudioContext.
instance.createDynamicsCompressor_Callback_0_(this); |
| 468 | 414 |
| 469 @DomName('AudioContext.createGain') | 415 @DomName('AudioContext.createGain') |
| 470 @DocsEditable() | 416 @DocsEditable() |
| 471 GainNode createGain() => wrap_jso(_blink.BlinkAudioContext.instance.createGain
_Callback_0_(unwrap_jso(this))); | 417 GainNode createGain() => _blink.BlinkAudioContext.instance.createGain_Callback
_0_(this); |
| 472 | 418 |
| 473 @DomName('AudioContext.createMediaElementSource') | 419 @DomName('AudioContext.createMediaElementSource') |
| 474 @DocsEditable() | 420 @DocsEditable() |
| 475 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) => wrap_jso(_blink.BlinkAudioContext.instance.createMediaElementSource_Callbac
k_1_(unwrap_jso(this), unwrap_jso(mediaElement))); | 421 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) => _blink.BlinkAudioContext.instance.createMediaElementSource_Callback_1_(this
, mediaElement); |
| 476 | 422 |
| 477 @DomName('AudioContext.createMediaStreamDestination') | 423 @DomName('AudioContext.createMediaStreamDestination') |
| 478 @DocsEditable() | 424 @DocsEditable() |
| 479 MediaStreamAudioDestinationNode createMediaStreamDestination() => wrap_jso(_bl
ink.BlinkAudioContext.instance.createMediaStreamDestination_Callback_0_(unwrap_j
so(this))); | 425 MediaStreamAudioDestinationNode createMediaStreamDestination() => _blink.Blink
AudioContext.instance.createMediaStreamDestination_Callback_0_(this); |
| 480 | 426 |
| 481 @DomName('AudioContext.createMediaStreamSource') | 427 @DomName('AudioContext.createMediaStreamSource') |
| 482 @DocsEditable() | 428 @DocsEditable() |
| 483 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) =>
wrap_jso(_blink.BlinkAudioContext.instance.createMediaStreamSource_Callback_1_(
unwrap_jso(this), unwrap_jso(mediaStream))); | 429 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) =>
_blink.BlinkAudioContext.instance.createMediaStreamSource_Callback_1_(this, med
iaStream); |
| 484 | 430 |
| 485 @DomName('AudioContext.createOscillator') | 431 @DomName('AudioContext.createOscillator') |
| 486 @DocsEditable() | 432 @DocsEditable() |
| 487 OscillatorNode createOscillator() => wrap_jso(_blink.BlinkAudioContext.instanc
e.createOscillator_Callback_0_(unwrap_jso(this))); | 433 OscillatorNode createOscillator() => _blink.BlinkAudioContext.instance.createO
scillator_Callback_0_(this); |
| 488 | 434 |
| 489 @DomName('AudioContext.createPanner') | 435 @DomName('AudioContext.createPanner') |
| 490 @DocsEditable() | 436 @DocsEditable() |
| 491 PannerNode createPanner() => wrap_jso(_blink.BlinkAudioContext.instance.create
Panner_Callback_0_(unwrap_jso(this))); | 437 PannerNode createPanner() => _blink.BlinkAudioContext.instance.createPanner_Ca
llback_0_(this); |
| 492 | 438 |
| 493 @DomName('AudioContext.createPeriodicWave') | 439 @DomName('AudioContext.createPeriodicWave') |
| 494 @DocsEditable() | 440 @DocsEditable() |
| 495 @Experimental() // untriaged | 441 @Experimental() // untriaged |
| 496 PeriodicWave createPeriodicWave(Float32List real, Float32List imag) => wrap_js
o(_blink.BlinkAudioContext.instance.createPeriodicWave_Callback_2_(unwrap_jso(th
is), unwrap_jso(real), unwrap_jso(imag))); | 442 PeriodicWave createPeriodicWave(Float32List real, Float32List imag) => _blink.
BlinkAudioContext.instance.createPeriodicWave_Callback_2_(this, real, imag); |
| 497 | 443 |
| 498 ScriptProcessorNode createScriptProcessor([int bufferSize, int numberOfInputCh
annels, int numberOfOutputChannels]) { | 444 ScriptProcessorNode createScriptProcessor([int bufferSize, int numberOfInputCh
annels, int numberOfOutputChannels]) { |
| 499 if (numberOfOutputChannels != null) { | 445 if (numberOfOutputChannels != null) { |
| 500 return wrap_jso(_blink.BlinkAudioContext.instance.createScriptProcessor_Ca
llback_3_(unwrap_jso(this), bufferSize, numberOfInputChannels, numberOfOutputCha
nnels)); | 446 return _blink.BlinkAudioContext.instance.createScriptProcessor_Callback_3_
(this, bufferSize, numberOfInputChannels, numberOfOutputChannels); |
| 501 } | 447 } |
| 502 if (numberOfInputChannels != null) { | 448 if (numberOfInputChannels != null) { |
| 503 return wrap_jso(_blink.BlinkAudioContext.instance.createScriptProcessor_Ca
llback_2_(unwrap_jso(this), bufferSize, numberOfInputChannels)); | 449 return _blink.BlinkAudioContext.instance.createScriptProcessor_Callback_2_
(this, bufferSize, numberOfInputChannels); |
| 504 } | 450 } |
| 505 if (bufferSize != null) { | 451 if (bufferSize != null) { |
| 506 return wrap_jso(_blink.BlinkAudioContext.instance.createScriptProcessor_Ca
llback_1_(unwrap_jso(this), bufferSize)); | 452 return _blink.BlinkAudioContext.instance.createScriptProcessor_Callback_1_
(this, bufferSize); |
| 507 } | 453 } |
| 508 return wrap_jso(_blink.BlinkAudioContext.instance.createScriptProcessor_Call
back_0_(unwrap_jso(this))); | 454 return _blink.BlinkAudioContext.instance.createScriptProcessor_Callback_0_(t
his); |
| 509 } | 455 } |
| 510 | 456 |
| 511 @DomName('AudioContext.createStereoPanner') | 457 @DomName('AudioContext.createStereoPanner') |
| 512 @DocsEditable() | 458 @DocsEditable() |
| 513 @Experimental() // untriaged | 459 @Experimental() // untriaged |
| 514 StereoPannerNode createStereoPanner() => wrap_jso(_blink.BlinkAudioContext.ins
tance.createStereoPanner_Callback_0_(unwrap_jso(this))); | 460 StereoPannerNode createStereoPanner() => _blink.BlinkAudioContext.instance.cre
ateStereoPanner_Callback_0_(this); |
| 515 | 461 |
| 516 @DomName('AudioContext.createWaveShaper') | 462 @DomName('AudioContext.createWaveShaper') |
| 517 @DocsEditable() | 463 @DocsEditable() |
| 518 WaveShaperNode createWaveShaper() => wrap_jso(_blink.BlinkAudioContext.instanc
e.createWaveShaper_Callback_0_(unwrap_jso(this))); | 464 WaveShaperNode createWaveShaper() => _blink.BlinkAudioContext.instance.createW
aveShaper_Callback_0_(this); |
| 519 | 465 |
| 520 void _decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) { | 466 void _decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) { |
| 521 if (errorCallback != null) { | 467 if (errorCallback != null) { |
| 522 _blink.BlinkAudioContext.instance.decodeAudioData_Callback_3_(unwrap_jso(t
his), unwrap_jso(audioData), unwrap_jso((audioBuffer) => successCallback(wrap_js
o(audioBuffer))), unwrap_jso((audioBuffer) => errorCallback(wrap_jso(audioBuffer
)))); | 468 _blink.BlinkAudioContext.instance.decodeAudioData_Callback_3_(this, audioD
ata, successCallback, errorCallback); |
| 523 return; | 469 return; |
| 524 } | 470 } |
| 525 _blink.BlinkAudioContext.instance.decodeAudioData_Callback_2_(unwrap_jso(thi
s), unwrap_jso(audioData), unwrap_jso((audioBuffer) => successCallback(wrap_jso(
audioBuffer)))); | 471 _blink.BlinkAudioContext.instance.decodeAudioData_Callback_2_(this, audioDat
a, successCallback); |
| 526 return; | 472 return; |
| 527 } | 473 } |
| 528 | 474 |
| 529 @DomName('AudioContext.resume') | 475 @DomName('AudioContext.resume') |
| 530 @DocsEditable() | 476 @DocsEditable() |
| 531 @Experimental() // untriaged | 477 @Experimental() // untriaged |
| 532 Future resume() => wrap_jso(_blink.BlinkAudioContext.instance.resume_Callback_
0_(unwrap_jso(this))); | 478 Future resume() => convertNativePromiseToDartFuture(_blink.BlinkAudioContext.i
nstance.resume_Callback_0_(this)); |
| 533 | 479 |
| 534 @DomName('AudioContext.suspend') | 480 @DomName('AudioContext.suspend') |
| 535 @DocsEditable() | 481 @DocsEditable() |
| 536 @Experimental() // untriaged | 482 @Experimental() // untriaged |
| 537 Future suspend() => wrap_jso(_blink.BlinkAudioContext.instance.suspend_Callbac
k_0_(unwrap_jso(this))); | 483 Future suspend() => convertNativePromiseToDartFuture(_blink.BlinkAudioContext.
instance.suspend_Callback_0_(this)); |
| 538 | 484 |
| 539 @DomName('AudioContext.decodeAudioData') | 485 @DomName('AudioContext.decodeAudioData') |
| 540 Future<AudioBuffer> decodeAudioData(ByteBuffer audioData) { | 486 Future<AudioBuffer> decodeAudioData(ByteBuffer audioData) { |
| 541 var completer = new Completer<AudioBuffer>(); | 487 var completer = new Completer<AudioBuffer>(); |
| 542 _decodeAudioData(audioData, | 488 _decodeAudioData(audioData, |
| 543 (value) { completer.complete(value); }, | 489 (value) { completer.complete(value); }, |
| 544 (error) { | 490 (error) { |
| 545 if (error == null) { | 491 if (error == null) { |
| 546 completer.completeError(''); | 492 completer.completeError(''); |
| 547 } else { | 493 } else { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 561 @DocsEditable() | 507 @DocsEditable() |
| 562 @DomName('AudioDestinationNode') | 508 @DomName('AudioDestinationNode') |
| 563 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe
stinationNode-section | 509 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe
stinationNode-section |
| 564 @Experimental() | 510 @Experimental() |
| 565 class AudioDestinationNode extends AudioNode { | 511 class AudioDestinationNode extends AudioNode { |
| 566 // To suppress missing implicit constructor warnings. | 512 // To suppress missing implicit constructor warnings. |
| 567 factory AudioDestinationNode._() { throw new UnsupportedError("Not supported")
; } | 513 factory AudioDestinationNode._() { throw new UnsupportedError("Not supported")
; } |
| 568 | 514 |
| 569 | 515 |
| 570 @Deprecated("Internal Use Only") | 516 @Deprecated("Internal Use Only") |
| 571 static AudioDestinationNode internalCreateAudioDestinationNode() { | 517 external static Type get instanceRuntimeType; |
| 572 return new AudioDestinationNode._internalWrap(); | |
| 573 } | |
| 574 | |
| 575 external factory AudioDestinationNode._internalWrap(); | |
| 576 | 518 |
| 577 @Deprecated("Internal Use Only") | 519 @Deprecated("Internal Use Only") |
| 578 AudioDestinationNode.internal_() : super.internal_(); | 520 AudioDestinationNode.internal_() : super.internal_(); |
| 579 | 521 |
| 580 | 522 |
| 581 @DomName('AudioDestinationNode.maxChannelCount') | 523 @DomName('AudioDestinationNode.maxChannelCount') |
| 582 @DocsEditable() | 524 @DocsEditable() |
| 583 int get maxChannelCount => _blink.BlinkAudioDestinationNode.instance.maxChanne
lCount_Getter_(unwrap_jso(this)); | 525 int get maxChannelCount => _blink.BlinkAudioDestinationNode.instance.maxChanne
lCount_Getter_(this); |
| 584 | 526 |
| 585 } | 527 } |
| 586 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 587 // for details. All rights reserved. Use of this source code is governed by a | 529 // for details. All rights reserved. Use of this source code is governed by a |
| 588 // BSD-style license that can be found in the LICENSE file. | 530 // BSD-style license that can be found in the LICENSE file. |
| 589 | 531 |
| 590 // WARNING: Do not edit - generated code. | 532 // WARNING: Do not edit - generated code. |
| 591 | 533 |
| 592 | 534 |
| 593 @DocsEditable() | 535 @DocsEditable() |
| 594 @DomName('AudioListener') | 536 @DomName('AudioListener') |
| 595 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi
stener-section | 537 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi
stener-section |
| 596 @Experimental() | 538 @Experimental() |
| 597 class AudioListener extends DartHtmlDomObject { | 539 class AudioListener extends DartHtmlDomObject { |
| 598 // To suppress missing implicit constructor warnings. | 540 // To suppress missing implicit constructor warnings. |
| 599 factory AudioListener._() { throw new UnsupportedError("Not supported"); } | 541 factory AudioListener._() { throw new UnsupportedError("Not supported"); } |
| 600 | 542 |
| 543 |
| 601 @Deprecated("Internal Use Only") | 544 @Deprecated("Internal Use Only") |
| 602 static AudioListener internalCreateAudioListener() { | 545 external static Type get instanceRuntimeType; |
| 603 return new AudioListener._internalWrap(); | |
| 604 } | |
| 605 | |
| 606 factory AudioListener._internalWrap() { | |
| 607 return new AudioListener.internal_(); | |
| 608 } | |
| 609 | 546 |
| 610 @Deprecated("Internal Use Only") | 547 @Deprecated("Internal Use Only") |
| 611 AudioListener.internal_() { } | 548 AudioListener.internal_() { } |
| 612 | 549 |
| 613 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | |
| 614 int get hashCode => unwrap_jso(this).hashCode; | |
| 615 | |
| 616 @DomName('AudioListener.dopplerFactor') | 550 @DomName('AudioListener.dopplerFactor') |
| 617 @DocsEditable() | 551 @DocsEditable() |
| 618 num get dopplerFactor => _blink.BlinkAudioListener.instance.dopplerFactor_Gett
er_(unwrap_jso(this)); | 552 num get dopplerFactor => _blink.BlinkAudioListener.instance.dopplerFactor_Gett
er_(this); |
| 619 | 553 |
| 620 @DomName('AudioListener.dopplerFactor') | 554 @DomName('AudioListener.dopplerFactor') |
| 621 @DocsEditable() | 555 @DocsEditable() |
| 622 set dopplerFactor(num value) => _blink.BlinkAudioListener.instance.dopplerFact
or_Setter_(unwrap_jso(this), value); | 556 set dopplerFactor(num value) => _blink.BlinkAudioListener.instance.dopplerFact
or_Setter_(this, value); |
| 623 | 557 |
| 624 @DomName('AudioListener.speedOfSound') | 558 @DomName('AudioListener.speedOfSound') |
| 625 @DocsEditable() | 559 @DocsEditable() |
| 626 num get speedOfSound => _blink.BlinkAudioListener.instance.speedOfSound_Getter
_(unwrap_jso(this)); | 560 num get speedOfSound => _blink.BlinkAudioListener.instance.speedOfSound_Getter
_(this); |
| 627 | 561 |
| 628 @DomName('AudioListener.speedOfSound') | 562 @DomName('AudioListener.speedOfSound') |
| 629 @DocsEditable() | 563 @DocsEditable() |
| 630 set speedOfSound(num value) => _blink.BlinkAudioListener.instance.speedOfSound
_Setter_(unwrap_jso(this), value); | 564 set speedOfSound(num value) => _blink.BlinkAudioListener.instance.speedOfSound
_Setter_(this, value); |
| 631 | 565 |
| 632 @DomName('AudioListener.setOrientation') | 566 @DomName('AudioListener.setOrientation') |
| 633 @DocsEditable() | 567 @DocsEditable() |
| 634 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) => _blink.
BlinkAudioListener.instance.setOrientation_Callback_6_(unwrap_jso(this), x, y, z
, xUp, yUp, zUp); | 568 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) => _blink.
BlinkAudioListener.instance.setOrientation_Callback_6_(this, x, y, z, xUp, yUp,
zUp); |
| 635 | 569 |
| 636 @DomName('AudioListener.setPosition') | 570 @DomName('AudioListener.setPosition') |
| 637 @DocsEditable() | 571 @DocsEditable() |
| 638 void setPosition(num x, num y, num z) => _blink.BlinkAudioListener.instance.se
tPosition_Callback_3_(unwrap_jso(this), x, y, z); | 572 void setPosition(num x, num y, num z) => _blink.BlinkAudioListener.instance.se
tPosition_Callback_3_(this, x, y, z); |
| 639 | 573 |
| 640 @DomName('AudioListener.setVelocity') | 574 @DomName('AudioListener.setVelocity') |
| 641 @DocsEditable() | 575 @DocsEditable() |
| 642 void setVelocity(num x, num y, num z) => _blink.BlinkAudioListener.instance.se
tVelocity_Callback_3_(unwrap_jso(this), x, y, z); | 576 void setVelocity(num x, num y, num z) => _blink.BlinkAudioListener.instance.se
tVelocity_Callback_3_(this, x, y, z); |
| 643 | 577 |
| 644 } | 578 } |
| 645 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 579 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 646 // for details. All rights reserved. Use of this source code is governed by a | 580 // for details. All rights reserved. Use of this source code is governed by a |
| 647 // BSD-style license that can be found in the LICENSE file. | 581 // BSD-style license that can be found in the LICENSE file. |
| 648 | 582 |
| 649 | 583 |
| 650 @DomName('AudioNode') | 584 @DomName('AudioNode') |
| 651 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo
de-section | 585 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo
de-section |
| 652 @Experimental() | 586 @Experimental() |
| 653 class AudioNode extends EventTarget { | 587 class AudioNode extends EventTarget { |
| 654 // To suppress missing implicit constructor warnings. | 588 // To suppress missing implicit constructor warnings. |
| 655 factory AudioNode._() { throw new UnsupportedError("Not supported"); } | 589 factory AudioNode._() { throw new UnsupportedError("Not supported"); } |
| 656 | 590 |
| 657 | 591 |
| 658 @Deprecated("Internal Use Only") | 592 @Deprecated("Internal Use Only") |
| 659 static AudioNode internalCreateAudioNode() { | 593 external static Type get instanceRuntimeType; |
| 660 return new AudioNode._internalWrap(); | |
| 661 } | |
| 662 | |
| 663 external factory AudioNode._internalWrap(); | |
| 664 | 594 |
| 665 @Deprecated("Internal Use Only") | 595 @Deprecated("Internal Use Only") |
| 666 AudioNode.internal_() : super.internal_(); | 596 AudioNode.internal_() : super.internal_(); |
| 667 | 597 |
| 668 | 598 |
| 669 @DomName('AudioNode.channelCount') | 599 @DomName('AudioNode.channelCount') |
| 670 @DocsEditable() | 600 @DocsEditable() |
| 671 int get channelCount => _blink.BlinkAudioNode.instance.channelCount_Getter_(un
wrap_jso(this)); | 601 int get channelCount => _blink.BlinkAudioNode.instance.channelCount_Getter_(th
is); |
| 672 | 602 |
| 673 @DomName('AudioNode.channelCount') | 603 @DomName('AudioNode.channelCount') |
| 674 @DocsEditable() | 604 @DocsEditable() |
| 675 set channelCount(int value) => _blink.BlinkAudioNode.instance.channelCount_Set
ter_(unwrap_jso(this), value); | 605 set channelCount(int value) => _blink.BlinkAudioNode.instance.channelCount_Set
ter_(this, value); |
| 676 | 606 |
| 677 @DomName('AudioNode.channelCountMode') | 607 @DomName('AudioNode.channelCountMode') |
| 678 @DocsEditable() | 608 @DocsEditable() |
| 679 String get channelCountMode => _blink.BlinkAudioNode.instance.channelCountMode
_Getter_(unwrap_jso(this)); | 609 String get channelCountMode => _blink.BlinkAudioNode.instance.channelCountMode
_Getter_(this); |
| 680 | 610 |
| 681 @DomName('AudioNode.channelCountMode') | 611 @DomName('AudioNode.channelCountMode') |
| 682 @DocsEditable() | 612 @DocsEditable() |
| 683 set channelCountMode(String value) => _blink.BlinkAudioNode.instance.channelCo
untMode_Setter_(unwrap_jso(this), value); | 613 set channelCountMode(String value) => _blink.BlinkAudioNode.instance.channelCo
untMode_Setter_(this, value); |
| 684 | 614 |
| 685 @DomName('AudioNode.channelInterpretation') | 615 @DomName('AudioNode.channelInterpretation') |
| 686 @DocsEditable() | 616 @DocsEditable() |
| 687 String get channelInterpretation => _blink.BlinkAudioNode.instance.channelInte
rpretation_Getter_(unwrap_jso(this)); | 617 String get channelInterpretation => _blink.BlinkAudioNode.instance.channelInte
rpretation_Getter_(this); |
| 688 | 618 |
| 689 @DomName('AudioNode.channelInterpretation') | 619 @DomName('AudioNode.channelInterpretation') |
| 690 @DocsEditable() | 620 @DocsEditable() |
| 691 set channelInterpretation(String value) => _blink.BlinkAudioNode.instance.chan
nelInterpretation_Setter_(unwrap_jso(this), value); | 621 set channelInterpretation(String value) => _blink.BlinkAudioNode.instance.chan
nelInterpretation_Setter_(this, value); |
| 692 | 622 |
| 693 @DomName('AudioNode.context') | 623 @DomName('AudioNode.context') |
| 694 @DocsEditable() | 624 @DocsEditable() |
| 695 AudioContext get context => wrap_jso(_blink.BlinkAudioNode.instance.context_Ge
tter_(unwrap_jso(this))); | 625 AudioContext get context => _blink.BlinkAudioNode.instance.context_Getter_(thi
s); |
| 696 | 626 |
| 697 @DomName('AudioNode.numberOfInputs') | 627 @DomName('AudioNode.numberOfInputs') |
| 698 @DocsEditable() | 628 @DocsEditable() |
| 699 int get numberOfInputs => _blink.BlinkAudioNode.instance.numberOfInputs_Getter
_(unwrap_jso(this)); | 629 int get numberOfInputs => _blink.BlinkAudioNode.instance.numberOfInputs_Getter
_(this); |
| 700 | 630 |
| 701 @DomName('AudioNode.numberOfOutputs') | 631 @DomName('AudioNode.numberOfOutputs') |
| 702 @DocsEditable() | 632 @DocsEditable() |
| 703 int get numberOfOutputs => _blink.BlinkAudioNode.instance.numberOfOutputs_Gett
er_(unwrap_jso(this)); | 633 int get numberOfOutputs => _blink.BlinkAudioNode.instance.numberOfOutputs_Gett
er_(this); |
| 704 | 634 |
| 705 void _connect(destination, [int output, int input]) { | 635 void _connect(destination, [int output, int input]) { |
| 706 if ((destination is AudioNode) && output == null && input == null) { | 636 if ((destination is AudioNode) && output == null && input == null) { |
| 707 _blink.BlinkAudioNode.instance.connect_Callback_1_(unwrap_jso(this), unwra
p_jso(destination)); | 637 _blink.BlinkAudioNode.instance.connect_Callback_1_(this, destination); |
| 708 return; | 638 return; |
| 709 } | 639 } |
| 710 if ((output is int || output == null) && (destination is AudioNode) && input
== null) { | 640 if ((output is int || output == null) && (destination is AudioNode) && input
== null) { |
| 711 _blink.BlinkAudioNode.instance.connect_Callback_2_(unwrap_jso(this), unwra
p_jso(destination), output); | 641 _blink.BlinkAudioNode.instance.connect_Callback_2_(this, destination, outp
ut); |
| 712 return; | 642 return; |
| 713 } | 643 } |
| 714 if ((input is int || input == null) && (output is int || output == null) &&
(destination is AudioNode)) { | 644 if ((input is int || input == null) && (output is int || output == null) &&
(destination is AudioNode)) { |
| 715 _blink.BlinkAudioNode.instance.connect_Callback_3_(unwrap_jso(this), unwra
p_jso(destination), output, input); | 645 _blink.BlinkAudioNode.instance.connect_Callback_3_(this, destination, outp
ut, input); |
| 716 return; | 646 return; |
| 717 } | 647 } |
| 718 if ((destination is AudioParam) && output == null && input == null) { | 648 if ((destination is AudioParam) && output == null && input == null) { |
| 719 _blink.BlinkAudioNode.instance.connect_Callback_1_(unwrap_jso(this), unwra
p_jso(destination)); | 649 _blink.BlinkAudioNode.instance.connect_Callback_1_(this, destination); |
| 720 return; | 650 return; |
| 721 } | 651 } |
| 722 if ((output is int || output == null) && (destination is AudioParam) && inpu
t == null) { | 652 if ((output is int || output == null) && (destination is AudioParam) && inpu
t == null) { |
| 723 _blink.BlinkAudioNode.instance.connect_Callback_2_(unwrap_jso(this), unwra
p_jso(destination), output); | 653 _blink.BlinkAudioNode.instance.connect_Callback_2_(this, destination, outp
ut); |
| 724 return; | 654 return; |
| 725 } | 655 } |
| 726 throw new ArgumentError("Incorrect number or type of arguments"); | 656 throw new ArgumentError("Incorrect number or type of arguments"); |
| 727 } | 657 } |
| 728 | 658 |
| 729 void disconnect([destination_OR_output, int output, int input]) { | 659 void disconnect([destination_OR_output, int output, int input]) { |
| 730 if (destination_OR_output == null && output == null && input == null) { | 660 if (destination_OR_output == null && output == null && input == null) { |
| 731 _blink.BlinkAudioNode.instance.disconnect_Callback_0_(unwrap_jso(this)); | 661 _blink.BlinkAudioNode.instance.disconnect_Callback_0_(this); |
| 732 return; | 662 return; |
| 733 } | 663 } |
| 734 if ((destination_OR_output is int) && output == null && input == null) { | 664 if ((destination_OR_output is int) && output == null && input == null) { |
| 735 _blink.BlinkAudioNode.instance.disconnect_Callback_1_(unwrap_jso(this), un
wrap_jso(destination_OR_output)); | 665 _blink.BlinkAudioNode.instance.disconnect_Callback_1_(this, destination_OR
_output); |
| 736 return; | 666 return; |
| 737 } | 667 } |
| 738 if ((destination_OR_output is AudioNode) && output == null && input == null)
{ | 668 if ((destination_OR_output is AudioNode) && output == null && input == null)
{ |
| 739 _blink.BlinkAudioNode.instance.disconnect_Callback_1_(unwrap_jso(this), un
wrap_jso(destination_OR_output)); | 669 _blink.BlinkAudioNode.instance.disconnect_Callback_1_(this, destination_OR
_output); |
| 740 return; | 670 return; |
| 741 } | 671 } |
| 742 if ((output is int) && (destination_OR_output is AudioNode) && input == null
) { | 672 if ((output is int) && (destination_OR_output is AudioNode) && input == null
) { |
| 743 _blink.BlinkAudioNode.instance.disconnect_Callback_2_(unwrap_jso(this), un
wrap_jso(destination_OR_output), output); | 673 _blink.BlinkAudioNode.instance.disconnect_Callback_2_(this, destination_OR
_output, output); |
| 744 return; | 674 return; |
| 745 } | 675 } |
| 746 if ((input is int) && (output is int) && (destination_OR_output is AudioNode
)) { | 676 if ((input is int) && (output is int) && (destination_OR_output is AudioNode
)) { |
| 747 _blink.BlinkAudioNode.instance.disconnect_Callback_3_(unwrap_jso(this), un
wrap_jso(destination_OR_output), output, input); | 677 _blink.BlinkAudioNode.instance.disconnect_Callback_3_(this, destination_OR
_output, output, input); |
| 748 return; | 678 return; |
| 749 } | 679 } |
| 750 if ((destination_OR_output is AudioParam) && output == null && input == null
) { | 680 if ((destination_OR_output is AudioParam) && output == null && input == null
) { |
| 751 _blink.BlinkAudioNode.instance.disconnect_Callback_1_(unwrap_jso(this), un
wrap_jso(destination_OR_output)); | 681 _blink.BlinkAudioNode.instance.disconnect_Callback_1_(this, destination_OR
_output); |
| 752 return; | 682 return; |
| 753 } | 683 } |
| 754 if ((output is int) && (destination_OR_output is AudioParam) && input == nul
l) { | 684 if ((output is int) && (destination_OR_output is AudioParam) && input == nul
l) { |
| 755 _blink.BlinkAudioNode.instance.disconnect_Callback_2_(unwrap_jso(this), un
wrap_jso(destination_OR_output), output); | 685 _blink.BlinkAudioNode.instance.disconnect_Callback_2_(this, destination_OR
_output, output); |
| 756 return; | 686 return; |
| 757 } | 687 } |
| 758 throw new ArgumentError("Incorrect number or type of arguments"); | 688 throw new ArgumentError("Incorrect number or type of arguments"); |
| 759 } | 689 } |
| 760 | 690 |
| 761 @DomName('AudioNode.connect') | 691 @DomName('AudioNode.connect') |
| 762 void connectNode(AudioNode destination, [int output = 0, int input = 0]) => | 692 void connectNode(AudioNode destination, [int output = 0, int input = 0]) => |
| 763 _connect(destination, output, input); | 693 _connect(destination, output, input); |
| 764 | 694 |
| 765 @DomName('AudioNode.connect') | 695 @DomName('AudioNode.connect') |
| 766 void connectParam(AudioParam destination, [int output = 0]) => | 696 void connectParam(AudioParam destination, [int output = 0]) => |
| 767 _connect(destination, output); | 697 _connect(destination, output); |
| 768 } | 698 } |
| 769 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 699 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 770 // for details. All rights reserved. Use of this source code is governed by a | 700 // for details. All rights reserved. Use of this source code is governed by a |
| 771 // BSD-style license that can be found in the LICENSE file. | 701 // BSD-style license that can be found in the LICENSE file. |
| 772 | 702 |
| 773 // WARNING: Do not edit - generated code. | 703 // WARNING: Do not edit - generated code. |
| 774 | 704 |
| 775 | 705 |
| 776 @DocsEditable() | 706 @DocsEditable() |
| 777 @DomName('AudioParam') | 707 @DomName('AudioParam') |
| 778 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa
ram | 708 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa
ram |
| 779 @Experimental() | 709 @Experimental() |
| 780 class AudioParam extends DartHtmlDomObject { | 710 class AudioParam extends DartHtmlDomObject { |
| 781 // To suppress missing implicit constructor warnings. | 711 // To suppress missing implicit constructor warnings. |
| 782 factory AudioParam._() { throw new UnsupportedError("Not supported"); } | 712 factory AudioParam._() { throw new UnsupportedError("Not supported"); } |
| 783 | 713 |
| 714 |
| 784 @Deprecated("Internal Use Only") | 715 @Deprecated("Internal Use Only") |
| 785 static AudioParam internalCreateAudioParam() { | 716 external static Type get instanceRuntimeType; |
| 786 return new AudioParam._internalWrap(); | |
| 787 } | |
| 788 | |
| 789 factory AudioParam._internalWrap() { | |
| 790 return new AudioParam.internal_(); | |
| 791 } | |
| 792 | 717 |
| 793 @Deprecated("Internal Use Only") | 718 @Deprecated("Internal Use Only") |
| 794 AudioParam.internal_() { } | 719 AudioParam.internal_() { } |
| 795 | 720 |
| 796 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | |
| 797 int get hashCode => unwrap_jso(this).hashCode; | |
| 798 | |
| 799 @DomName('AudioParam.defaultValue') | 721 @DomName('AudioParam.defaultValue') |
| 800 @DocsEditable() | 722 @DocsEditable() |
| 801 num get defaultValue => _blink.BlinkAudioParam.instance.defaultValue_Getter_(u
nwrap_jso(this)); | 723 num get defaultValue => _blink.BlinkAudioParam.instance.defaultValue_Getter_(t
his); |
| 802 | 724 |
| 803 @DomName('AudioParam.value') | 725 @DomName('AudioParam.value') |
| 804 @DocsEditable() | 726 @DocsEditable() |
| 805 num get value => _blink.BlinkAudioParam.instance.value_Getter_(unwrap_jso(this
)); | 727 num get value => _blink.BlinkAudioParam.instance.value_Getter_(this); |
| 806 | 728 |
| 807 @DomName('AudioParam.value') | 729 @DomName('AudioParam.value') |
| 808 @DocsEditable() | 730 @DocsEditable() |
| 809 set value(num value) => _blink.BlinkAudioParam.instance.value_Setter_(unwrap_j
so(this), value); | 731 set value(num value) => _blink.BlinkAudioParam.instance.value_Setter_(this, va
lue); |
| 810 | 732 |
| 811 @DomName('AudioParam.cancelScheduledValues') | 733 @DomName('AudioParam.cancelScheduledValues') |
| 812 @DocsEditable() | 734 @DocsEditable() |
| 813 void cancelScheduledValues(num startTime) => _blink.BlinkAudioParam.instance.c
ancelScheduledValues_Callback_1_(unwrap_jso(this), startTime); | 735 void cancelScheduledValues(num startTime) => _blink.BlinkAudioParam.instance.c
ancelScheduledValues_Callback_1_(this, startTime); |
| 814 | 736 |
| 815 @DomName('AudioParam.exponentialRampToValueAtTime') | 737 @DomName('AudioParam.exponentialRampToValueAtTime') |
| 816 @DocsEditable() | 738 @DocsEditable() |
| 817 void exponentialRampToValueAtTime(num value, num time) => _blink.BlinkAudioPar
am.instance.exponentialRampToValueAtTime_Callback_2_(unwrap_jso(this), value, ti
me); | 739 void exponentialRampToValueAtTime(num value, num time) => _blink.BlinkAudioPar
am.instance.exponentialRampToValueAtTime_Callback_2_(this, value, time); |
| 818 | 740 |
| 819 @DomName('AudioParam.linearRampToValueAtTime') | 741 @DomName('AudioParam.linearRampToValueAtTime') |
| 820 @DocsEditable() | 742 @DocsEditable() |
| 821 void linearRampToValueAtTime(num value, num time) => _blink.BlinkAudioParam.in
stance.linearRampToValueAtTime_Callback_2_(unwrap_jso(this), value, time); | 743 void linearRampToValueAtTime(num value, num time) => _blink.BlinkAudioParam.in
stance.linearRampToValueAtTime_Callback_2_(this, value, time); |
| 822 | 744 |
| 823 @DomName('AudioParam.setTargetAtTime') | 745 @DomName('AudioParam.setTargetAtTime') |
| 824 @DocsEditable() | 746 @DocsEditable() |
| 825 void setTargetAtTime(num target, num time, num timeConstant) => _blink.BlinkAu
dioParam.instance.setTargetAtTime_Callback_3_(unwrap_jso(this), target, time, ti
meConstant); | 747 void setTargetAtTime(num target, num time, num timeConstant) => _blink.BlinkAu
dioParam.instance.setTargetAtTime_Callback_3_(this, target, time, timeConstant); |
| 826 | 748 |
| 827 @DomName('AudioParam.setValueAtTime') | 749 @DomName('AudioParam.setValueAtTime') |
| 828 @DocsEditable() | 750 @DocsEditable() |
| 829 void setValueAtTime(num value, num time) => _blink.BlinkAudioParam.instance.se
tValueAtTime_Callback_2_(unwrap_jso(this), value, time); | 751 void setValueAtTime(num value, num time) => _blink.BlinkAudioParam.instance.se
tValueAtTime_Callback_2_(this, value, time); |
| 830 | 752 |
| 831 @DomName('AudioParam.setValueCurveAtTime') | 753 @DomName('AudioParam.setValueCurveAtTime') |
| 832 @DocsEditable() | 754 @DocsEditable() |
| 833 void setValueCurveAtTime(Float32List values, num time, num duration) => _blink
.BlinkAudioParam.instance.setValueCurveAtTime_Callback_3_(unwrap_jso(this), unwr
ap_jso(values), time, duration); | 755 void setValueCurveAtTime(Float32List values, num time, num duration) => _blink
.BlinkAudioParam.instance.setValueCurveAtTime_Callback_3_(this, values, time, du
ration); |
| 834 | 756 |
| 835 } | 757 } |
| 836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 758 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 837 // for details. All rights reserved. Use of this source code is governed by a | 759 // for details. All rights reserved. Use of this source code is governed by a |
| 838 // BSD-style license that can be found in the LICENSE file. | 760 // BSD-style license that can be found in the LICENSE file. |
| 839 | 761 |
| 840 // WARNING: Do not edit - generated code. | 762 // WARNING: Do not edit - generated code. |
| 841 | 763 |
| 842 | 764 |
| 843 @DocsEditable() | 765 @DocsEditable() |
| 844 @DomName('AudioProcessingEvent') | 766 @DomName('AudioProcessingEvent') |
| 845 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr
ocessingEvent-section | 767 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr
ocessingEvent-section |
| 846 @Experimental() | 768 @Experimental() |
| 847 class AudioProcessingEvent extends Event { | 769 class AudioProcessingEvent extends Event { |
| 848 // To suppress missing implicit constructor warnings. | 770 // To suppress missing implicit constructor warnings. |
| 849 factory AudioProcessingEvent._() { throw new UnsupportedError("Not supported")
; } | 771 factory AudioProcessingEvent._() { throw new UnsupportedError("Not supported")
; } |
| 850 | 772 |
| 851 | 773 |
| 852 @Deprecated("Internal Use Only") | 774 @Deprecated("Internal Use Only") |
| 853 static AudioProcessingEvent internalCreateAudioProcessingEvent() { | 775 external static Type get instanceRuntimeType; |
| 854 return new AudioProcessingEvent._internalWrap(); | |
| 855 } | |
| 856 | |
| 857 external factory AudioProcessingEvent._internalWrap(); | |
| 858 | 776 |
| 859 @Deprecated("Internal Use Only") | 777 @Deprecated("Internal Use Only") |
| 860 AudioProcessingEvent.internal_() : super.internal_(); | 778 AudioProcessingEvent.internal_() : super.internal_(); |
| 861 | 779 |
| 862 | 780 |
| 863 @DomName('AudioProcessingEvent.inputBuffer') | 781 @DomName('AudioProcessingEvent.inputBuffer') |
| 864 @DocsEditable() | 782 @DocsEditable() |
| 865 AudioBuffer get inputBuffer => wrap_jso(_blink.BlinkAudioProcessingEvent.insta
nce.inputBuffer_Getter_(unwrap_jso(this))); | 783 AudioBuffer get inputBuffer => _blink.BlinkAudioProcessingEvent.instance.input
Buffer_Getter_(this); |
| 866 | 784 |
| 867 @DomName('AudioProcessingEvent.outputBuffer') | 785 @DomName('AudioProcessingEvent.outputBuffer') |
| 868 @DocsEditable() | 786 @DocsEditable() |
| 869 AudioBuffer get outputBuffer => wrap_jso(_blink.BlinkAudioProcessingEvent.inst
ance.outputBuffer_Getter_(unwrap_jso(this))); | 787 AudioBuffer get outputBuffer => _blink.BlinkAudioProcessingEvent.instance.outp
utBuffer_Getter_(this); |
| 870 | 788 |
| 871 @DomName('AudioProcessingEvent.playbackTime') | 789 @DomName('AudioProcessingEvent.playbackTime') |
| 872 @DocsEditable() | 790 @DocsEditable() |
| 873 @Experimental() // untriaged | 791 @Experimental() // untriaged |
| 874 num get playbackTime => _blink.BlinkAudioProcessingEvent.instance.playbackTime
_Getter_(unwrap_jso(this)); | 792 num get playbackTime => _blink.BlinkAudioProcessingEvent.instance.playbackTime
_Getter_(this); |
| 875 | 793 |
| 876 } | 794 } |
| 877 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 795 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 878 // for details. All rights reserved. Use of this source code is governed by a | 796 // for details. All rights reserved. Use of this source code is governed by a |
| 879 // BSD-style license that can be found in the LICENSE file. | 797 // BSD-style license that can be found in the LICENSE file. |
| 880 | 798 |
| 881 // WARNING: Do not edit - generated code. | 799 // WARNING: Do not edit - generated code. |
| 882 | 800 |
| 883 | 801 |
| 884 @DocsEditable() | 802 @DocsEditable() |
| 885 @DomName('AudioSourceNode') | 803 @DomName('AudioSourceNode') |
| 886 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html | 804 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html |
| 887 @Experimental() | 805 @Experimental() |
| 888 class AudioSourceNode extends AudioNode { | 806 class AudioSourceNode extends AudioNode { |
| 889 // To suppress missing implicit constructor warnings. | 807 // To suppress missing implicit constructor warnings. |
| 890 factory AudioSourceNode._() { throw new UnsupportedError("Not supported"); } | 808 factory AudioSourceNode._() { throw new UnsupportedError("Not supported"); } |
| 891 | 809 |
| 892 | 810 |
| 893 @Deprecated("Internal Use Only") | 811 @Deprecated("Internal Use Only") |
| 894 static AudioSourceNode internalCreateAudioSourceNode() { | 812 external static Type get instanceRuntimeType; |
| 895 return new AudioSourceNode._internalWrap(); | |
| 896 } | |
| 897 | |
| 898 external factory AudioSourceNode._internalWrap(); | |
| 899 | 813 |
| 900 @Deprecated("Internal Use Only") | 814 @Deprecated("Internal Use Only") |
| 901 AudioSourceNode.internal_() : super.internal_(); | 815 AudioSourceNode.internal_() : super.internal_(); |
| 902 | 816 |
| 903 | 817 |
| 904 } | 818 } |
| 905 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 906 // for details. All rights reserved. Use of this source code is governed by a | 820 // for details. All rights reserved. Use of this source code is governed by a |
| 907 // BSD-style license that can be found in the LICENSE file. | 821 // BSD-style license that can be found in the LICENSE file. |
| 908 | 822 |
| 909 // WARNING: Do not edit - generated code. | 823 // WARNING: Do not edit - generated code. |
| 910 | 824 |
| 911 | 825 |
| 912 @DocsEditable() | 826 @DocsEditable() |
| 913 @DomName('BiquadFilterNode') | 827 @DomName('BiquadFilterNode') |
| 914 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF
ilterNode-section | 828 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF
ilterNode-section |
| 915 @Experimental() | 829 @Experimental() |
| 916 class BiquadFilterNode extends AudioNode { | 830 class BiquadFilterNode extends AudioNode { |
| 917 // To suppress missing implicit constructor warnings. | 831 // To suppress missing implicit constructor warnings. |
| 918 factory BiquadFilterNode._() { throw new UnsupportedError("Not supported"); } | 832 factory BiquadFilterNode._() { throw new UnsupportedError("Not supported"); } |
| 919 | 833 |
| 920 | 834 |
| 921 @Deprecated("Internal Use Only") | 835 @Deprecated("Internal Use Only") |
| 922 static BiquadFilterNode internalCreateBiquadFilterNode() { | 836 external static Type get instanceRuntimeType; |
| 923 return new BiquadFilterNode._internalWrap(); | |
| 924 } | |
| 925 | |
| 926 external factory BiquadFilterNode._internalWrap(); | |
| 927 | 837 |
| 928 @Deprecated("Internal Use Only") | 838 @Deprecated("Internal Use Only") |
| 929 BiquadFilterNode.internal_() : super.internal_(); | 839 BiquadFilterNode.internal_() : super.internal_(); |
| 930 | 840 |
| 931 | 841 |
| 932 @DomName('BiquadFilterNode.Q') | 842 @DomName('BiquadFilterNode.Q') |
| 933 @DocsEditable() | 843 @DocsEditable() |
| 934 AudioParam get Q => wrap_jso(_blink.BlinkBiquadFilterNode.instance.Q_Getter_(u
nwrap_jso(this))); | 844 AudioParam get Q => _blink.BlinkBiquadFilterNode.instance.Q_Getter_(this); |
| 935 | 845 |
| 936 @DomName('BiquadFilterNode.detune') | 846 @DomName('BiquadFilterNode.detune') |
| 937 @DocsEditable() | 847 @DocsEditable() |
| 938 AudioParam get detune => wrap_jso(_blink.BlinkBiquadFilterNode.instance.detune
_Getter_(unwrap_jso(this))); | 848 AudioParam get detune => _blink.BlinkBiquadFilterNode.instance.detune_Getter_(
this); |
| 939 | 849 |
| 940 @DomName('BiquadFilterNode.frequency') | 850 @DomName('BiquadFilterNode.frequency') |
| 941 @DocsEditable() | 851 @DocsEditable() |
| 942 AudioParam get frequency => wrap_jso(_blink.BlinkBiquadFilterNode.instance.fre
quency_Getter_(unwrap_jso(this))); | 852 AudioParam get frequency => _blink.BlinkBiquadFilterNode.instance.frequency_Ge
tter_(this); |
| 943 | 853 |
| 944 @DomName('BiquadFilterNode.gain') | 854 @DomName('BiquadFilterNode.gain') |
| 945 @DocsEditable() | 855 @DocsEditable() |
| 946 AudioParam get gain => wrap_jso(_blink.BlinkBiquadFilterNode.instance.gain_Get
ter_(unwrap_jso(this))); | 856 AudioParam get gain => _blink.BlinkBiquadFilterNode.instance.gain_Getter_(this
); |
| 947 | 857 |
| 948 @DomName('BiquadFilterNode.type') | 858 @DomName('BiquadFilterNode.type') |
| 949 @DocsEditable() | 859 @DocsEditable() |
| 950 String get type => _blink.BlinkBiquadFilterNode.instance.type_Getter_(unwrap_j
so(this)); | 860 String get type => _blink.BlinkBiquadFilterNode.instance.type_Getter_(this); |
| 951 | 861 |
| 952 @DomName('BiquadFilterNode.type') | 862 @DomName('BiquadFilterNode.type') |
| 953 @DocsEditable() | 863 @DocsEditable() |
| 954 set type(String value) => _blink.BlinkBiquadFilterNode.instance.type_Setter_(u
nwrap_jso(this), value); | 864 set type(String value) => _blink.BlinkBiquadFilterNode.instance.type_Setter_(t
his, value); |
| 955 | 865 |
| 956 @DomName('BiquadFilterNode.getFrequencyResponse') | 866 @DomName('BiquadFilterNode.getFrequencyResponse') |
| 957 @DocsEditable() | 867 @DocsEditable() |
| 958 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl
oat32List phaseResponse) => _blink.BlinkBiquadFilterNode.instance.getFrequencyRe
sponse_Callback_3_(unwrap_jso(this), unwrap_jso(frequencyHz), unwrap_jso(magResp
onse), unwrap_jso(phaseResponse)); | 868 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl
oat32List phaseResponse) => _blink.BlinkBiquadFilterNode.instance.getFrequencyRe
sponse_Callback_3_(this, frequencyHz, magResponse, phaseResponse); |
| 959 | 869 |
| 960 } | 870 } |
| 961 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 871 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 962 // for details. All rights reserved. Use of this source code is governed by a | 872 // for details. All rights reserved. Use of this source code is governed by a |
| 963 // BSD-style license that can be found in the LICENSE file. | 873 // BSD-style license that can be found in the LICENSE file. |
| 964 | 874 |
| 965 // WARNING: Do not edit - generated code. | 875 // WARNING: Do not edit - generated code. |
| 966 | 876 |
| 967 | 877 |
| 968 @DocsEditable() | 878 @DocsEditable() |
| 969 @DomName('ChannelMergerNode') | 879 @DomName('ChannelMergerNode') |
| 970 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
MergerNode-section | 880 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
MergerNode-section |
| 971 @Experimental() | 881 @Experimental() |
| 972 class ChannelMergerNode extends AudioNode { | 882 class ChannelMergerNode extends AudioNode { |
| 973 // To suppress missing implicit constructor warnings. | 883 // To suppress missing implicit constructor warnings. |
| 974 factory ChannelMergerNode._() { throw new UnsupportedError("Not supported"); } | 884 factory ChannelMergerNode._() { throw new UnsupportedError("Not supported"); } |
| 975 | 885 |
| 976 | 886 |
| 977 @Deprecated("Internal Use Only") | 887 @Deprecated("Internal Use Only") |
| 978 static ChannelMergerNode internalCreateChannelMergerNode() { | 888 external static Type get instanceRuntimeType; |
| 979 return new ChannelMergerNode._internalWrap(); | |
| 980 } | |
| 981 | |
| 982 external factory ChannelMergerNode._internalWrap(); | |
| 983 | 889 |
| 984 @Deprecated("Internal Use Only") | 890 @Deprecated("Internal Use Only") |
| 985 ChannelMergerNode.internal_() : super.internal_(); | 891 ChannelMergerNode.internal_() : super.internal_(); |
| 986 | 892 |
| 987 | 893 |
| 988 } | 894 } |
| 989 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 895 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 990 // for details. All rights reserved. Use of this source code is governed by a | 896 // for details. All rights reserved. Use of this source code is governed by a |
| 991 // BSD-style license that can be found in the LICENSE file. | 897 // BSD-style license that can be found in the LICENSE file. |
| 992 | 898 |
| 993 // WARNING: Do not edit - generated code. | 899 // WARNING: Do not edit - generated code. |
| 994 | 900 |
| 995 | 901 |
| 996 @DocsEditable() | 902 @DocsEditable() |
| 997 @DomName('ChannelSplitterNode') | 903 @DomName('ChannelSplitterNode') |
| 998 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
SplitterNode-section | 904 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
SplitterNode-section |
| 999 @Experimental() | 905 @Experimental() |
| 1000 class ChannelSplitterNode extends AudioNode { | 906 class ChannelSplitterNode extends AudioNode { |
| 1001 // To suppress missing implicit constructor warnings. | 907 // To suppress missing implicit constructor warnings. |
| 1002 factory ChannelSplitterNode._() { throw new UnsupportedError("Not supported");
} | 908 factory ChannelSplitterNode._() { throw new UnsupportedError("Not supported");
} |
| 1003 | 909 |
| 1004 | 910 |
| 1005 @Deprecated("Internal Use Only") | 911 @Deprecated("Internal Use Only") |
| 1006 static ChannelSplitterNode internalCreateChannelSplitterNode() { | 912 external static Type get instanceRuntimeType; |
| 1007 return new ChannelSplitterNode._internalWrap(); | |
| 1008 } | |
| 1009 | |
| 1010 external factory ChannelSplitterNode._internalWrap(); | |
| 1011 | 913 |
| 1012 @Deprecated("Internal Use Only") | 914 @Deprecated("Internal Use Only") |
| 1013 ChannelSplitterNode.internal_() : super.internal_(); | 915 ChannelSplitterNode.internal_() : super.internal_(); |
| 1014 | 916 |
| 1015 | 917 |
| 1016 } | 918 } |
| 1017 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 919 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1018 // for details. All rights reserved. Use of this source code is governed by a | 920 // for details. All rights reserved. Use of this source code is governed by a |
| 1019 // BSD-style license that can be found in the LICENSE file. | 921 // BSD-style license that can be found in the LICENSE file. |
| 1020 | 922 |
| 1021 // WARNING: Do not edit - generated code. | 923 // WARNING: Do not edit - generated code. |
| 1022 | 924 |
| 1023 | 925 |
| 1024 @DocsEditable() | 926 @DocsEditable() |
| 1025 @DomName('ConvolverNode') | 927 @DomName('ConvolverNode') |
| 1026 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv
erNode | 928 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv
erNode |
| 1027 @Experimental() | 929 @Experimental() |
| 1028 class ConvolverNode extends AudioNode { | 930 class ConvolverNode extends AudioNode { |
| 1029 // To suppress missing implicit constructor warnings. | 931 // To suppress missing implicit constructor warnings. |
| 1030 factory ConvolverNode._() { throw new UnsupportedError("Not supported"); } | 932 factory ConvolverNode._() { throw new UnsupportedError("Not supported"); } |
| 1031 | 933 |
| 1032 | 934 |
| 1033 @Deprecated("Internal Use Only") | 935 @Deprecated("Internal Use Only") |
| 1034 static ConvolverNode internalCreateConvolverNode() { | 936 external static Type get instanceRuntimeType; |
| 1035 return new ConvolverNode._internalWrap(); | |
| 1036 } | |
| 1037 | |
| 1038 external factory ConvolverNode._internalWrap(); | |
| 1039 | 937 |
| 1040 @Deprecated("Internal Use Only") | 938 @Deprecated("Internal Use Only") |
| 1041 ConvolverNode.internal_() : super.internal_(); | 939 ConvolverNode.internal_() : super.internal_(); |
| 1042 | 940 |
| 1043 | 941 |
| 1044 @DomName('ConvolverNode.buffer') | 942 @DomName('ConvolverNode.buffer') |
| 1045 @DocsEditable() | 943 @DocsEditable() |
| 1046 AudioBuffer get buffer => wrap_jso(_blink.BlinkConvolverNode.instance.buffer_G
etter_(unwrap_jso(this))); | 944 AudioBuffer get buffer => _blink.BlinkConvolverNode.instance.buffer_Getter_(th
is); |
| 1047 | 945 |
| 1048 @DomName('ConvolverNode.buffer') | 946 @DomName('ConvolverNode.buffer') |
| 1049 @DocsEditable() | 947 @DocsEditable() |
| 1050 set buffer(AudioBuffer value) => _blink.BlinkConvolverNode.instance.buffer_Set
ter_(unwrap_jso(this), unwrap_jso(value)); | 948 set buffer(AudioBuffer value) => _blink.BlinkConvolverNode.instance.buffer_Set
ter_(this, value); |
| 1051 | 949 |
| 1052 @DomName('ConvolverNode.normalize') | 950 @DomName('ConvolverNode.normalize') |
| 1053 @DocsEditable() | 951 @DocsEditable() |
| 1054 bool get normalize => _blink.BlinkConvolverNode.instance.normalize_Getter_(unw
rap_jso(this)); | 952 bool get normalize => _blink.BlinkConvolverNode.instance.normalize_Getter_(thi
s); |
| 1055 | 953 |
| 1056 @DomName('ConvolverNode.normalize') | 954 @DomName('ConvolverNode.normalize') |
| 1057 @DocsEditable() | 955 @DocsEditable() |
| 1058 set normalize(bool value) => _blink.BlinkConvolverNode.instance.normalize_Sett
er_(unwrap_jso(this), value); | 956 set normalize(bool value) => _blink.BlinkConvolverNode.instance.normalize_Sett
er_(this, value); |
| 1059 | 957 |
| 1060 } | 958 } |
| 1061 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 959 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1062 // for details. All rights reserved. Use of this source code is governed by a | 960 // for details. All rights reserved. Use of this source code is governed by a |
| 1063 // BSD-style license that can be found in the LICENSE file. | 961 // BSD-style license that can be found in the LICENSE file. |
| 1064 | 962 |
| 1065 // WARNING: Do not edit - generated code. | 963 // WARNING: Do not edit - generated code. |
| 1066 | 964 |
| 1067 | 965 |
| 1068 @DocsEditable() | 966 @DocsEditable() |
| 1069 @DomName('DelayNode') | 967 @DomName('DelayNode') |
| 1070 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo
de | 968 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo
de |
| 1071 @Experimental() | 969 @Experimental() |
| 1072 class DelayNode extends AudioNode { | 970 class DelayNode extends AudioNode { |
| 1073 // To suppress missing implicit constructor warnings. | 971 // To suppress missing implicit constructor warnings. |
| 1074 factory DelayNode._() { throw new UnsupportedError("Not supported"); } | 972 factory DelayNode._() { throw new UnsupportedError("Not supported"); } |
| 1075 | 973 |
| 1076 | 974 |
| 1077 @Deprecated("Internal Use Only") | 975 @Deprecated("Internal Use Only") |
| 1078 static DelayNode internalCreateDelayNode() { | 976 external static Type get instanceRuntimeType; |
| 1079 return new DelayNode._internalWrap(); | |
| 1080 } | |
| 1081 | |
| 1082 external factory DelayNode._internalWrap(); | |
| 1083 | 977 |
| 1084 @Deprecated("Internal Use Only") | 978 @Deprecated("Internal Use Only") |
| 1085 DelayNode.internal_() : super.internal_(); | 979 DelayNode.internal_() : super.internal_(); |
| 1086 | 980 |
| 1087 | 981 |
| 1088 @DomName('DelayNode.delayTime') | 982 @DomName('DelayNode.delayTime') |
| 1089 @DocsEditable() | 983 @DocsEditable() |
| 1090 AudioParam get delayTime => wrap_jso(_blink.BlinkDelayNode.instance.delayTime_
Getter_(unwrap_jso(this))); | 984 AudioParam get delayTime => _blink.BlinkDelayNode.instance.delayTime_Getter_(t
his); |
| 1091 | 985 |
| 1092 } | 986 } |
| 1093 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 987 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1094 // for details. All rights reserved. Use of this source code is governed by a | 988 // for details. All rights reserved. Use of this source code is governed by a |
| 1095 // BSD-style license that can be found in the LICENSE file. | 989 // BSD-style license that can be found in the LICENSE file. |
| 1096 | 990 |
| 1097 // WARNING: Do not edit - generated code. | 991 // WARNING: Do not edit - generated code. |
| 1098 | 992 |
| 1099 | 993 |
| 1100 @DocsEditable() | 994 @DocsEditable() |
| 1101 @DomName('DynamicsCompressorNode') | 995 @DomName('DynamicsCompressorNode') |
| 1102 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic
sCompressorNode | 996 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic
sCompressorNode |
| 1103 @Experimental() | 997 @Experimental() |
| 1104 class DynamicsCompressorNode extends AudioNode { | 998 class DynamicsCompressorNode extends AudioNode { |
| 1105 // To suppress missing implicit constructor warnings. | 999 // To suppress missing implicit constructor warnings. |
| 1106 factory DynamicsCompressorNode._() { throw new UnsupportedError("Not supported
"); } | 1000 factory DynamicsCompressorNode._() { throw new UnsupportedError("Not supported
"); } |
| 1107 | 1001 |
| 1108 | 1002 |
| 1109 @Deprecated("Internal Use Only") | 1003 @Deprecated("Internal Use Only") |
| 1110 static DynamicsCompressorNode internalCreateDynamicsCompressorNode() { | 1004 external static Type get instanceRuntimeType; |
| 1111 return new DynamicsCompressorNode._internalWrap(); | |
| 1112 } | |
| 1113 | |
| 1114 external factory DynamicsCompressorNode._internalWrap(); | |
| 1115 | 1005 |
| 1116 @Deprecated("Internal Use Only") | 1006 @Deprecated("Internal Use Only") |
| 1117 DynamicsCompressorNode.internal_() : super.internal_(); | 1007 DynamicsCompressorNode.internal_() : super.internal_(); |
| 1118 | 1008 |
| 1119 | 1009 |
| 1120 @DomName('DynamicsCompressorNode.attack') | 1010 @DomName('DynamicsCompressorNode.attack') |
| 1121 @DocsEditable() | 1011 @DocsEditable() |
| 1122 AudioParam get attack => wrap_jso(_blink.BlinkDynamicsCompressorNode.instance.
attack_Getter_(unwrap_jso(this))); | 1012 AudioParam get attack => _blink.BlinkDynamicsCompressorNode.instance.attack_Ge
tter_(this); |
| 1123 | 1013 |
| 1124 @DomName('DynamicsCompressorNode.knee') | 1014 @DomName('DynamicsCompressorNode.knee') |
| 1125 @DocsEditable() | 1015 @DocsEditable() |
| 1126 AudioParam get knee => wrap_jso(_blink.BlinkDynamicsCompressorNode.instance.kn
ee_Getter_(unwrap_jso(this))); | 1016 AudioParam get knee => _blink.BlinkDynamicsCompressorNode.instance.knee_Getter
_(this); |
| 1127 | 1017 |
| 1128 @DomName('DynamicsCompressorNode.ratio') | 1018 @DomName('DynamicsCompressorNode.ratio') |
| 1129 @DocsEditable() | 1019 @DocsEditable() |
| 1130 AudioParam get ratio => wrap_jso(_blink.BlinkDynamicsCompressorNode.instance.r
atio_Getter_(unwrap_jso(this))); | 1020 AudioParam get ratio => _blink.BlinkDynamicsCompressorNode.instance.ratio_Gett
er_(this); |
| 1131 | 1021 |
| 1132 @DomName('DynamicsCompressorNode.reduction') | 1022 @DomName('DynamicsCompressorNode.reduction') |
| 1133 @DocsEditable() | 1023 @DocsEditable() |
| 1134 AudioParam get reduction => wrap_jso(_blink.BlinkDynamicsCompressorNode.instan
ce.reduction_Getter_(unwrap_jso(this))); | 1024 AudioParam get reduction => _blink.BlinkDynamicsCompressorNode.instance.reduct
ion_Getter_(this); |
| 1135 | 1025 |
| 1136 @DomName('DynamicsCompressorNode.release') | 1026 @DomName('DynamicsCompressorNode.release') |
| 1137 @DocsEditable() | 1027 @DocsEditable() |
| 1138 AudioParam get release => wrap_jso(_blink.BlinkDynamicsCompressorNode.instance
.release_Getter_(unwrap_jso(this))); | 1028 AudioParam get release => _blink.BlinkDynamicsCompressorNode.instance.release_
Getter_(this); |
| 1139 | 1029 |
| 1140 @DomName('DynamicsCompressorNode.threshold') | 1030 @DomName('DynamicsCompressorNode.threshold') |
| 1141 @DocsEditable() | 1031 @DocsEditable() |
| 1142 AudioParam get threshold => wrap_jso(_blink.BlinkDynamicsCompressorNode.instan
ce.threshold_Getter_(unwrap_jso(this))); | 1032 AudioParam get threshold => _blink.BlinkDynamicsCompressorNode.instance.thresh
old_Getter_(this); |
| 1143 | 1033 |
| 1144 } | 1034 } |
| 1145 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1035 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1146 // for details. All rights reserved. Use of this source code is governed by a | 1036 // for details. All rights reserved. Use of this source code is governed by a |
| 1147 // BSD-style license that can be found in the LICENSE file. | 1037 // BSD-style license that can be found in the LICENSE file. |
| 1148 | 1038 |
| 1149 // WARNING: Do not edit - generated code. | 1039 // WARNING: Do not edit - generated code. |
| 1150 | 1040 |
| 1151 | 1041 |
| 1152 @DocsEditable() | 1042 @DocsEditable() |
| 1153 @DomName('GainNode') | 1043 @DomName('GainNode') |
| 1154 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod
e | 1044 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod
e |
| 1155 @Experimental() | 1045 @Experimental() |
| 1156 class GainNode extends AudioNode { | 1046 class GainNode extends AudioNode { |
| 1157 // To suppress missing implicit constructor warnings. | 1047 // To suppress missing implicit constructor warnings. |
| 1158 factory GainNode._() { throw new UnsupportedError("Not supported"); } | 1048 factory GainNode._() { throw new UnsupportedError("Not supported"); } |
| 1159 | 1049 |
| 1160 | 1050 |
| 1161 @Deprecated("Internal Use Only") | 1051 @Deprecated("Internal Use Only") |
| 1162 static GainNode internalCreateGainNode() { | 1052 external static Type get instanceRuntimeType; |
| 1163 return new GainNode._internalWrap(); | |
| 1164 } | |
| 1165 | |
| 1166 external factory GainNode._internalWrap(); | |
| 1167 | 1053 |
| 1168 @Deprecated("Internal Use Only") | 1054 @Deprecated("Internal Use Only") |
| 1169 GainNode.internal_() : super.internal_(); | 1055 GainNode.internal_() : super.internal_(); |
| 1170 | 1056 |
| 1171 | 1057 |
| 1172 @DomName('GainNode.gain') | 1058 @DomName('GainNode.gain') |
| 1173 @DocsEditable() | 1059 @DocsEditable() |
| 1174 AudioParam get gain => wrap_jso(_blink.BlinkGainNode.instance.gain_Getter_(unw
rap_jso(this))); | 1060 AudioParam get gain => _blink.BlinkGainNode.instance.gain_Getter_(this); |
| 1175 | 1061 |
| 1176 } | 1062 } |
| 1177 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1063 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1178 // for details. All rights reserved. Use of this source code is governed by a | 1064 // for details. All rights reserved. Use of this source code is governed by a |
| 1179 // BSD-style license that can be found in the LICENSE file. | 1065 // BSD-style license that can be found in the LICENSE file. |
| 1180 | 1066 |
| 1181 // WARNING: Do not edit - generated code. | 1067 // WARNING: Do not edit - generated code. |
| 1182 | 1068 |
| 1183 | 1069 |
| 1184 @DocsEditable() | 1070 @DocsEditable() |
| 1185 @DomName('MediaElementAudioSourceNode') | 1071 @DomName('MediaElementAudioSourceNode') |
| 1186 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl
ementAudioSourceNode | 1072 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl
ementAudioSourceNode |
| 1187 @Experimental() | 1073 @Experimental() |
| 1188 class MediaElementAudioSourceNode extends AudioSourceNode { | 1074 class MediaElementAudioSourceNode extends AudioSourceNode { |
| 1189 // To suppress missing implicit constructor warnings. | 1075 // To suppress missing implicit constructor warnings. |
| 1190 factory MediaElementAudioSourceNode._() { throw new UnsupportedError("Not supp
orted"); } | 1076 factory MediaElementAudioSourceNode._() { throw new UnsupportedError("Not supp
orted"); } |
| 1191 | 1077 |
| 1192 | 1078 |
| 1193 @Deprecated("Internal Use Only") | 1079 @Deprecated("Internal Use Only") |
| 1194 static MediaElementAudioSourceNode internalCreateMediaElementAudioSourceNode()
{ | 1080 external static Type get instanceRuntimeType; |
| 1195 return new MediaElementAudioSourceNode._internalWrap(); | |
| 1196 } | |
| 1197 | |
| 1198 external factory MediaElementAudioSourceNode._internalWrap(); | |
| 1199 | 1081 |
| 1200 @Deprecated("Internal Use Only") | 1082 @Deprecated("Internal Use Only") |
| 1201 MediaElementAudioSourceNode.internal_() : super.internal_(); | 1083 MediaElementAudioSourceNode.internal_() : super.internal_(); |
| 1202 | 1084 |
| 1203 | 1085 |
| 1204 @DomName('MediaElementAudioSourceNode.mediaElement') | 1086 @DomName('MediaElementAudioSourceNode.mediaElement') |
| 1205 @DocsEditable() | 1087 @DocsEditable() |
| 1206 @Experimental() // non-standard | 1088 @Experimental() // non-standard |
| 1207 MediaElement get mediaElement => wrap_jso(_blink.BlinkMediaElementAudioSourceN
ode.instance.mediaElement_Getter_(unwrap_jso(this))); | 1089 MediaElement get mediaElement => _blink.BlinkMediaElementAudioSourceNode.insta
nce.mediaElement_Getter_(this); |
| 1208 | 1090 |
| 1209 } | 1091 } |
| 1210 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1092 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1211 // for details. All rights reserved. Use of this source code is governed by a | 1093 // for details. All rights reserved. Use of this source code is governed by a |
| 1212 // BSD-style license that can be found in the LICENSE file. | 1094 // BSD-style license that can be found in the LICENSE file. |
| 1213 | 1095 |
| 1214 // WARNING: Do not edit - generated code. | 1096 // WARNING: Do not edit - generated code. |
| 1215 | 1097 |
| 1216 | 1098 |
| 1217 @DocsEditable() | 1099 @DocsEditable() |
| 1218 @DomName('MediaStreamAudioDestinationNode') | 1100 @DomName('MediaStreamAudioDestinationNode') |
| 1219 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioDestinationNode | 1101 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioDestinationNode |
| 1220 @Experimental() | 1102 @Experimental() |
| 1221 class MediaStreamAudioDestinationNode extends AudioNode { | 1103 class MediaStreamAudioDestinationNode extends AudioNode { |
| 1222 // To suppress missing implicit constructor warnings. | 1104 // To suppress missing implicit constructor warnings. |
| 1223 factory MediaStreamAudioDestinationNode._() { throw new UnsupportedError("Not
supported"); } | 1105 factory MediaStreamAudioDestinationNode._() { throw new UnsupportedError("Not
supported"); } |
| 1224 | 1106 |
| 1225 | 1107 |
| 1226 @Deprecated("Internal Use Only") | 1108 @Deprecated("Internal Use Only") |
| 1227 static MediaStreamAudioDestinationNode internalCreateMediaStreamAudioDestinati
onNode() { | 1109 external static Type get instanceRuntimeType; |
| 1228 return new MediaStreamAudioDestinationNode._internalWrap(); | |
| 1229 } | |
| 1230 | |
| 1231 external factory MediaStreamAudioDestinationNode._internalWrap(); | |
| 1232 | 1110 |
| 1233 @Deprecated("Internal Use Only") | 1111 @Deprecated("Internal Use Only") |
| 1234 MediaStreamAudioDestinationNode.internal_() : super.internal_(); | 1112 MediaStreamAudioDestinationNode.internal_() : super.internal_(); |
| 1235 | 1113 |
| 1236 | 1114 |
| 1237 @DomName('MediaStreamAudioDestinationNode.stream') | 1115 @DomName('MediaStreamAudioDestinationNode.stream') |
| 1238 @DocsEditable() | 1116 @DocsEditable() |
| 1239 MediaStream get stream => wrap_jso(_blink.BlinkMediaStreamAudioDestinationNode
.instance.stream_Getter_(unwrap_jso(this))); | 1117 MediaStream get stream => _blink.BlinkMediaStreamAudioDestinationNode.instance
.stream_Getter_(this); |
| 1240 | 1118 |
| 1241 } | 1119 } |
| 1242 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1243 // for details. All rights reserved. Use of this source code is governed by a | 1121 // for details. All rights reserved. Use of this source code is governed by a |
| 1244 // BSD-style license that can be found in the LICENSE file. | 1122 // BSD-style license that can be found in the LICENSE file. |
| 1245 | 1123 |
| 1246 // WARNING: Do not edit - generated code. | 1124 // WARNING: Do not edit - generated code. |
| 1247 | 1125 |
| 1248 | 1126 |
| 1249 @DocsEditable() | 1127 @DocsEditable() |
| 1250 @DomName('MediaStreamAudioSourceNode') | 1128 @DomName('MediaStreamAudioSourceNode') |
| 1251 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioSourceNode | 1129 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioSourceNode |
| 1252 @Experimental() | 1130 @Experimental() |
| 1253 class MediaStreamAudioSourceNode extends AudioSourceNode { | 1131 class MediaStreamAudioSourceNode extends AudioSourceNode { |
| 1254 // To suppress missing implicit constructor warnings. | 1132 // To suppress missing implicit constructor warnings. |
| 1255 factory MediaStreamAudioSourceNode._() { throw new UnsupportedError("Not suppo
rted"); } | 1133 factory MediaStreamAudioSourceNode._() { throw new UnsupportedError("Not suppo
rted"); } |
| 1256 | 1134 |
| 1257 | 1135 |
| 1258 @Deprecated("Internal Use Only") | 1136 @Deprecated("Internal Use Only") |
| 1259 static MediaStreamAudioSourceNode internalCreateMediaStreamAudioSourceNode() { | 1137 external static Type get instanceRuntimeType; |
| 1260 return new MediaStreamAudioSourceNode._internalWrap(); | |
| 1261 } | |
| 1262 | |
| 1263 external factory MediaStreamAudioSourceNode._internalWrap(); | |
| 1264 | 1138 |
| 1265 @Deprecated("Internal Use Only") | 1139 @Deprecated("Internal Use Only") |
| 1266 MediaStreamAudioSourceNode.internal_() : super.internal_(); | 1140 MediaStreamAudioSourceNode.internal_() : super.internal_(); |
| 1267 | 1141 |
| 1268 | 1142 |
| 1269 @DomName('MediaStreamAudioSourceNode.mediaStream') | 1143 @DomName('MediaStreamAudioSourceNode.mediaStream') |
| 1270 @DocsEditable() | 1144 @DocsEditable() |
| 1271 MediaStream get mediaStream => wrap_jso(_blink.BlinkMediaStreamAudioSourceNode
.instance.mediaStream_Getter_(unwrap_jso(this))); | 1145 MediaStream get mediaStream => _blink.BlinkMediaStreamAudioSourceNode.instance
.mediaStream_Getter_(this); |
| 1272 | 1146 |
| 1273 } | 1147 } |
| 1274 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1148 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1275 // for details. All rights reserved. Use of this source code is governed by a | 1149 // for details. All rights reserved. Use of this source code is governed by a |
| 1276 // BSD-style license that can be found in the LICENSE file. | 1150 // BSD-style license that can be found in the LICENSE file. |
| 1277 | 1151 |
| 1278 // WARNING: Do not edit - generated code. | 1152 // WARNING: Do not edit - generated code. |
| 1279 | 1153 |
| 1280 | 1154 |
| 1281 @DocsEditable() | 1155 @DocsEditable() |
| 1282 @DomName('OfflineAudioCompletionEvent') | 1156 @DomName('OfflineAudioCompletionEvent') |
| 1283 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioCompletionEvent-section | 1157 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioCompletionEvent-section |
| 1284 @Experimental() | 1158 @Experimental() |
| 1285 class OfflineAudioCompletionEvent extends Event { | 1159 class OfflineAudioCompletionEvent extends Event { |
| 1286 // To suppress missing implicit constructor warnings. | 1160 // To suppress missing implicit constructor warnings. |
| 1287 factory OfflineAudioCompletionEvent._() { throw new UnsupportedError("Not supp
orted"); } | 1161 factory OfflineAudioCompletionEvent._() { throw new UnsupportedError("Not supp
orted"); } |
| 1288 | 1162 |
| 1289 | 1163 |
| 1290 @Deprecated("Internal Use Only") | 1164 @Deprecated("Internal Use Only") |
| 1291 static OfflineAudioCompletionEvent internalCreateOfflineAudioCompletionEvent()
{ | 1165 external static Type get instanceRuntimeType; |
| 1292 return new OfflineAudioCompletionEvent._internalWrap(); | |
| 1293 } | |
| 1294 | |
| 1295 external factory OfflineAudioCompletionEvent._internalWrap(); | |
| 1296 | 1166 |
| 1297 @Deprecated("Internal Use Only") | 1167 @Deprecated("Internal Use Only") |
| 1298 OfflineAudioCompletionEvent.internal_() : super.internal_(); | 1168 OfflineAudioCompletionEvent.internal_() : super.internal_(); |
| 1299 | 1169 |
| 1300 | 1170 |
| 1301 @DomName('OfflineAudioCompletionEvent.renderedBuffer') | 1171 @DomName('OfflineAudioCompletionEvent.renderedBuffer') |
| 1302 @DocsEditable() | 1172 @DocsEditable() |
| 1303 AudioBuffer get renderedBuffer => wrap_jso(_blink.BlinkOfflineAudioCompletionE
vent.instance.renderedBuffer_Getter_(unwrap_jso(this))); | 1173 AudioBuffer get renderedBuffer => _blink.BlinkOfflineAudioCompletionEvent.inst
ance.renderedBuffer_Getter_(this); |
| 1304 | 1174 |
| 1305 } | 1175 } |
| 1306 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1176 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1307 // for details. All rights reserved. Use of this source code is governed by a | 1177 // for details. All rights reserved. Use of this source code is governed by a |
| 1308 // BSD-style license that can be found in the LICENSE file. | 1178 // BSD-style license that can be found in the LICENSE file. |
| 1309 | 1179 |
| 1310 // WARNING: Do not edit - generated code. | 1180 // WARNING: Do not edit - generated code. |
| 1311 | 1181 |
| 1312 | 1182 |
| 1313 @DocsEditable() | 1183 @DocsEditable() |
| 1314 @DomName('OfflineAudioContext') | 1184 @DomName('OfflineAudioContext') |
| 1315 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioContext-section | 1185 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioContext-section |
| 1316 @Experimental() | 1186 @Experimental() |
| 1317 class OfflineAudioContext extends AudioContext { | 1187 class OfflineAudioContext extends AudioContext { |
| 1318 // To suppress missing implicit constructor warnings. | 1188 // To suppress missing implicit constructor warnings. |
| 1319 factory OfflineAudioContext._() { throw new UnsupportedError("Not supported");
} | 1189 factory OfflineAudioContext._() { throw new UnsupportedError("Not supported");
} |
| 1320 | 1190 |
| 1321 @DomName('OfflineAudioContext.OfflineAudioContext') | 1191 @DomName('OfflineAudioContext.OfflineAudioContext') |
| 1322 @DocsEditable() | 1192 @DocsEditable() |
| 1323 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp
leRate) { | 1193 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp
leRate) { |
| 1324 return wrap_jso(_blink.BlinkOfflineAudioContext.instance.constructorCallback
_3_(numberOfChannels, numberOfFrames, sampleRate)); | 1194 return _blink.BlinkOfflineAudioContext.instance.constructorCallback_3_(numbe
rOfChannels, numberOfFrames, sampleRate); |
| 1325 } | 1195 } |
| 1326 | 1196 |
| 1327 | 1197 |
| 1328 @Deprecated("Internal Use Only") | 1198 @Deprecated("Internal Use Only") |
| 1329 static OfflineAudioContext internalCreateOfflineAudioContext() { | 1199 external static Type get instanceRuntimeType; |
| 1330 return new OfflineAudioContext._internalWrap(); | |
| 1331 } | |
| 1332 | |
| 1333 external factory OfflineAudioContext._internalWrap(); | |
| 1334 | 1200 |
| 1335 @Deprecated("Internal Use Only") | 1201 @Deprecated("Internal Use Only") |
| 1336 OfflineAudioContext.internal_() : super.internal_(); | 1202 OfflineAudioContext.internal_() : super.internal_(); |
| 1337 | 1203 |
| 1338 | 1204 |
| 1339 @DomName('OfflineAudioContext.startRendering') | 1205 @DomName('OfflineAudioContext.startRendering') |
| 1340 @DocsEditable() | 1206 @DocsEditable() |
| 1341 @Experimental() // untriaged | 1207 @Experimental() // untriaged |
| 1342 Future startRendering() => wrap_jso(_blink.BlinkOfflineAudioContext.instance.s
tartRendering_Callback_0_(unwrap_jso(this))); | 1208 Future startRendering() => convertNativePromiseToDartFuture(_blink.BlinkOfflin
eAudioContext.instance.startRendering_Callback_0_(this)); |
| 1343 | 1209 |
| 1344 } | 1210 } |
| 1345 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1211 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1346 // for details. All rights reserved. Use of this source code is governed by a | 1212 // for details. All rights reserved. Use of this source code is governed by a |
| 1347 // BSD-style license that can be found in the LICENSE file. | 1213 // BSD-style license that can be found in the LICENSE file. |
| 1348 | 1214 |
| 1349 // WARNING: Do not edit - generated code. | 1215 // WARNING: Do not edit - generated code. |
| 1350 | 1216 |
| 1351 | 1217 |
| 1352 @DocsEditable() | 1218 @DocsEditable() |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1363 * | 1229 * |
| 1364 * See [EventStreamProvider] for usage information. | 1230 * See [EventStreamProvider] for usage information. |
| 1365 */ | 1231 */ |
| 1366 @DomName('OscillatorNode.endedEvent') | 1232 @DomName('OscillatorNode.endedEvent') |
| 1367 @DocsEditable() | 1233 @DocsEditable() |
| 1368 @Experimental() // untriaged | 1234 @Experimental() // untriaged |
| 1369 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider
<Event>('ended'); | 1235 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider
<Event>('ended'); |
| 1370 | 1236 |
| 1371 | 1237 |
| 1372 @Deprecated("Internal Use Only") | 1238 @Deprecated("Internal Use Only") |
| 1373 static OscillatorNode internalCreateOscillatorNode() { | 1239 external static Type get instanceRuntimeType; |
| 1374 return new OscillatorNode._internalWrap(); | |
| 1375 } | |
| 1376 | |
| 1377 external factory OscillatorNode._internalWrap(); | |
| 1378 | 1240 |
| 1379 @Deprecated("Internal Use Only") | 1241 @Deprecated("Internal Use Only") |
| 1380 OscillatorNode.internal_() : super.internal_(); | 1242 OscillatorNode.internal_() : super.internal_(); |
| 1381 | 1243 |
| 1382 | 1244 |
| 1383 @DomName('OscillatorNode.detune') | 1245 @DomName('OscillatorNode.detune') |
| 1384 @DocsEditable() | 1246 @DocsEditable() |
| 1385 AudioParam get detune => wrap_jso(_blink.BlinkOscillatorNode.instance.detune_G
etter_(unwrap_jso(this))); | 1247 AudioParam get detune => _blink.BlinkOscillatorNode.instance.detune_Getter_(th
is); |
| 1386 | 1248 |
| 1387 @DomName('OscillatorNode.frequency') | 1249 @DomName('OscillatorNode.frequency') |
| 1388 @DocsEditable() | 1250 @DocsEditable() |
| 1389 AudioParam get frequency => wrap_jso(_blink.BlinkOscillatorNode.instance.frequ
ency_Getter_(unwrap_jso(this))); | 1251 AudioParam get frequency => _blink.BlinkOscillatorNode.instance.frequency_Gett
er_(this); |
| 1390 | 1252 |
| 1391 @DomName('OscillatorNode.type') | 1253 @DomName('OscillatorNode.type') |
| 1392 @DocsEditable() | 1254 @DocsEditable() |
| 1393 String get type => _blink.BlinkOscillatorNode.instance.type_Getter_(unwrap_jso
(this)); | 1255 String get type => _blink.BlinkOscillatorNode.instance.type_Getter_(this); |
| 1394 | 1256 |
| 1395 @DomName('OscillatorNode.type') | 1257 @DomName('OscillatorNode.type') |
| 1396 @DocsEditable() | 1258 @DocsEditable() |
| 1397 set type(String value) => _blink.BlinkOscillatorNode.instance.type_Setter_(unw
rap_jso(this), value); | 1259 set type(String value) => _blink.BlinkOscillatorNode.instance.type_Setter_(thi
s, value); |
| 1398 | 1260 |
| 1399 @DomName('OscillatorNode.setPeriodicWave') | 1261 @DomName('OscillatorNode.setPeriodicWave') |
| 1400 @DocsEditable() | 1262 @DocsEditable() |
| 1401 @Experimental() // untriaged | 1263 @Experimental() // untriaged |
| 1402 void setPeriodicWave(PeriodicWave periodicWave) => _blink.BlinkOscillatorNode.
instance.setPeriodicWave_Callback_1_(unwrap_jso(this), unwrap_jso(periodicWave))
; | 1264 void setPeriodicWave(PeriodicWave periodicWave) => _blink.BlinkOscillatorNode.
instance.setPeriodicWave_Callback_1_(this, periodicWave); |
| 1403 | 1265 |
| 1404 void start([num when]) { | 1266 void start([num when]) { |
| 1405 if (when != null) { | 1267 if (when != null) { |
| 1406 _blink.BlinkOscillatorNode.instance.start_Callback_1_(unwrap_jso(this), wh
en); | 1268 _blink.BlinkOscillatorNode.instance.start_Callback_1_(this, when); |
| 1407 return; | 1269 return; |
| 1408 } | 1270 } |
| 1409 _blink.BlinkOscillatorNode.instance.start_Callback_0_(unwrap_jso(this)); | 1271 _blink.BlinkOscillatorNode.instance.start_Callback_0_(this); |
| 1410 return; | 1272 return; |
| 1411 } | 1273 } |
| 1412 | 1274 |
| 1413 void stop([num when]) { | 1275 void stop([num when]) { |
| 1414 if (when != null) { | 1276 if (when != null) { |
| 1415 _blink.BlinkOscillatorNode.instance.stop_Callback_1_(unwrap_jso(this), whe
n); | 1277 _blink.BlinkOscillatorNode.instance.stop_Callback_1_(this, when); |
| 1416 return; | 1278 return; |
| 1417 } | 1279 } |
| 1418 _blink.BlinkOscillatorNode.instance.stop_Callback_0_(unwrap_jso(this)); | 1280 _blink.BlinkOscillatorNode.instance.stop_Callback_0_(this); |
| 1419 return; | 1281 return; |
| 1420 } | 1282 } |
| 1421 | 1283 |
| 1422 /// Stream of `ended` events handled by this [OscillatorNode]. | 1284 /// Stream of `ended` events handled by this [OscillatorNode]. |
| 1423 @DomName('OscillatorNode.onended') | 1285 @DomName('OscillatorNode.onended') |
| 1424 @DocsEditable() | 1286 @DocsEditable() |
| 1425 @Experimental() // untriaged | 1287 @Experimental() // untriaged |
| 1426 Stream<Event> get onEnded => endedEvent.forTarget(this); | 1288 Stream<Event> get onEnded => endedEvent.forTarget(this); |
| 1427 | 1289 |
| 1428 } | 1290 } |
| 1429 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1291 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1430 // for details. All rights reserved. Use of this source code is governed by a | 1292 // for details. All rights reserved. Use of this source code is governed by a |
| 1431 // BSD-style license that can be found in the LICENSE file. | 1293 // BSD-style license that can be found in the LICENSE file. |
| 1432 | 1294 |
| 1433 // WARNING: Do not edit - generated code. | 1295 // WARNING: Do not edit - generated code. |
| 1434 | 1296 |
| 1435 | 1297 |
| 1436 @DocsEditable() | 1298 @DocsEditable() |
| 1437 @DomName('PannerNode') | 1299 @DomName('PannerNode') |
| 1438 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN
ode | 1300 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN
ode |
| 1439 @Experimental() | 1301 @Experimental() |
| 1440 class PannerNode extends AudioNode { | 1302 class PannerNode extends AudioNode { |
| 1441 // To suppress missing implicit constructor warnings. | 1303 // To suppress missing implicit constructor warnings. |
| 1442 factory PannerNode._() { throw new UnsupportedError("Not supported"); } | 1304 factory PannerNode._() { throw new UnsupportedError("Not supported"); } |
| 1443 | 1305 |
| 1444 | 1306 |
| 1445 @Deprecated("Internal Use Only") | 1307 @Deprecated("Internal Use Only") |
| 1446 static PannerNode internalCreatePannerNode() { | 1308 external static Type get instanceRuntimeType; |
| 1447 return new PannerNode._internalWrap(); | |
| 1448 } | |
| 1449 | |
| 1450 external factory PannerNode._internalWrap(); | |
| 1451 | 1309 |
| 1452 @Deprecated("Internal Use Only") | 1310 @Deprecated("Internal Use Only") |
| 1453 PannerNode.internal_() : super.internal_(); | 1311 PannerNode.internal_() : super.internal_(); |
| 1454 | 1312 |
| 1455 | 1313 |
| 1456 @DomName('PannerNode.coneInnerAngle') | 1314 @DomName('PannerNode.coneInnerAngle') |
| 1457 @DocsEditable() | 1315 @DocsEditable() |
| 1458 num get coneInnerAngle => _blink.BlinkPannerNode.instance.coneInnerAngle_Gette
r_(unwrap_jso(this)); | 1316 num get coneInnerAngle => _blink.BlinkPannerNode.instance.coneInnerAngle_Gette
r_(this); |
| 1459 | 1317 |
| 1460 @DomName('PannerNode.coneInnerAngle') | 1318 @DomName('PannerNode.coneInnerAngle') |
| 1461 @DocsEditable() | 1319 @DocsEditable() |
| 1462 set coneInnerAngle(num value) => _blink.BlinkPannerNode.instance.coneInnerAngl
e_Setter_(unwrap_jso(this), value); | 1320 set coneInnerAngle(num value) => _blink.BlinkPannerNode.instance.coneInnerAngl
e_Setter_(this, value); |
| 1463 | 1321 |
| 1464 @DomName('PannerNode.coneOuterAngle') | 1322 @DomName('PannerNode.coneOuterAngle') |
| 1465 @DocsEditable() | 1323 @DocsEditable() |
| 1466 num get coneOuterAngle => _blink.BlinkPannerNode.instance.coneOuterAngle_Gette
r_(unwrap_jso(this)); | 1324 num get coneOuterAngle => _blink.BlinkPannerNode.instance.coneOuterAngle_Gette
r_(this); |
| 1467 | 1325 |
| 1468 @DomName('PannerNode.coneOuterAngle') | 1326 @DomName('PannerNode.coneOuterAngle') |
| 1469 @DocsEditable() | 1327 @DocsEditable() |
| 1470 set coneOuterAngle(num value) => _blink.BlinkPannerNode.instance.coneOuterAngl
e_Setter_(unwrap_jso(this), value); | 1328 set coneOuterAngle(num value) => _blink.BlinkPannerNode.instance.coneOuterAngl
e_Setter_(this, value); |
| 1471 | 1329 |
| 1472 @DomName('PannerNode.coneOuterGain') | 1330 @DomName('PannerNode.coneOuterGain') |
| 1473 @DocsEditable() | 1331 @DocsEditable() |
| 1474 num get coneOuterGain => _blink.BlinkPannerNode.instance.coneOuterGain_Getter_
(unwrap_jso(this)); | 1332 num get coneOuterGain => _blink.BlinkPannerNode.instance.coneOuterGain_Getter_
(this); |
| 1475 | 1333 |
| 1476 @DomName('PannerNode.coneOuterGain') | 1334 @DomName('PannerNode.coneOuterGain') |
| 1477 @DocsEditable() | 1335 @DocsEditable() |
| 1478 set coneOuterGain(num value) => _blink.BlinkPannerNode.instance.coneOuterGain_
Setter_(unwrap_jso(this), value); | 1336 set coneOuterGain(num value) => _blink.BlinkPannerNode.instance.coneOuterGain_
Setter_(this, value); |
| 1479 | 1337 |
| 1480 @DomName('PannerNode.distanceModel') | 1338 @DomName('PannerNode.distanceModel') |
| 1481 @DocsEditable() | 1339 @DocsEditable() |
| 1482 String get distanceModel => _blink.BlinkPannerNode.instance.distanceModel_Gett
er_(unwrap_jso(this)); | 1340 String get distanceModel => _blink.BlinkPannerNode.instance.distanceModel_Gett
er_(this); |
| 1483 | 1341 |
| 1484 @DomName('PannerNode.distanceModel') | 1342 @DomName('PannerNode.distanceModel') |
| 1485 @DocsEditable() | 1343 @DocsEditable() |
| 1486 set distanceModel(String value) => _blink.BlinkPannerNode.instance.distanceMod
el_Setter_(unwrap_jso(this), value); | 1344 set distanceModel(String value) => _blink.BlinkPannerNode.instance.distanceMod
el_Setter_(this, value); |
| 1487 | 1345 |
| 1488 @DomName('PannerNode.maxDistance') | 1346 @DomName('PannerNode.maxDistance') |
| 1489 @DocsEditable() | 1347 @DocsEditable() |
| 1490 num get maxDistance => _blink.BlinkPannerNode.instance.maxDistance_Getter_(unw
rap_jso(this)); | 1348 num get maxDistance => _blink.BlinkPannerNode.instance.maxDistance_Getter_(thi
s); |
| 1491 | 1349 |
| 1492 @DomName('PannerNode.maxDistance') | 1350 @DomName('PannerNode.maxDistance') |
| 1493 @DocsEditable() | 1351 @DocsEditable() |
| 1494 set maxDistance(num value) => _blink.BlinkPannerNode.instance.maxDistance_Sett
er_(unwrap_jso(this), value); | 1352 set maxDistance(num value) => _blink.BlinkPannerNode.instance.maxDistance_Sett
er_(this, value); |
| 1495 | 1353 |
| 1496 @DomName('PannerNode.panningModel') | 1354 @DomName('PannerNode.panningModel') |
| 1497 @DocsEditable() | 1355 @DocsEditable() |
| 1498 String get panningModel => _blink.BlinkPannerNode.instance.panningModel_Getter
_(unwrap_jso(this)); | 1356 String get panningModel => _blink.BlinkPannerNode.instance.panningModel_Getter
_(this); |
| 1499 | 1357 |
| 1500 @DomName('PannerNode.panningModel') | 1358 @DomName('PannerNode.panningModel') |
| 1501 @DocsEditable() | 1359 @DocsEditable() |
| 1502 set panningModel(String value) => _blink.BlinkPannerNode.instance.panningModel
_Setter_(unwrap_jso(this), value); | 1360 set panningModel(String value) => _blink.BlinkPannerNode.instance.panningModel
_Setter_(this, value); |
| 1503 | 1361 |
| 1504 @DomName('PannerNode.refDistance') | 1362 @DomName('PannerNode.refDistance') |
| 1505 @DocsEditable() | 1363 @DocsEditable() |
| 1506 num get refDistance => _blink.BlinkPannerNode.instance.refDistance_Getter_(unw
rap_jso(this)); | 1364 num get refDistance => _blink.BlinkPannerNode.instance.refDistance_Getter_(thi
s); |
| 1507 | 1365 |
| 1508 @DomName('PannerNode.refDistance') | 1366 @DomName('PannerNode.refDistance') |
| 1509 @DocsEditable() | 1367 @DocsEditable() |
| 1510 set refDistance(num value) => _blink.BlinkPannerNode.instance.refDistance_Sett
er_(unwrap_jso(this), value); | 1368 set refDistance(num value) => _blink.BlinkPannerNode.instance.refDistance_Sett
er_(this, value); |
| 1511 | 1369 |
| 1512 @DomName('PannerNode.rolloffFactor') | 1370 @DomName('PannerNode.rolloffFactor') |
| 1513 @DocsEditable() | 1371 @DocsEditable() |
| 1514 num get rolloffFactor => _blink.BlinkPannerNode.instance.rolloffFactor_Getter_
(unwrap_jso(this)); | 1372 num get rolloffFactor => _blink.BlinkPannerNode.instance.rolloffFactor_Getter_
(this); |
| 1515 | 1373 |
| 1516 @DomName('PannerNode.rolloffFactor') | 1374 @DomName('PannerNode.rolloffFactor') |
| 1517 @DocsEditable() | 1375 @DocsEditable() |
| 1518 set rolloffFactor(num value) => _blink.BlinkPannerNode.instance.rolloffFactor_
Setter_(unwrap_jso(this), value); | 1376 set rolloffFactor(num value) => _blink.BlinkPannerNode.instance.rolloffFactor_
Setter_(this, value); |
| 1519 | 1377 |
| 1520 @DomName('PannerNode.setOrientation') | 1378 @DomName('PannerNode.setOrientation') |
| 1521 @DocsEditable() | 1379 @DocsEditable() |
| 1522 void setOrientation(num x, num y, num z) => _blink.BlinkPannerNode.instance.se
tOrientation_Callback_3_(unwrap_jso(this), x, y, z); | 1380 void setOrientation(num x, num y, num z) => _blink.BlinkPannerNode.instance.se
tOrientation_Callback_3_(this, x, y, z); |
| 1523 | 1381 |
| 1524 @DomName('PannerNode.setPosition') | 1382 @DomName('PannerNode.setPosition') |
| 1525 @DocsEditable() | 1383 @DocsEditable() |
| 1526 void setPosition(num x, num y, num z) => _blink.BlinkPannerNode.instance.setPo
sition_Callback_3_(unwrap_jso(this), x, y, z); | 1384 void setPosition(num x, num y, num z) => _blink.BlinkPannerNode.instance.setPo
sition_Callback_3_(this, x, y, z); |
| 1527 | 1385 |
| 1528 @DomName('PannerNode.setVelocity') | 1386 @DomName('PannerNode.setVelocity') |
| 1529 @DocsEditable() | 1387 @DocsEditable() |
| 1530 void setVelocity(num x, num y, num z) => _blink.BlinkPannerNode.instance.setVe
locity_Callback_3_(unwrap_jso(this), x, y, z); | 1388 void setVelocity(num x, num y, num z) => _blink.BlinkPannerNode.instance.setVe
locity_Callback_3_(this, x, y, z); |
| 1531 | 1389 |
| 1532 } | 1390 } |
| 1533 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1391 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1534 // for details. All rights reserved. Use of this source code is governed by a | 1392 // for details. All rights reserved. Use of this source code is governed by a |
| 1535 // BSD-style license that can be found in the LICENSE file. | 1393 // BSD-style license that can be found in the LICENSE file. |
| 1536 | 1394 |
| 1537 // WARNING: Do not edit - generated code. | 1395 // WARNING: Do not edit - generated code. |
| 1538 | 1396 |
| 1539 | 1397 |
| 1540 @DocsEditable() | 1398 @DocsEditable() |
| 1541 @DomName('PeriodicWave') | 1399 @DomName('PeriodicWave') |
| 1542 @Experimental() // untriaged | 1400 @Experimental() // untriaged |
| 1543 class PeriodicWave extends DartHtmlDomObject { | 1401 class PeriodicWave extends DartHtmlDomObject { |
| 1544 // To suppress missing implicit constructor warnings. | 1402 // To suppress missing implicit constructor warnings. |
| 1545 factory PeriodicWave._() { throw new UnsupportedError("Not supported"); } | 1403 factory PeriodicWave._() { throw new UnsupportedError("Not supported"); } |
| 1546 | 1404 |
| 1405 |
| 1547 @Deprecated("Internal Use Only") | 1406 @Deprecated("Internal Use Only") |
| 1548 static PeriodicWave internalCreatePeriodicWave() { | 1407 external static Type get instanceRuntimeType; |
| 1549 return new PeriodicWave._internalWrap(); | |
| 1550 } | |
| 1551 | |
| 1552 factory PeriodicWave._internalWrap() { | |
| 1553 return new PeriodicWave.internal_(); | |
| 1554 } | |
| 1555 | 1408 |
| 1556 @Deprecated("Internal Use Only") | 1409 @Deprecated("Internal Use Only") |
| 1557 PeriodicWave.internal_() { } | 1410 PeriodicWave.internal_() { } |
| 1558 | 1411 |
| 1559 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | |
| 1560 int get hashCode => unwrap_jso(this).hashCode; | |
| 1561 | |
| 1562 } | 1412 } |
| 1563 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1413 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1564 // for details. All rights reserved. Use of this source code is governed by a | 1414 // for details. All rights reserved. Use of this source code is governed by a |
| 1565 // BSD-style license that can be found in the LICENSE file. | 1415 // BSD-style license that can be found in the LICENSE file. |
| 1566 | 1416 |
| 1567 // WARNING: Do not edit - generated code. | 1417 // WARNING: Do not edit - generated code. |
| 1568 | 1418 |
| 1569 | 1419 |
| 1570 @DocsEditable() | 1420 @DocsEditable() |
| 1571 @DomName('ScriptProcessorNode') | 1421 @DomName('ScriptProcessorNode') |
| 1572 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP
rocessorNode | 1422 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP
rocessorNode |
| 1573 @Experimental() | 1423 @Experimental() |
| 1574 class ScriptProcessorNode extends AudioNode { | 1424 class ScriptProcessorNode extends AudioNode { |
| 1575 // To suppress missing implicit constructor warnings. | 1425 // To suppress missing implicit constructor warnings. |
| 1576 factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported");
} | 1426 factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported");
} |
| 1577 | 1427 |
| 1578 /** | 1428 /** |
| 1579 * Static factory designed to expose `audioprocess` events to event | 1429 * Static factory designed to expose `audioprocess` events to event |
| 1580 * handlers that are not necessarily instances of [ScriptProcessorNode]. | 1430 * handlers that are not necessarily instances of [ScriptProcessorNode]. |
| 1581 * | 1431 * |
| 1582 * See [EventStreamProvider] for usage information. | 1432 * See [EventStreamProvider] for usage information. |
| 1583 */ | 1433 */ |
| 1584 @DomName('ScriptProcessorNode.audioprocessEvent') | 1434 @DomName('ScriptProcessorNode.audioprocessEvent') |
| 1585 @DocsEditable() | 1435 @DocsEditable() |
| 1586 @Experimental() // untriaged | 1436 @Experimental() // untriaged |
| 1587 static const EventStreamProvider<AudioProcessingEvent> audioProcessEvent = con
st EventStreamProvider<AudioProcessingEvent>('audioprocess'); | 1437 static const EventStreamProvider<AudioProcessingEvent> audioProcessEvent = con
st EventStreamProvider<AudioProcessingEvent>('audioprocess'); |
| 1588 | 1438 |
| 1589 | 1439 |
| 1590 @Deprecated("Internal Use Only") | 1440 @Deprecated("Internal Use Only") |
| 1591 static ScriptProcessorNode internalCreateScriptProcessorNode() { | 1441 external static Type get instanceRuntimeType; |
| 1592 return new ScriptProcessorNode._internalWrap(); | |
| 1593 } | |
| 1594 | |
| 1595 external factory ScriptProcessorNode._internalWrap(); | |
| 1596 | 1442 |
| 1597 @Deprecated("Internal Use Only") | 1443 @Deprecated("Internal Use Only") |
| 1598 ScriptProcessorNode.internal_() : super.internal_(); | 1444 ScriptProcessorNode.internal_() : super.internal_(); |
| 1599 | 1445 |
| 1600 | 1446 |
| 1601 @DomName('ScriptProcessorNode.bufferSize') | 1447 @DomName('ScriptProcessorNode.bufferSize') |
| 1602 @DocsEditable() | 1448 @DocsEditable() |
| 1603 int get bufferSize => _blink.BlinkScriptProcessorNode.instance.bufferSize_Gett
er_(unwrap_jso(this)); | 1449 int get bufferSize => _blink.BlinkScriptProcessorNode.instance.bufferSize_Gett
er_(this); |
| 1604 | 1450 |
| 1605 @DomName('ScriptProcessorNode.setEventListener') | 1451 @DomName('ScriptProcessorNode.setEventListener') |
| 1606 @DocsEditable() | 1452 @DocsEditable() |
| 1607 @Experimental() // untriaged | 1453 @Experimental() // untriaged |
| 1608 void setEventListener(EventListener eventListener) => _blink.BlinkScriptProces
sorNode.instance.setEventListener_Callback_1_(unwrap_jso(this), unwrap_jso((even
t) => eventListener(wrap_jso(event)))); | 1454 void setEventListener(EventListener eventListener) => _blink.BlinkScriptProces
sorNode.instance.setEventListener_Callback_1_(this, eventListener); |
| 1609 | 1455 |
| 1610 /// Stream of `audioprocess` events handled by this [ScriptProcessorNode]. | 1456 /// Stream of `audioprocess` events handled by this [ScriptProcessorNode]. |
| 1611 /** | 1457 /** |
| 1612 * Get a Stream that fires events when AudioProcessingEvents occur. | 1458 * Get a Stream that fires events when AudioProcessingEvents occur. |
| 1613 * This particular stream is special in that it only allows one listener to a | 1459 * This particular stream is special in that it only allows one listener to a |
| 1614 * given stream. Converting the returned Stream [asBroadcast] will likely ruin | 1460 * given stream. Converting the returned Stream [asBroadcast] will likely ruin |
| 1615 * the soft-real-time properties which which these events are fired and can | 1461 * the soft-real-time properties which which these events are fired and can |
| 1616 * be processed. | 1462 * be processed. |
| 1617 */ | 1463 */ |
| 1618 @DomName('ScriptProcessorNode.onaudioprocess') | 1464 @DomName('ScriptProcessorNode.onaudioprocess') |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1630 | 1476 |
| 1631 @DocsEditable() | 1477 @DocsEditable() |
| 1632 @DomName('StereoPannerNode') | 1478 @DomName('StereoPannerNode') |
| 1633 @Experimental() // untriaged | 1479 @Experimental() // untriaged |
| 1634 class StereoPannerNode extends AudioNode { | 1480 class StereoPannerNode extends AudioNode { |
| 1635 // To suppress missing implicit constructor warnings. | 1481 // To suppress missing implicit constructor warnings. |
| 1636 factory StereoPannerNode._() { throw new UnsupportedError("Not supported"); } | 1482 factory StereoPannerNode._() { throw new UnsupportedError("Not supported"); } |
| 1637 | 1483 |
| 1638 | 1484 |
| 1639 @Deprecated("Internal Use Only") | 1485 @Deprecated("Internal Use Only") |
| 1640 static StereoPannerNode internalCreateStereoPannerNode() { | 1486 external static Type get instanceRuntimeType; |
| 1641 return new StereoPannerNode._internalWrap(); | |
| 1642 } | |
| 1643 | |
| 1644 external factory StereoPannerNode._internalWrap(); | |
| 1645 | 1487 |
| 1646 @Deprecated("Internal Use Only") | 1488 @Deprecated("Internal Use Only") |
| 1647 StereoPannerNode.internal_() : super.internal_(); | 1489 StereoPannerNode.internal_() : super.internal_(); |
| 1648 | 1490 |
| 1649 | 1491 |
| 1650 @DomName('StereoPannerNode.pan') | 1492 @DomName('StereoPannerNode.pan') |
| 1651 @DocsEditable() | 1493 @DocsEditable() |
| 1652 @Experimental() // untriaged | 1494 @Experimental() // untriaged |
| 1653 AudioParam get pan => wrap_jso(_blink.BlinkStereoPannerNode.instance.pan_Gette
r_(unwrap_jso(this))); | 1495 AudioParam get pan => _blink.BlinkStereoPannerNode.instance.pan_Getter_(this); |
| 1654 | 1496 |
| 1655 } | 1497 } |
| 1656 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1498 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1657 // for details. All rights reserved. Use of this source code is governed by a | 1499 // for details. All rights reserved. Use of this source code is governed by a |
| 1658 // BSD-style license that can be found in the LICENSE file. | 1500 // BSD-style license that can be found in the LICENSE file. |
| 1659 | 1501 |
| 1660 // WARNING: Do not edit - generated code. | 1502 // WARNING: Do not edit - generated code. |
| 1661 | 1503 |
| 1662 | 1504 |
| 1663 @DocsEditable() | 1505 @DocsEditable() |
| 1664 @DomName('WaveShaperNode') | 1506 @DomName('WaveShaperNode') |
| 1665 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav
eShaperNode | 1507 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav
eShaperNode |
| 1666 @Experimental() | 1508 @Experimental() |
| 1667 class WaveShaperNode extends AudioNode { | 1509 class WaveShaperNode extends AudioNode { |
| 1668 // To suppress missing implicit constructor warnings. | 1510 // To suppress missing implicit constructor warnings. |
| 1669 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } | 1511 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } |
| 1670 | 1512 |
| 1671 | 1513 |
| 1672 @Deprecated("Internal Use Only") | 1514 @Deprecated("Internal Use Only") |
| 1673 static WaveShaperNode internalCreateWaveShaperNode() { | 1515 external static Type get instanceRuntimeType; |
| 1674 return new WaveShaperNode._internalWrap(); | |
| 1675 } | |
| 1676 | |
| 1677 external factory WaveShaperNode._internalWrap(); | |
| 1678 | 1516 |
| 1679 @Deprecated("Internal Use Only") | 1517 @Deprecated("Internal Use Only") |
| 1680 WaveShaperNode.internal_() : super.internal_(); | 1518 WaveShaperNode.internal_() : super.internal_(); |
| 1681 | 1519 |
| 1682 | 1520 |
| 1683 @DomName('WaveShaperNode.curve') | 1521 @DomName('WaveShaperNode.curve') |
| 1684 @DocsEditable() | 1522 @DocsEditable() |
| 1685 Float32List get curve => wrap_jso(_blink.BlinkWaveShaperNode.instance.curve_Ge
tter_(unwrap_jso(this))); | 1523 Float32List get curve => _blink.BlinkWaveShaperNode.instance.curve_Getter_(thi
s); |
| 1686 | 1524 |
| 1687 @DomName('WaveShaperNode.curve') | 1525 @DomName('WaveShaperNode.curve') |
| 1688 @DocsEditable() | 1526 @DocsEditable() |
| 1689 set curve(Float32List value) => _blink.BlinkWaveShaperNode.instance.curve_Sett
er_(unwrap_jso(this), unwrap_jso(value)); | 1527 set curve(Float32List value) => _blink.BlinkWaveShaperNode.instance.curve_Sett
er_(this, value); |
| 1690 | 1528 |
| 1691 @DomName('WaveShaperNode.oversample') | 1529 @DomName('WaveShaperNode.oversample') |
| 1692 @DocsEditable() | 1530 @DocsEditable() |
| 1693 String get oversample => _blink.BlinkWaveShaperNode.instance.oversample_Getter
_(unwrap_jso(this)); | 1531 String get oversample => _blink.BlinkWaveShaperNode.instance.oversample_Getter
_(this); |
| 1694 | 1532 |
| 1695 @DomName('WaveShaperNode.oversample') | 1533 @DomName('WaveShaperNode.oversample') |
| 1696 @DocsEditable() | 1534 @DocsEditable() |
| 1697 set oversample(String value) => _blink.BlinkWaveShaperNode.instance.oversample
_Setter_(unwrap_jso(this), value); | 1535 set oversample(String value) => _blink.BlinkWaveShaperNode.instance.oversample
_Setter_(this, value); |
| 1698 | 1536 |
| 1699 } | 1537 } |
| OLD | NEW |