| OLD | NEW |
| 1 library dart.dom.web_audio; | 1 library dart.dom.web_audio; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'dart:_collection-dev'; | 5 import 'dart:_collection-dev'; |
| 6 import 'dart:html'; | 6 import 'dart:html'; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:nativewrappers'; | 8 import 'dart:nativewrappers'; |
| 9 import 'dart:typed_data'; | 9 import 'dart:typed_data'; |
| 10 // DO NOT EDIT | 10 // DO NOT EDIT |
| 11 // Auto-generated dart:audio library. | 11 // Auto-generated dart:audio library. |
| 12 | 12 |
| 13 | 13 |
| 14 | 14 |
| 15 | 15 |
| 16 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17 // for details. All rights reserved. Use of this source code is governed by a | 17 // for details. All rights reserved. Use of this source code is governed by a |
| 18 // BSD-style license that can be found in the LICENSE file. | 18 // BSD-style license that can be found in the LICENSE file. |
| 19 | 19 |
| 20 // WARNING: Do not edit - generated code. | 20 // WARNING: Do not edit - generated code. |
| 21 | 21 |
| 22 | 22 |
| 23 @DocsEditable | 23 @DocsEditable() |
| 24 @DomName('AnalyserNode') | 24 @DomName('AnalyserNode') |
| 25 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Analyse
rNode | 25 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Analyse
rNode |
| 26 @Experimental | 26 @Experimental() |
| 27 class AnalyserNode extends AudioNode { | 27 class AnalyserNode extends AudioNode { |
| 28 // To suppress missing implicit constructor warnings. | 28 // To suppress missing implicit constructor warnings. |
| 29 factory AnalyserNode._() { throw new UnsupportedError("Not supported"); } | 29 factory AnalyserNode._() { throw new UnsupportedError("Not supported"); } |
| 30 | 30 |
| 31 @DomName('AnalyserNode.fftSize') | 31 @DomName('AnalyserNode.fftSize') |
| 32 @DocsEditable | 32 @DocsEditable() |
| 33 int get fftSize native "AnalyserNode_fftSize_Getter"; | 33 int get fftSize native "AnalyserNode_fftSize_Getter"; |
| 34 | 34 |
| 35 @DomName('AnalyserNode.fftSize') | 35 @DomName('AnalyserNode.fftSize') |
| 36 @DocsEditable | 36 @DocsEditable() |
| 37 void set fftSize(int value) native "AnalyserNode_fftSize_Setter"; | 37 void set fftSize(int value) native "AnalyserNode_fftSize_Setter"; |
| 38 | 38 |
| 39 @DomName('AnalyserNode.frequencyBinCount') | 39 @DomName('AnalyserNode.frequencyBinCount') |
| 40 @DocsEditable | 40 @DocsEditable() |
| 41 int get frequencyBinCount native "AnalyserNode_frequencyBinCount_Getter"; | 41 int get frequencyBinCount native "AnalyserNode_frequencyBinCount_Getter"; |
| 42 | 42 |
| 43 @DomName('AnalyserNode.maxDecibels') | 43 @DomName('AnalyserNode.maxDecibels') |
| 44 @DocsEditable | 44 @DocsEditable() |
| 45 num get maxDecibels native "AnalyserNode_maxDecibels_Getter"; | 45 num get maxDecibels native "AnalyserNode_maxDecibels_Getter"; |
| 46 | 46 |
| 47 @DomName('AnalyserNode.maxDecibels') | 47 @DomName('AnalyserNode.maxDecibels') |
| 48 @DocsEditable | 48 @DocsEditable() |
| 49 void set maxDecibels(num value) native "AnalyserNode_maxDecibels_Setter"; | 49 void set maxDecibels(num value) native "AnalyserNode_maxDecibels_Setter"; |
| 50 | 50 |
| 51 @DomName('AnalyserNode.minDecibels') | 51 @DomName('AnalyserNode.minDecibels') |
| 52 @DocsEditable | 52 @DocsEditable() |
| 53 num get minDecibels native "AnalyserNode_minDecibels_Getter"; | 53 num get minDecibels native "AnalyserNode_minDecibels_Getter"; |
| 54 | 54 |
| 55 @DomName('AnalyserNode.minDecibels') | 55 @DomName('AnalyserNode.minDecibels') |
| 56 @DocsEditable | 56 @DocsEditable() |
| 57 void set minDecibels(num value) native "AnalyserNode_minDecibels_Setter"; | 57 void set minDecibels(num value) native "AnalyserNode_minDecibels_Setter"; |
| 58 | 58 |
| 59 @DomName('AnalyserNode.smoothingTimeConstant') | 59 @DomName('AnalyserNode.smoothingTimeConstant') |
| 60 @DocsEditable | 60 @DocsEditable() |
| 61 num get smoothingTimeConstant native "AnalyserNode_smoothingTimeConstant_Gette
r"; | 61 num get smoothingTimeConstant native "AnalyserNode_smoothingTimeConstant_Gette
r"; |
| 62 | 62 |
| 63 @DomName('AnalyserNode.smoothingTimeConstant') | 63 @DomName('AnalyserNode.smoothingTimeConstant') |
| 64 @DocsEditable | 64 @DocsEditable() |
| 65 void set smoothingTimeConstant(num value) native "AnalyserNode_smoothingTimeCo
nstant_Setter"; | 65 void set smoothingTimeConstant(num value) native "AnalyserNode_smoothingTimeCo
nstant_Setter"; |
| 66 | 66 |
| 67 @DomName('AnalyserNode.getByteFrequencyData') | 67 @DomName('AnalyserNode.getByteFrequencyData') |
| 68 @DocsEditable | 68 @DocsEditable() |
| 69 void getByteFrequencyData(Uint8List array) native "AnalyserNode_getByteFrequen
cyData_Callback"; | 69 void getByteFrequencyData(Uint8List array) native "AnalyserNode_getByteFrequen
cyData_Callback"; |
| 70 | 70 |
| 71 @DomName('AnalyserNode.getByteTimeDomainData') | 71 @DomName('AnalyserNode.getByteTimeDomainData') |
| 72 @DocsEditable | 72 @DocsEditable() |
| 73 void getByteTimeDomainData(Uint8List array) native "AnalyserNode_getByteTimeDo
mainData_Callback"; | 73 void getByteTimeDomainData(Uint8List array) native "AnalyserNode_getByteTimeDo
mainData_Callback"; |
| 74 | 74 |
| 75 @DomName('AnalyserNode.getFloatFrequencyData') | 75 @DomName('AnalyserNode.getFloatFrequencyData') |
| 76 @DocsEditable | 76 @DocsEditable() |
| 77 void getFloatFrequencyData(Float32List array) native "AnalyserNode_getFloatFre
quencyData_Callback"; | 77 void getFloatFrequencyData(Float32List array) native "AnalyserNode_getFloatFre
quencyData_Callback"; |
| 78 | 78 |
| 79 } | 79 } |
| 80 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 80 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 81 // for details. All rights reserved. Use of this source code is governed by a | 81 // for details. All rights reserved. Use of this source code is governed by a |
| 82 // BSD-style license that can be found in the LICENSE file. | 82 // BSD-style license that can be found in the LICENSE file. |
| 83 | 83 |
| 84 // WARNING: Do not edit - generated code. | 84 // WARNING: Do not edit - generated code. |
| 85 | 85 |
| 86 | 86 |
| 87 @DocsEditable | 87 @DocsEditable() |
| 88 @DomName('AudioBuffer') | 88 @DomName('AudioBuffer') |
| 89 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section | 89 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section |
| 90 @Experimental | 90 @Experimental() |
| 91 class AudioBuffer extends NativeFieldWrapperClass1 { | 91 class AudioBuffer extends NativeFieldWrapperClass1 { |
| 92 | 92 |
| 93 @DomName('AudioBuffer.duration') | 93 @DomName('AudioBuffer.duration') |
| 94 @DocsEditable | 94 @DocsEditable() |
| 95 num get duration native "AudioBuffer_duration_Getter"; | 95 num get duration native "AudioBuffer_duration_Getter"; |
| 96 | 96 |
| 97 @DomName('AudioBuffer.gain') | 97 @DomName('AudioBuffer.gain') |
| 98 @DocsEditable | 98 @DocsEditable() |
| 99 num get gain native "AudioBuffer_gain_Getter"; | 99 num get gain native "AudioBuffer_gain_Getter"; |
| 100 | 100 |
| 101 @DomName('AudioBuffer.gain') | 101 @DomName('AudioBuffer.gain') |
| 102 @DocsEditable | 102 @DocsEditable() |
| 103 void set gain(num value) native "AudioBuffer_gain_Setter"; | 103 void set gain(num value) native "AudioBuffer_gain_Setter"; |
| 104 | 104 |
| 105 @DomName('AudioBuffer.length') | 105 @DomName('AudioBuffer.length') |
| 106 @DocsEditable | 106 @DocsEditable() |
| 107 int get length native "AudioBuffer_length_Getter"; | 107 int get length native "AudioBuffer_length_Getter"; |
| 108 | 108 |
| 109 @DomName('AudioBuffer.numberOfChannels') | 109 @DomName('AudioBuffer.numberOfChannels') |
| 110 @DocsEditable | 110 @DocsEditable() |
| 111 int get numberOfChannels native "AudioBuffer_numberOfChannels_Getter"; | 111 int get numberOfChannels native "AudioBuffer_numberOfChannels_Getter"; |
| 112 | 112 |
| 113 @DomName('AudioBuffer.sampleRate') | 113 @DomName('AudioBuffer.sampleRate') |
| 114 @DocsEditable | 114 @DocsEditable() |
| 115 num get sampleRate native "AudioBuffer_sampleRate_Getter"; | 115 num get sampleRate native "AudioBuffer_sampleRate_Getter"; |
| 116 | 116 |
| 117 @DomName('AudioBuffer.getChannelData') | 117 @DomName('AudioBuffer.getChannelData') |
| 118 @DocsEditable | 118 @DocsEditable() |
| 119 Float32List getChannelData(int channelIndex) native "AudioBuffer_getChannelDat
a_Callback"; | 119 Float32List getChannelData(int channelIndex) native "AudioBuffer_getChannelDat
a_Callback"; |
| 120 | 120 |
| 121 } | 121 } |
| 122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 123 // for details. All rights reserved. Use of this source code is governed by a | 123 // for details. All rights reserved. Use of this source code is governed by a |
| 124 // BSD-style license that can be found in the LICENSE file. | 124 // BSD-style license that can be found in the LICENSE file. |
| 125 | 125 |
| 126 // WARNING: Do not edit - generated code. | 126 // WARNING: Do not edit - generated code. |
| 127 | 127 |
| 128 | 128 |
| 129 @DomName('AudioBufferCallback') | 129 @DomName('AudioBufferCallback') |
| 130 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section | 130 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section |
| 131 @Experimental | 131 @Experimental() |
| 132 typedef void AudioBufferCallback(AudioBuffer audioBuffer); | 132 typedef void AudioBufferCallback(AudioBuffer audioBuffer); |
| 133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 133 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 134 // for details. All rights reserved. Use of this source code is governed by a | 134 // for details. All rights reserved. Use of this source code is governed by a |
| 135 // BSD-style license that can be found in the LICENSE file. | 135 // BSD-style license that can be found in the LICENSE file. |
| 136 | 136 |
| 137 // WARNING: Do not edit - generated code. | 137 // WARNING: Do not edit - generated code. |
| 138 | 138 |
| 139 | 139 |
| 140 @DocsEditable | 140 @DocsEditable() |
| 141 @DomName('AudioBufferSourceNode') | 141 @DomName('AudioBufferSourceNode') |
| 142 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
fferSourceNode-section | 142 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
fferSourceNode-section |
| 143 @Experimental | 143 @Experimental() |
| 144 class AudioBufferSourceNode extends AudioSourceNode { | 144 class AudioBufferSourceNode extends AudioSourceNode { |
| 145 // To suppress missing implicit constructor warnings. | 145 // To suppress missing implicit constructor warnings. |
| 146 factory AudioBufferSourceNode._() { throw new UnsupportedError("Not supported"
); } | 146 factory AudioBufferSourceNode._() { throw new UnsupportedError("Not supported"
); } |
| 147 | 147 |
| 148 @DomName('AudioBufferSourceNode.FINISHED_STATE') | 148 @DomName('AudioBufferSourceNode.FINISHED_STATE') |
| 149 @DocsEditable | 149 @DocsEditable() |
| 150 static const int FINISHED_STATE = 3; | 150 static const int FINISHED_STATE = 3; |
| 151 | 151 |
| 152 @DomName('AudioBufferSourceNode.PLAYING_STATE') | 152 @DomName('AudioBufferSourceNode.PLAYING_STATE') |
| 153 @DocsEditable | 153 @DocsEditable() |
| 154 static const int PLAYING_STATE = 2; | 154 static const int PLAYING_STATE = 2; |
| 155 | 155 |
| 156 @DomName('AudioBufferSourceNode.SCHEDULED_STATE') | 156 @DomName('AudioBufferSourceNode.SCHEDULED_STATE') |
| 157 @DocsEditable | 157 @DocsEditable() |
| 158 static const int SCHEDULED_STATE = 1; | 158 static const int SCHEDULED_STATE = 1; |
| 159 | 159 |
| 160 @DomName('AudioBufferSourceNode.UNSCHEDULED_STATE') | 160 @DomName('AudioBufferSourceNode.UNSCHEDULED_STATE') |
| 161 @DocsEditable | 161 @DocsEditable() |
| 162 static const int UNSCHEDULED_STATE = 0; | 162 static const int UNSCHEDULED_STATE = 0; |
| 163 | 163 |
| 164 @DomName('AudioBufferSourceNode.buffer') | 164 @DomName('AudioBufferSourceNode.buffer') |
| 165 @DocsEditable | 165 @DocsEditable() |
| 166 AudioBuffer get buffer native "AudioBufferSourceNode_buffer_Getter"; | 166 AudioBuffer get buffer native "AudioBufferSourceNode_buffer_Getter"; |
| 167 | 167 |
| 168 @DomName('AudioBufferSourceNode.buffer') | 168 @DomName('AudioBufferSourceNode.buffer') |
| 169 @DocsEditable | 169 @DocsEditable() |
| 170 void set buffer(AudioBuffer value) native "AudioBufferSourceNode_buffer_Setter
"; | 170 void set buffer(AudioBuffer value) native "AudioBufferSourceNode_buffer_Setter
"; |
| 171 | 171 |
| 172 @DomName('AudioBufferSourceNode.gain') | 172 @DomName('AudioBufferSourceNode.gain') |
| 173 @DocsEditable | 173 @DocsEditable() |
| 174 AudioParam get gain native "AudioBufferSourceNode_gain_Getter"; | 174 AudioParam get gain native "AudioBufferSourceNode_gain_Getter"; |
| 175 | 175 |
| 176 @DomName('AudioBufferSourceNode.loop') | 176 @DomName('AudioBufferSourceNode.loop') |
| 177 @DocsEditable | 177 @DocsEditable() |
| 178 bool get loop native "AudioBufferSourceNode_loop_Getter"; | 178 bool get loop native "AudioBufferSourceNode_loop_Getter"; |
| 179 | 179 |
| 180 @DomName('AudioBufferSourceNode.loop') | 180 @DomName('AudioBufferSourceNode.loop') |
| 181 @DocsEditable | 181 @DocsEditable() |
| 182 void set loop(bool value) native "AudioBufferSourceNode_loop_Setter"; | 182 void set loop(bool value) native "AudioBufferSourceNode_loop_Setter"; |
| 183 | 183 |
| 184 @DomName('AudioBufferSourceNode.loopEnd') | 184 @DomName('AudioBufferSourceNode.loopEnd') |
| 185 @DocsEditable | 185 @DocsEditable() |
| 186 num get loopEnd native "AudioBufferSourceNode_loopEnd_Getter"; | 186 num get loopEnd native "AudioBufferSourceNode_loopEnd_Getter"; |
| 187 | 187 |
| 188 @DomName('AudioBufferSourceNode.loopEnd') | 188 @DomName('AudioBufferSourceNode.loopEnd') |
| 189 @DocsEditable | 189 @DocsEditable() |
| 190 void set loopEnd(num value) native "AudioBufferSourceNode_loopEnd_Setter"; | 190 void set loopEnd(num value) native "AudioBufferSourceNode_loopEnd_Setter"; |
| 191 | 191 |
| 192 @DomName('AudioBufferSourceNode.loopStart') | 192 @DomName('AudioBufferSourceNode.loopStart') |
| 193 @DocsEditable | 193 @DocsEditable() |
| 194 num get loopStart native "AudioBufferSourceNode_loopStart_Getter"; | 194 num get loopStart native "AudioBufferSourceNode_loopStart_Getter"; |
| 195 | 195 |
| 196 @DomName('AudioBufferSourceNode.loopStart') | 196 @DomName('AudioBufferSourceNode.loopStart') |
| 197 @DocsEditable | 197 @DocsEditable() |
| 198 void set loopStart(num value) native "AudioBufferSourceNode_loopStart_Setter"; | 198 void set loopStart(num value) native "AudioBufferSourceNode_loopStart_Setter"; |
| 199 | 199 |
| 200 @DomName('AudioBufferSourceNode.playbackRate') | 200 @DomName('AudioBufferSourceNode.playbackRate') |
| 201 @DocsEditable | 201 @DocsEditable() |
| 202 AudioParam get playbackRate native "AudioBufferSourceNode_playbackRate_Getter"
; | 202 AudioParam get playbackRate native "AudioBufferSourceNode_playbackRate_Getter"
; |
| 203 | 203 |
| 204 @DomName('AudioBufferSourceNode.playbackState') | 204 @DomName('AudioBufferSourceNode.playbackState') |
| 205 @DocsEditable | 205 @DocsEditable() |
| 206 int get playbackState native "AudioBufferSourceNode_playbackState_Getter"; | 206 int get playbackState native "AudioBufferSourceNode_playbackState_Getter"; |
| 207 | 207 |
| 208 @DomName('AudioBufferSourceNode.noteGrainOn') | 208 @DomName('AudioBufferSourceNode.noteGrainOn') |
| 209 @DocsEditable | 209 @DocsEditable() |
| 210 void noteGrainOn(num when, num grainOffset, num grainDuration) native "AudioBu
fferSourceNode_noteGrainOn_Callback"; | 210 void noteGrainOn(num when, num grainOffset, num grainDuration) native "AudioBu
fferSourceNode_noteGrainOn_Callback"; |
| 211 | 211 |
| 212 @DomName('AudioBufferSourceNode.noteOff') | 212 @DomName('AudioBufferSourceNode.noteOff') |
| 213 @DocsEditable | 213 @DocsEditable() |
| 214 void noteOff(num when) native "AudioBufferSourceNode_noteOff_Callback"; | 214 void noteOff(num when) native "AudioBufferSourceNode_noteOff_Callback"; |
| 215 | 215 |
| 216 @DomName('AudioBufferSourceNode.noteOn') | 216 @DomName('AudioBufferSourceNode.noteOn') |
| 217 @DocsEditable | 217 @DocsEditable() |
| 218 void noteOn(num when) native "AudioBufferSourceNode_noteOn_Callback"; | 218 void noteOn(num when) native "AudioBufferSourceNode_noteOn_Callback"; |
| 219 | 219 |
| 220 void start(num when, [num grainOffset, num grainDuration]) { | 220 void start(num when, [num grainOffset, num grainDuration]) { |
| 221 if ((when is num || when == null) && grainOffset == null && grainDuration ==
null) { | 221 if ((when is num || when == null) && grainOffset == null && grainDuration ==
null) { |
| 222 _start_1(when); | 222 _start_1(when); |
| 223 return; | 223 return; |
| 224 } | 224 } |
| 225 if ((grainOffset is num || grainOffset == null) && (when is num || when == n
ull) && grainDuration == null) { | 225 if ((grainOffset is num || grainOffset == null) && (when is num || when == n
ull) && grainDuration == null) { |
| 226 _start_2(when, grainOffset); | 226 _start_2(when, grainOffset); |
| 227 return; | 227 return; |
| 228 } | 228 } |
| 229 if ((grainDuration is num || grainDuration == null) && (grainOffset is num |
| grainOffset == null) && (when is num || when == null)) { | 229 if ((grainDuration is num || grainDuration == null) && (grainOffset is num |
| grainOffset == null) && (when is num || when == null)) { |
| 230 _start_3(when, grainOffset, grainDuration); | 230 _start_3(when, grainOffset, grainDuration); |
| 231 return; | 231 return; |
| 232 } | 232 } |
| 233 throw new ArgumentError("Incorrect number or type of arguments"); | 233 throw new ArgumentError("Incorrect number or type of arguments"); |
| 234 } | 234 } |
| 235 | 235 |
| 236 void _start_1(when) native "AudioBufferSourceNode__start_1_Callback"; | 236 void _start_1(when) native "AudioBufferSourceNode__start_1_Callback"; |
| 237 | 237 |
| 238 void _start_2(when, grainOffset) native "AudioBufferSourceNode__start_2_Callba
ck"; | 238 void _start_2(when, grainOffset) native "AudioBufferSourceNode__start_2_Callba
ck"; |
| 239 | 239 |
| 240 void _start_3(when, grainOffset, grainDuration) native "AudioBufferSourceNode_
_start_3_Callback"; | 240 void _start_3(when, grainOffset, grainDuration) native "AudioBufferSourceNode_
_start_3_Callback"; |
| 241 | 241 |
| 242 @DomName('AudioBufferSourceNode.stop') | 242 @DomName('AudioBufferSourceNode.stop') |
| 243 @DocsEditable | 243 @DocsEditable() |
| 244 void stop(num when) native "AudioBufferSourceNode_stop_Callback"; | 244 void stop(num when) native "AudioBufferSourceNode_stop_Callback"; |
| 245 | 245 |
| 246 } | 246 } |
| 247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 247 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 248 // for details. All rights reserved. Use of this source code is governed by a | 248 // for details. All rights reserved. Use of this source code is governed by a |
| 249 // BSD-style license that can be found in the LICENSE file. | 249 // BSD-style license that can be found in the LICENSE file. |
| 250 | 250 |
| 251 | 251 |
| 252 @DomName('AudioContext') | 252 @DomName('AudioContext') |
| 253 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo
ntext-section | 253 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo
ntext-section |
| 254 @Experimental | 254 @Experimental() |
| 255 class AudioContext extends EventTarget { | 255 class AudioContext extends EventTarget { |
| 256 // To suppress missing implicit constructor warnings. | 256 // To suppress missing implicit constructor warnings. |
| 257 factory AudioContext._() { throw new UnsupportedError("Not supported"); } | 257 factory AudioContext._() { throw new UnsupportedError("Not supported"); } |
| 258 | 258 |
| 259 @DomName('AudioContext.completeEvent') | 259 @DomName('AudioContext.completeEvent') |
| 260 @DocsEditable | 260 @DocsEditable() |
| 261 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); | 261 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); |
| 262 | 262 |
| 263 @DomName('AudioContext.AudioContext') | 263 @DomName('AudioContext.AudioContext') |
| 264 @DocsEditable | 264 @DocsEditable() |
| 265 factory AudioContext() => _create(); | 265 factory AudioContext() => _create(); |
| 266 | 266 |
| 267 @DocsEditable | 267 @DocsEditable() |
| 268 static AudioContext _create() native "AudioContext_constructorCallback"; | 268 static AudioContext _create() native "AudioContext_constructorCallback"; |
| 269 | 269 |
| 270 /// Checks if this type is supported on the current platform. | 270 /// Checks if this type is supported on the current platform. |
| 271 static bool get supported => true; | 271 static bool get supported => true; |
| 272 | 272 |
| 273 @DomName('AudioContext.activeSourceCount') | 273 @DomName('AudioContext.activeSourceCount') |
| 274 @DocsEditable | 274 @DocsEditable() |
| 275 int get activeSourceCount native "AudioContext_activeSourceCount_Getter"; | 275 int get activeSourceCount native "AudioContext_activeSourceCount_Getter"; |
| 276 | 276 |
| 277 @DomName('AudioContext.currentTime') | 277 @DomName('AudioContext.currentTime') |
| 278 @DocsEditable | 278 @DocsEditable() |
| 279 num get currentTime native "AudioContext_currentTime_Getter"; | 279 num get currentTime native "AudioContext_currentTime_Getter"; |
| 280 | 280 |
| 281 @DomName('AudioContext.destination') | 281 @DomName('AudioContext.destination') |
| 282 @DocsEditable | 282 @DocsEditable() |
| 283 AudioDestinationNode get destination native "AudioContext_destination_Getter"; | 283 AudioDestinationNode get destination native "AudioContext_destination_Getter"; |
| 284 | 284 |
| 285 @DomName('AudioContext.listener') | 285 @DomName('AudioContext.listener') |
| 286 @DocsEditable | 286 @DocsEditable() |
| 287 AudioListener get listener native "AudioContext_listener_Getter"; | 287 AudioListener get listener native "AudioContext_listener_Getter"; |
| 288 | 288 |
| 289 @DomName('AudioContext.sampleRate') | 289 @DomName('AudioContext.sampleRate') |
| 290 @DocsEditable | 290 @DocsEditable() |
| 291 num get sampleRate native "AudioContext_sampleRate_Getter"; | 291 num get sampleRate native "AudioContext_sampleRate_Getter"; |
| 292 | 292 |
| 293 @DomName('AudioContext.createAnalyser') | 293 @DomName('AudioContext.createAnalyser') |
| 294 @DocsEditable | 294 @DocsEditable() |
| 295 AnalyserNode createAnalyser() native "AudioContext_createAnalyser_Callback"; | 295 AnalyserNode createAnalyser() native "AudioContext_createAnalyser_Callback"; |
| 296 | 296 |
| 297 @DomName('AudioContext.createBiquadFilter') | 297 @DomName('AudioContext.createBiquadFilter') |
| 298 @DocsEditable | 298 @DocsEditable() |
| 299 BiquadFilterNode createBiquadFilter() native "AudioContext_createBiquadFilter_
Callback"; | 299 BiquadFilterNode createBiquadFilter() native "AudioContext_createBiquadFilter_
Callback"; |
| 300 | 300 |
| 301 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram
es, [num sampleRate]) { | 301 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram
es, [num sampleRate]) { |
| 302 if ((sampleRate is num || sampleRate == null) && (mixToMono_OR_numberOfFrame
s is int || mixToMono_OR_numberOfFrames == null) && (buffer_OR_numberOfChannels
is int || buffer_OR_numberOfChannels == null)) { | 302 if ((sampleRate is num || sampleRate == null) && (mixToMono_OR_numberOfFrame
s is int || mixToMono_OR_numberOfFrames == null) && (buffer_OR_numberOfChannels
is int || buffer_OR_numberOfChannels == null)) { |
| 303 return _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr
ames, sampleRate); | 303 return _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr
ames, sampleRate); |
| 304 } | 304 } |
| 305 if ((mixToMono_OR_numberOfFrames is bool || mixToMono_OR_numberOfFrames == n
ull) && (buffer_OR_numberOfChannels is ByteBuffer || buffer_OR_numberOfChannels
== null) && sampleRate == null) { | 305 if ((mixToMono_OR_numberOfFrames is bool || mixToMono_OR_numberOfFrames == n
ull) && (buffer_OR_numberOfChannels is ByteBuffer || buffer_OR_numberOfChannels
== null) && sampleRate == null) { |
| 306 return _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr
ames); | 306 return _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr
ames); |
| 307 } | 307 } |
| 308 throw new ArgumentError("Incorrect number or type of arguments"); | 308 throw new ArgumentError("Incorrect number or type of arguments"); |
| 309 } | 309 } |
| 310 | 310 |
| 311 AudioBuffer _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF
rames, sampleRate) native "AudioContext__createBuffer_1_Callback"; | 311 AudioBuffer _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF
rames, sampleRate) native "AudioContext__createBuffer_1_Callback"; |
| 312 | 312 |
| 313 AudioBuffer _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF
rames) native "AudioContext__createBuffer_2_Callback"; | 313 AudioBuffer _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF
rames) native "AudioContext__createBuffer_2_Callback"; |
| 314 | 314 |
| 315 @DomName('AudioContext.createBufferSource') | 315 @DomName('AudioContext.createBufferSource') |
| 316 @DocsEditable | 316 @DocsEditable() |
| 317 AudioBufferSourceNode createBufferSource() native "AudioContext_createBufferSo
urce_Callback"; | 317 AudioBufferSourceNode createBufferSource() native "AudioContext_createBufferSo
urce_Callback"; |
| 318 | 318 |
| 319 ChannelMergerNode createChannelMerger([int numberOfInputs]) { | 319 ChannelMergerNode createChannelMerger([int numberOfInputs]) { |
| 320 if (numberOfInputs != null) { | 320 if (numberOfInputs != null) { |
| 321 return _createChannelMerger_1(numberOfInputs); | 321 return _createChannelMerger_1(numberOfInputs); |
| 322 } | 322 } |
| 323 return _createChannelMerger_2(); | 323 return _createChannelMerger_2(); |
| 324 } | 324 } |
| 325 | 325 |
| 326 ChannelMergerNode _createChannelMerger_1(numberOfInputs) native "AudioContext_
_createChannelMerger_1_Callback"; | 326 ChannelMergerNode _createChannelMerger_1(numberOfInputs) native "AudioContext_
_createChannelMerger_1_Callback"; |
| 327 | 327 |
| 328 ChannelMergerNode _createChannelMerger_2() native "AudioContext__createChannel
Merger_2_Callback"; | 328 ChannelMergerNode _createChannelMerger_2() native "AudioContext__createChannel
Merger_2_Callback"; |
| 329 | 329 |
| 330 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) { | 330 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) { |
| 331 if (numberOfOutputs != null) { | 331 if (numberOfOutputs != null) { |
| 332 return _createChannelSplitter_1(numberOfOutputs); | 332 return _createChannelSplitter_1(numberOfOutputs); |
| 333 } | 333 } |
| 334 return _createChannelSplitter_2(); | 334 return _createChannelSplitter_2(); |
| 335 } | 335 } |
| 336 | 336 |
| 337 ChannelSplitterNode _createChannelSplitter_1(numberOfOutputs) native "AudioCon
text__createChannelSplitter_1_Callback"; | 337 ChannelSplitterNode _createChannelSplitter_1(numberOfOutputs) native "AudioCon
text__createChannelSplitter_1_Callback"; |
| 338 | 338 |
| 339 ChannelSplitterNode _createChannelSplitter_2() native "AudioContext__createCha
nnelSplitter_2_Callback"; | 339 ChannelSplitterNode _createChannelSplitter_2() native "AudioContext__createCha
nnelSplitter_2_Callback"; |
| 340 | 340 |
| 341 @DomName('AudioContext.createConvolver') | 341 @DomName('AudioContext.createConvolver') |
| 342 @DocsEditable | 342 @DocsEditable() |
| 343 ConvolverNode createConvolver() native "AudioContext_createConvolver_Callback"
; | 343 ConvolverNode createConvolver() native "AudioContext_createConvolver_Callback"
; |
| 344 | 344 |
| 345 DelayNode createDelay([num maxDelayTime]) { | 345 DelayNode createDelay([num maxDelayTime]) { |
| 346 if (maxDelayTime != null) { | 346 if (maxDelayTime != null) { |
| 347 return _createDelay_1(maxDelayTime); | 347 return _createDelay_1(maxDelayTime); |
| 348 } | 348 } |
| 349 return _createDelay_2(); | 349 return _createDelay_2(); |
| 350 } | 350 } |
| 351 | 351 |
| 352 DelayNode _createDelay_1(maxDelayTime) native "AudioContext__createDelay_1_Cal
lback"; | 352 DelayNode _createDelay_1(maxDelayTime) native "AudioContext__createDelay_1_Cal
lback"; |
| 353 | 353 |
| 354 DelayNode _createDelay_2() native "AudioContext__createDelay_2_Callback"; | 354 DelayNode _createDelay_2() native "AudioContext__createDelay_2_Callback"; |
| 355 | 355 |
| 356 DelayNode createDelayNode([num maxDelayTime]) { | 356 DelayNode createDelayNode([num maxDelayTime]) { |
| 357 if (maxDelayTime != null) { | 357 if (maxDelayTime != null) { |
| 358 return _createDelayNode_1(maxDelayTime); | 358 return _createDelayNode_1(maxDelayTime); |
| 359 } | 359 } |
| 360 return _createDelayNode_2(); | 360 return _createDelayNode_2(); |
| 361 } | 361 } |
| 362 | 362 |
| 363 DelayNode _createDelayNode_1(maxDelayTime) native "AudioContext__createDelayNo
de_1_Callback"; | 363 DelayNode _createDelayNode_1(maxDelayTime) native "AudioContext__createDelayNo
de_1_Callback"; |
| 364 | 364 |
| 365 DelayNode _createDelayNode_2() native "AudioContext__createDelayNode_2_Callbac
k"; | 365 DelayNode _createDelayNode_2() native "AudioContext__createDelayNode_2_Callbac
k"; |
| 366 | 366 |
| 367 @DomName('AudioContext.createDynamicsCompressor') | 367 @DomName('AudioContext.createDynamicsCompressor') |
| 368 @DocsEditable | 368 @DocsEditable() |
| 369 DynamicsCompressorNode createDynamicsCompressor() native "AudioContext_createD
ynamicsCompressor_Callback"; | 369 DynamicsCompressorNode createDynamicsCompressor() native "AudioContext_createD
ynamicsCompressor_Callback"; |
| 370 | 370 |
| 371 @DomName('AudioContext.createGain') | 371 @DomName('AudioContext.createGain') |
| 372 @DocsEditable | 372 @DocsEditable() |
| 373 GainNode createGain() native "AudioContext_createGain_Callback"; | 373 GainNode createGain() native "AudioContext_createGain_Callback"; |
| 374 | 374 |
| 375 @DomName('AudioContext.createGainNode') | 375 @DomName('AudioContext.createGainNode') |
| 376 @DocsEditable | 376 @DocsEditable() |
| 377 GainNode createGainNode() native "AudioContext_createGainNode_Callback"; | 377 GainNode createGainNode() native "AudioContext_createGainNode_Callback"; |
| 378 | 378 |
| 379 ScriptProcessorNode createJavaScriptNode(int bufferSize, [int numberOfInputCha
nnels, int numberOfOutputChannels]) { | 379 ScriptProcessorNode createJavaScriptNode(int bufferSize, [int numberOfInputCha
nnels, int numberOfOutputChannels]) { |
| 380 if (numberOfOutputChannels != null) { | 380 if (numberOfOutputChannels != null) { |
| 381 return _createJavaScriptNode_1(bufferSize, numberOfInputChannels, numberOf
OutputChannels); | 381 return _createJavaScriptNode_1(bufferSize, numberOfInputChannels, numberOf
OutputChannels); |
| 382 } | 382 } |
| 383 if (numberOfInputChannels != null) { | 383 if (numberOfInputChannels != null) { |
| 384 return _createJavaScriptNode_2(bufferSize, numberOfInputChannels); | 384 return _createJavaScriptNode_2(bufferSize, numberOfInputChannels); |
| 385 } | 385 } |
| 386 return _createJavaScriptNode_3(bufferSize); | 386 return _createJavaScriptNode_3(bufferSize); |
| 387 } | 387 } |
| 388 | 388 |
| 389 ScriptProcessorNode _createJavaScriptNode_1(bufferSize, numberOfInputChannels,
numberOfOutputChannels) native "AudioContext__createJavaScriptNode_1_Callback"; | 389 ScriptProcessorNode _createJavaScriptNode_1(bufferSize, numberOfInputChannels,
numberOfOutputChannels) native "AudioContext__createJavaScriptNode_1_Callback"; |
| 390 | 390 |
| 391 ScriptProcessorNode _createJavaScriptNode_2(bufferSize, numberOfInputChannels)
native "AudioContext__createJavaScriptNode_2_Callback"; | 391 ScriptProcessorNode _createJavaScriptNode_2(bufferSize, numberOfInputChannels)
native "AudioContext__createJavaScriptNode_2_Callback"; |
| 392 | 392 |
| 393 ScriptProcessorNode _createJavaScriptNode_3(bufferSize) native "AudioContext__
createJavaScriptNode_3_Callback"; | 393 ScriptProcessorNode _createJavaScriptNode_3(bufferSize) native "AudioContext__
createJavaScriptNode_3_Callback"; |
| 394 | 394 |
| 395 @DomName('AudioContext.createMediaElementSource') | 395 @DomName('AudioContext.createMediaElementSource') |
| 396 @DocsEditable | 396 @DocsEditable() |
| 397 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native "AudioContext_createMediaElementSource_Callback"; | 397 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native "AudioContext_createMediaElementSource_Callback"; |
| 398 | 398 |
| 399 @DomName('AudioContext.createMediaStreamDestination') | 399 @DomName('AudioContext.createMediaStreamDestination') |
| 400 @DocsEditable | 400 @DocsEditable() |
| 401 MediaStreamAudioDestinationNode createMediaStreamDestination() native "AudioCo
ntext_createMediaStreamDestination_Callback"; | 401 MediaStreamAudioDestinationNode createMediaStreamDestination() native "AudioCo
ntext_createMediaStreamDestination_Callback"; |
| 402 | 402 |
| 403 @DomName('AudioContext.createMediaStreamSource') | 403 @DomName('AudioContext.createMediaStreamSource') |
| 404 @DocsEditable | 404 @DocsEditable() |
| 405 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na
tive "AudioContext_createMediaStreamSource_Callback"; | 405 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na
tive "AudioContext_createMediaStreamSource_Callback"; |
| 406 | 406 |
| 407 @DomName('AudioContext.createOscillator') | 407 @DomName('AudioContext.createOscillator') |
| 408 @DocsEditable | 408 @DocsEditable() |
| 409 OscillatorNode createOscillator() native "AudioContext_createOscillator_Callba
ck"; | 409 OscillatorNode createOscillator() native "AudioContext_createOscillator_Callba
ck"; |
| 410 | 410 |
| 411 @DomName('AudioContext.createPanner') | 411 @DomName('AudioContext.createPanner') |
| 412 @DocsEditable | 412 @DocsEditable() |
| 413 PannerNode createPanner() native "AudioContext_createPanner_Callback"; | 413 PannerNode createPanner() native "AudioContext_createPanner_Callback"; |
| 414 | 414 |
| 415 ScriptProcessorNode createScriptProcessor(int bufferSize, [int numberOfInputCh
annels, int numberOfOutputChannels]) { | 415 ScriptProcessorNode createScriptProcessor(int bufferSize, [int numberOfInputCh
annels, int numberOfOutputChannels]) { |
| 416 if (numberOfOutputChannels != null) { | 416 if (numberOfOutputChannels != null) { |
| 417 return _createScriptProcessor_1(bufferSize, numberOfInputChannels, numberO
fOutputChannels); | 417 return _createScriptProcessor_1(bufferSize, numberOfInputChannels, numberO
fOutputChannels); |
| 418 } | 418 } |
| 419 if (numberOfInputChannels != null) { | 419 if (numberOfInputChannels != null) { |
| 420 return _createScriptProcessor_2(bufferSize, numberOfInputChannels); | 420 return _createScriptProcessor_2(bufferSize, numberOfInputChannels); |
| 421 } | 421 } |
| 422 return _createScriptProcessor_3(bufferSize); | 422 return _createScriptProcessor_3(bufferSize); |
| 423 } | 423 } |
| 424 | 424 |
| 425 ScriptProcessorNode _createScriptProcessor_1(bufferSize, numberOfInputChannels
, numberOfOutputChannels) native "AudioContext__createScriptProcessor_1_Callback
"; | 425 ScriptProcessorNode _createScriptProcessor_1(bufferSize, numberOfInputChannels
, numberOfOutputChannels) native "AudioContext__createScriptProcessor_1_Callback
"; |
| 426 | 426 |
| 427 ScriptProcessorNode _createScriptProcessor_2(bufferSize, numberOfInputChannels
) native "AudioContext__createScriptProcessor_2_Callback"; | 427 ScriptProcessorNode _createScriptProcessor_2(bufferSize, numberOfInputChannels
) native "AudioContext__createScriptProcessor_2_Callback"; |
| 428 | 428 |
| 429 ScriptProcessorNode _createScriptProcessor_3(bufferSize) native "AudioContext_
_createScriptProcessor_3_Callback"; | 429 ScriptProcessorNode _createScriptProcessor_3(bufferSize) native "AudioContext_
_createScriptProcessor_3_Callback"; |
| 430 | 430 |
| 431 @DomName('AudioContext.createWaveShaper') | 431 @DomName('AudioContext.createWaveShaper') |
| 432 @DocsEditable | 432 @DocsEditable() |
| 433 WaveShaperNode createWaveShaper() native "AudioContext_createWaveShaper_Callba
ck"; | 433 WaveShaperNode createWaveShaper() native "AudioContext_createWaveShaper_Callba
ck"; |
| 434 | 434 |
| 435 @DomName('AudioContext.createWaveTable') | 435 @DomName('AudioContext.createWaveTable') |
| 436 @DocsEditable | 436 @DocsEditable() |
| 437 WaveTable createWaveTable(Float32List real, Float32List imag) native "AudioCon
text_createWaveTable_Callback"; | 437 WaveTable createWaveTable(Float32List real, Float32List imag) native "AudioCon
text_createWaveTable_Callback"; |
| 438 | 438 |
| 439 @DomName('AudioContext.decodeAudioData') | 439 @DomName('AudioContext.decodeAudioData') |
| 440 @DocsEditable | 440 @DocsEditable() |
| 441 void decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallback
, [AudioBufferCallback errorCallback]) native "AudioContext_decodeAudioData_Call
back"; | 441 void decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallback
, [AudioBufferCallback errorCallback]) native "AudioContext_decodeAudioData_Call
back"; |
| 442 | 442 |
| 443 @DomName('AudioContext.startRendering') | 443 @DomName('AudioContext.startRendering') |
| 444 @DocsEditable | 444 @DocsEditable() |
| 445 void startRendering() native "AudioContext_startRendering_Callback"; | 445 void startRendering() native "AudioContext_startRendering_Callback"; |
| 446 | 446 |
| 447 @DomName('AudioContext.oncomplete') | 447 @DomName('AudioContext.oncomplete') |
| 448 @DocsEditable | 448 @DocsEditable() |
| 449 Stream<Event> get onComplete => completeEvent.forTarget(this); | 449 Stream<Event> get onComplete => completeEvent.forTarget(this); |
| 450 | 450 |
| 451 } | 451 } |
| 452 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 452 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 453 // for details. All rights reserved. Use of this source code is governed by a | 453 // for details. All rights reserved. Use of this source code is governed by a |
| 454 // BSD-style license that can be found in the LICENSE file. | 454 // BSD-style license that can be found in the LICENSE file. |
| 455 | 455 |
| 456 // WARNING: Do not edit - generated code. | 456 // WARNING: Do not edit - generated code. |
| 457 | 457 |
| 458 | 458 |
| 459 @DocsEditable | 459 @DocsEditable() |
| 460 @DomName('AudioDestinationNode') | 460 @DomName('AudioDestinationNode') |
| 461 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe
stinationNode-section | 461 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe
stinationNode-section |
| 462 @Experimental | 462 @Experimental() |
| 463 class AudioDestinationNode extends AudioNode { | 463 class AudioDestinationNode extends AudioNode { |
| 464 // To suppress missing implicit constructor warnings. | 464 // To suppress missing implicit constructor warnings. |
| 465 factory AudioDestinationNode._() { throw new UnsupportedError("Not supported")
; } | 465 factory AudioDestinationNode._() { throw new UnsupportedError("Not supported")
; } |
| 466 | 466 |
| 467 @DomName('AudioDestinationNode.maxChannelCount') | 467 @DomName('AudioDestinationNode.maxChannelCount') |
| 468 @DocsEditable | 468 @DocsEditable() |
| 469 int get maxChannelCount native "AudioDestinationNode_maxChannelCount_Getter"; | 469 int get maxChannelCount native "AudioDestinationNode_maxChannelCount_Getter"; |
| 470 | 470 |
| 471 } | 471 } |
| 472 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 472 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 473 // for details. All rights reserved. Use of this source code is governed by a | 473 // for details. All rights reserved. Use of this source code is governed by a |
| 474 // BSD-style license that can be found in the LICENSE file. | 474 // BSD-style license that can be found in the LICENSE file. |
| 475 | 475 |
| 476 // WARNING: Do not edit - generated code. | 476 // WARNING: Do not edit - generated code. |
| 477 | 477 |
| 478 | 478 |
| 479 @DocsEditable | 479 @DocsEditable() |
| 480 @DomName('AudioListener') | 480 @DomName('AudioListener') |
| 481 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi
stener-section | 481 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi
stener-section |
| 482 @Experimental | 482 @Experimental() |
| 483 class AudioListener extends NativeFieldWrapperClass1 { | 483 class AudioListener extends NativeFieldWrapperClass1 { |
| 484 | 484 |
| 485 @DomName('AudioListener.dopplerFactor') | 485 @DomName('AudioListener.dopplerFactor') |
| 486 @DocsEditable | 486 @DocsEditable() |
| 487 num get dopplerFactor native "AudioListener_dopplerFactor_Getter"; | 487 num get dopplerFactor native "AudioListener_dopplerFactor_Getter"; |
| 488 | 488 |
| 489 @DomName('AudioListener.dopplerFactor') | 489 @DomName('AudioListener.dopplerFactor') |
| 490 @DocsEditable | 490 @DocsEditable() |
| 491 void set dopplerFactor(num value) native "AudioListener_dopplerFactor_Setter"; | 491 void set dopplerFactor(num value) native "AudioListener_dopplerFactor_Setter"; |
| 492 | 492 |
| 493 @DomName('AudioListener.speedOfSound') | 493 @DomName('AudioListener.speedOfSound') |
| 494 @DocsEditable | 494 @DocsEditable() |
| 495 num get speedOfSound native "AudioListener_speedOfSound_Getter"; | 495 num get speedOfSound native "AudioListener_speedOfSound_Getter"; |
| 496 | 496 |
| 497 @DomName('AudioListener.speedOfSound') | 497 @DomName('AudioListener.speedOfSound') |
| 498 @DocsEditable | 498 @DocsEditable() |
| 499 void set speedOfSound(num value) native "AudioListener_speedOfSound_Setter"; | 499 void set speedOfSound(num value) native "AudioListener_speedOfSound_Setter"; |
| 500 | 500 |
| 501 @DomName('AudioListener.setOrientation') | 501 @DomName('AudioListener.setOrientation') |
| 502 @DocsEditable | 502 @DocsEditable() |
| 503 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native "Au
dioListener_setOrientation_Callback"; | 503 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native "Au
dioListener_setOrientation_Callback"; |
| 504 | 504 |
| 505 @DomName('AudioListener.setPosition') | 505 @DomName('AudioListener.setPosition') |
| 506 @DocsEditable | 506 @DocsEditable() |
| 507 void setPosition(num x, num y, num z) native "AudioListener_setPosition_Callba
ck"; | 507 void setPosition(num x, num y, num z) native "AudioListener_setPosition_Callba
ck"; |
| 508 | 508 |
| 509 @DomName('AudioListener.setVelocity') | 509 @DomName('AudioListener.setVelocity') |
| 510 @DocsEditable | 510 @DocsEditable() |
| 511 void setVelocity(num x, num y, num z) native "AudioListener_setVelocity_Callba
ck"; | 511 void setVelocity(num x, num y, num z) native "AudioListener_setVelocity_Callba
ck"; |
| 512 | 512 |
| 513 } | 513 } |
| 514 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 514 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 515 // for details. All rights reserved. Use of this source code is governed by a | 515 // for details. All rights reserved. Use of this source code is governed by a |
| 516 // BSD-style license that can be found in the LICENSE file. | 516 // BSD-style license that can be found in the LICENSE file. |
| 517 | 517 |
| 518 // WARNING: Do not edit - generated code. | 518 // WARNING: Do not edit - generated code. |
| 519 | 519 |
| 520 | 520 |
| 521 @DocsEditable | 521 @DocsEditable() |
| 522 @DomName('AudioNode') | 522 @DomName('AudioNode') |
| 523 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo
de-section | 523 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo
de-section |
| 524 @Experimental | 524 @Experimental() |
| 525 class AudioNode extends EventTarget { | 525 class AudioNode extends EventTarget { |
| 526 // To suppress missing implicit constructor warnings. | 526 // To suppress missing implicit constructor warnings. |
| 527 factory AudioNode._() { throw new UnsupportedError("Not supported"); } | 527 factory AudioNode._() { throw new UnsupportedError("Not supported"); } |
| 528 | 528 |
| 529 @DomName('AudioNode.channelCount') | 529 @DomName('AudioNode.channelCount') |
| 530 @DocsEditable | 530 @DocsEditable() |
| 531 int get channelCount native "AudioNode_channelCount_Getter"; | 531 int get channelCount native "AudioNode_channelCount_Getter"; |
| 532 | 532 |
| 533 @DomName('AudioNode.channelCount') | 533 @DomName('AudioNode.channelCount') |
| 534 @DocsEditable | 534 @DocsEditable() |
| 535 void set channelCount(int value) native "AudioNode_channelCount_Setter"; | 535 void set channelCount(int value) native "AudioNode_channelCount_Setter"; |
| 536 | 536 |
| 537 @DomName('AudioNode.channelCountMode') | 537 @DomName('AudioNode.channelCountMode') |
| 538 @DocsEditable | 538 @DocsEditable() |
| 539 String get channelCountMode native "AudioNode_channelCountMode_Getter"; | 539 String get channelCountMode native "AudioNode_channelCountMode_Getter"; |
| 540 | 540 |
| 541 @DomName('AudioNode.channelCountMode') | 541 @DomName('AudioNode.channelCountMode') |
| 542 @DocsEditable | 542 @DocsEditable() |
| 543 void set channelCountMode(String value) native "AudioNode_channelCountMode_Set
ter"; | 543 void set channelCountMode(String value) native "AudioNode_channelCountMode_Set
ter"; |
| 544 | 544 |
| 545 @DomName('AudioNode.channelInterpretation') | 545 @DomName('AudioNode.channelInterpretation') |
| 546 @DocsEditable | 546 @DocsEditable() |
| 547 String get channelInterpretation native "AudioNode_channelInterpretation_Gette
r"; | 547 String get channelInterpretation native "AudioNode_channelInterpretation_Gette
r"; |
| 548 | 548 |
| 549 @DomName('AudioNode.channelInterpretation') | 549 @DomName('AudioNode.channelInterpretation') |
| 550 @DocsEditable | 550 @DocsEditable() |
| 551 void set channelInterpretation(String value) native "AudioNode_channelInterpre
tation_Setter"; | 551 void set channelInterpretation(String value) native "AudioNode_channelInterpre
tation_Setter"; |
| 552 | 552 |
| 553 @DomName('AudioNode.context') | 553 @DomName('AudioNode.context') |
| 554 @DocsEditable | 554 @DocsEditable() |
| 555 AudioContext get context native "AudioNode_context_Getter"; | 555 AudioContext get context native "AudioNode_context_Getter"; |
| 556 | 556 |
| 557 @DomName('AudioNode.numberOfInputs') | 557 @DomName('AudioNode.numberOfInputs') |
| 558 @DocsEditable | 558 @DocsEditable() |
| 559 int get numberOfInputs native "AudioNode_numberOfInputs_Getter"; | 559 int get numberOfInputs native "AudioNode_numberOfInputs_Getter"; |
| 560 | 560 |
| 561 @DomName('AudioNode.numberOfOutputs') | 561 @DomName('AudioNode.numberOfOutputs') |
| 562 @DocsEditable | 562 @DocsEditable() |
| 563 int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter"; | 563 int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter"; |
| 564 | 564 |
| 565 @DomName('AudioNode.addEventListener') | 565 @DomName('AudioNode.addEventListener') |
| 566 @DocsEditable | 566 @DocsEditable() |
| 567 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "AudioNode_addEventListener_Callback"; | 567 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "AudioNode_addEventListener_Callback"; |
| 568 | 568 |
| 569 void connect(destination, int output, [int input]) { | 569 void connect(destination, int output, [int input]) { |
| 570 if ((input is int || input == null) && (output is int || output == null) &&
(destination is AudioNode || destination == null)) { | 570 if ((input is int || input == null) && (output is int || output == null) &&
(destination is AudioNode || destination == null)) { |
| 571 _connect_1(destination, output, input); | 571 _connect_1(destination, output, input); |
| 572 return; | 572 return; |
| 573 } | 573 } |
| 574 if ((output is int || output == null) && (destination is AudioParam || desti
nation == null) && input == null) { | 574 if ((output is int || output == null) && (destination is AudioParam || desti
nation == null) && input == null) { |
| 575 _connect_2(destination, output); | 575 _connect_2(destination, output); |
| 576 return; | 576 return; |
| 577 } | 577 } |
| 578 throw new ArgumentError("Incorrect number or type of arguments"); | 578 throw new ArgumentError("Incorrect number or type of arguments"); |
| 579 } | 579 } |
| 580 | 580 |
| 581 void _connect_1(destination, output, input) native "AudioNode__connect_1_Callb
ack"; | 581 void _connect_1(destination, output, input) native "AudioNode__connect_1_Callb
ack"; |
| 582 | 582 |
| 583 void _connect_2(destination, output) native "AudioNode__connect_2_Callback"; | 583 void _connect_2(destination, output) native "AudioNode__connect_2_Callback"; |
| 584 | 584 |
| 585 @DomName('AudioNode.disconnect') | 585 @DomName('AudioNode.disconnect') |
| 586 @DocsEditable | 586 @DocsEditable() |
| 587 void disconnect(int output) native "AudioNode_disconnect_Callback"; | 587 void disconnect(int output) native "AudioNode_disconnect_Callback"; |
| 588 | 588 |
| 589 @DomName('AudioNode.dispatchEvent') | 589 @DomName('AudioNode.dispatchEvent') |
| 590 @DocsEditable | 590 @DocsEditable() |
| 591 bool dispatchEvent(Event event) native "AudioNode_dispatchEvent_Callback"; | 591 bool dispatchEvent(Event event) native "AudioNode_dispatchEvent_Callback"; |
| 592 | 592 |
| 593 @DomName('AudioNode.removeEventListener') | 593 @DomName('AudioNode.removeEventListener') |
| 594 @DocsEditable | 594 @DocsEditable() |
| 595 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "AudioNode_removeEventListener_Callback"; | 595 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "AudioNode_removeEventListener_Callback"; |
| 596 | 596 |
| 597 } | 597 } |
| 598 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 598 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 599 // for details. All rights reserved. Use of this source code is governed by a | 599 // for details. All rights reserved. Use of this source code is governed by a |
| 600 // BSD-style license that can be found in the LICENSE file. | 600 // BSD-style license that can be found in the LICENSE file. |
| 601 | 601 |
| 602 // WARNING: Do not edit - generated code. | 602 // WARNING: Do not edit - generated code. |
| 603 | 603 |
| 604 | 604 |
| 605 @DocsEditable | 605 @DocsEditable() |
| 606 @DomName('AudioParam') | 606 @DomName('AudioParam') |
| 607 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa
ram | 607 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa
ram |
| 608 @Experimental | 608 @Experimental() |
| 609 class AudioParam extends NativeFieldWrapperClass1 { | 609 class AudioParam extends NativeFieldWrapperClass1 { |
| 610 | 610 |
| 611 @DomName('AudioParam.defaultValue') | 611 @DomName('AudioParam.defaultValue') |
| 612 @DocsEditable | 612 @DocsEditable() |
| 613 num get defaultValue native "AudioParam_defaultValue_Getter"; | 613 num get defaultValue native "AudioParam_defaultValue_Getter"; |
| 614 | 614 |
| 615 @DomName('AudioParam.maxValue') | 615 @DomName('AudioParam.maxValue') |
| 616 @DocsEditable | 616 @DocsEditable() |
| 617 num get maxValue native "AudioParam_maxValue_Getter"; | 617 num get maxValue native "AudioParam_maxValue_Getter"; |
| 618 | 618 |
| 619 @DomName('AudioParam.minValue') | 619 @DomName('AudioParam.minValue') |
| 620 @DocsEditable | 620 @DocsEditable() |
| 621 num get minValue native "AudioParam_minValue_Getter"; | 621 num get minValue native "AudioParam_minValue_Getter"; |
| 622 | 622 |
| 623 @DomName('AudioParam.name') | 623 @DomName('AudioParam.name') |
| 624 @DocsEditable | 624 @DocsEditable() |
| 625 String get name native "AudioParam_name_Getter"; | 625 String get name native "AudioParam_name_Getter"; |
| 626 | 626 |
| 627 @DomName('AudioParam.units') | 627 @DomName('AudioParam.units') |
| 628 @DocsEditable | 628 @DocsEditable() |
| 629 int get units native "AudioParam_units_Getter"; | 629 int get units native "AudioParam_units_Getter"; |
| 630 | 630 |
| 631 @DomName('AudioParam.value') | 631 @DomName('AudioParam.value') |
| 632 @DocsEditable | 632 @DocsEditable() |
| 633 num get value native "AudioParam_value_Getter"; | 633 num get value native "AudioParam_value_Getter"; |
| 634 | 634 |
| 635 @DomName('AudioParam.value') | 635 @DomName('AudioParam.value') |
| 636 @DocsEditable | 636 @DocsEditable() |
| 637 void set value(num value) native "AudioParam_value_Setter"; | 637 void set value(num value) native "AudioParam_value_Setter"; |
| 638 | 638 |
| 639 @DomName('AudioParam.cancelScheduledValues') | 639 @DomName('AudioParam.cancelScheduledValues') |
| 640 @DocsEditable | 640 @DocsEditable() |
| 641 void cancelScheduledValues(num startTime) native "AudioParam_cancelScheduledVa
lues_Callback"; | 641 void cancelScheduledValues(num startTime) native "AudioParam_cancelScheduledVa
lues_Callback"; |
| 642 | 642 |
| 643 @DomName('AudioParam.exponentialRampToValueAtTime') | 643 @DomName('AudioParam.exponentialRampToValueAtTime') |
| 644 @DocsEditable | 644 @DocsEditable() |
| 645 void exponentialRampToValueAtTime(num value, num time) native "AudioParam_expo
nentialRampToValueAtTime_Callback"; | 645 void exponentialRampToValueAtTime(num value, num time) native "AudioParam_expo
nentialRampToValueAtTime_Callback"; |
| 646 | 646 |
| 647 @DomName('AudioParam.linearRampToValueAtTime') | 647 @DomName('AudioParam.linearRampToValueAtTime') |
| 648 @DocsEditable | 648 @DocsEditable() |
| 649 void linearRampToValueAtTime(num value, num time) native "AudioParam_linearRam
pToValueAtTime_Callback"; | 649 void linearRampToValueAtTime(num value, num time) native "AudioParam_linearRam
pToValueAtTime_Callback"; |
| 650 | 650 |
| 651 @DomName('AudioParam.setTargetAtTime') | 651 @DomName('AudioParam.setTargetAtTime') |
| 652 @DocsEditable | 652 @DocsEditable() |
| 653 void setTargetAtTime(num target, num time, num timeConstant) native "AudioPara
m_setTargetAtTime_Callback"; | 653 void setTargetAtTime(num target, num time, num timeConstant) native "AudioPara
m_setTargetAtTime_Callback"; |
| 654 | 654 |
| 655 @DomName('AudioParam.setTargetValueAtTime') | 655 @DomName('AudioParam.setTargetValueAtTime') |
| 656 @DocsEditable | 656 @DocsEditable() |
| 657 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native
"AudioParam_setTargetValueAtTime_Callback"; | 657 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native
"AudioParam_setTargetValueAtTime_Callback"; |
| 658 | 658 |
| 659 @DomName('AudioParam.setValueAtTime') | 659 @DomName('AudioParam.setValueAtTime') |
| 660 @DocsEditable | 660 @DocsEditable() |
| 661 void setValueAtTime(num value, num time) native "AudioParam_setValueAtTime_Cal
lback"; | 661 void setValueAtTime(num value, num time) native "AudioParam_setValueAtTime_Cal
lback"; |
| 662 | 662 |
| 663 @DomName('AudioParam.setValueCurveAtTime') | 663 @DomName('AudioParam.setValueCurveAtTime') |
| 664 @DocsEditable | 664 @DocsEditable() |
| 665 void setValueCurveAtTime(Float32List values, num time, num duration) native "A
udioParam_setValueCurveAtTime_Callback"; | 665 void setValueCurveAtTime(Float32List values, num time, num duration) native "A
udioParam_setValueCurveAtTime_Callback"; |
| 666 | 666 |
| 667 } | 667 } |
| 668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 669 // for details. All rights reserved. Use of this source code is governed by a | 669 // for details. All rights reserved. Use of this source code is governed by a |
| 670 // BSD-style license that can be found in the LICENSE file. | 670 // BSD-style license that can be found in the LICENSE file. |
| 671 | 671 |
| 672 // WARNING: Do not edit - generated code. | 672 // WARNING: Do not edit - generated code. |
| 673 | 673 |
| 674 | 674 |
| 675 @DocsEditable | 675 @DocsEditable() |
| 676 @DomName('AudioProcessingEvent') | 676 @DomName('AudioProcessingEvent') |
| 677 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr
ocessingEvent-section | 677 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr
ocessingEvent-section |
| 678 @Experimental | 678 @Experimental() |
| 679 class AudioProcessingEvent extends Event { | 679 class AudioProcessingEvent extends Event { |
| 680 // To suppress missing implicit constructor warnings. | 680 // To suppress missing implicit constructor warnings. |
| 681 factory AudioProcessingEvent._() { throw new UnsupportedError("Not supported")
; } | 681 factory AudioProcessingEvent._() { throw new UnsupportedError("Not supported")
; } |
| 682 | 682 |
| 683 @DomName('AudioProcessingEvent.inputBuffer') | 683 @DomName('AudioProcessingEvent.inputBuffer') |
| 684 @DocsEditable | 684 @DocsEditable() |
| 685 AudioBuffer get inputBuffer native "AudioProcessingEvent_inputBuffer_Getter"; | 685 AudioBuffer get inputBuffer native "AudioProcessingEvent_inputBuffer_Getter"; |
| 686 | 686 |
| 687 @DomName('AudioProcessingEvent.outputBuffer') | 687 @DomName('AudioProcessingEvent.outputBuffer') |
| 688 @DocsEditable | 688 @DocsEditable() |
| 689 AudioBuffer get outputBuffer native "AudioProcessingEvent_outputBuffer_Getter"
; | 689 AudioBuffer get outputBuffer native "AudioProcessingEvent_outputBuffer_Getter"
; |
| 690 | 690 |
| 691 } | 691 } |
| 692 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 692 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 693 // for details. All rights reserved. Use of this source code is governed by a | 693 // for details. All rights reserved. Use of this source code is governed by a |
| 694 // BSD-style license that can be found in the LICENSE file. | 694 // BSD-style license that can be found in the LICENSE file. |
| 695 | 695 |
| 696 // WARNING: Do not edit - generated code. | 696 // WARNING: Do not edit - generated code. |
| 697 | 697 |
| 698 | 698 |
| 699 @DocsEditable | 699 @DocsEditable() |
| 700 @DomName('AudioSourceNode') | 700 @DomName('AudioSourceNode') |
| 701 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html | 701 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html |
| 702 @Experimental | 702 @Experimental() |
| 703 class AudioSourceNode extends AudioNode { | 703 class AudioSourceNode extends AudioNode { |
| 704 // To suppress missing implicit constructor warnings. | 704 // To suppress missing implicit constructor warnings. |
| 705 factory AudioSourceNode._() { throw new UnsupportedError("Not supported"); } | 705 factory AudioSourceNode._() { throw new UnsupportedError("Not supported"); } |
| 706 | 706 |
| 707 } | 707 } |
| 708 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 708 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 709 // for details. All rights reserved. Use of this source code is governed by a | 709 // for details. All rights reserved. Use of this source code is governed by a |
| 710 // BSD-style license that can be found in the LICENSE file. | 710 // BSD-style license that can be found in the LICENSE file. |
| 711 | 711 |
| 712 // WARNING: Do not edit - generated code. | 712 // WARNING: Do not edit - generated code. |
| 713 | 713 |
| 714 | 714 |
| 715 @DocsEditable | 715 @DocsEditable() |
| 716 @DomName('BiquadFilterNode') | 716 @DomName('BiquadFilterNode') |
| 717 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF
ilterNode-section | 717 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF
ilterNode-section |
| 718 @Experimental | 718 @Experimental() |
| 719 class BiquadFilterNode extends AudioNode { | 719 class BiquadFilterNode extends AudioNode { |
| 720 // To suppress missing implicit constructor warnings. | 720 // To suppress missing implicit constructor warnings. |
| 721 factory BiquadFilterNode._() { throw new UnsupportedError("Not supported"); } | 721 factory BiquadFilterNode._() { throw new UnsupportedError("Not supported"); } |
| 722 | 722 |
| 723 @DomName('BiquadFilterNode.ALLPASS') | 723 @DomName('BiquadFilterNode.ALLPASS') |
| 724 @DocsEditable | 724 @DocsEditable() |
| 725 static const int ALLPASS = 7; | 725 static const int ALLPASS = 7; |
| 726 | 726 |
| 727 @DomName('BiquadFilterNode.BANDPASS') | 727 @DomName('BiquadFilterNode.BANDPASS') |
| 728 @DocsEditable | 728 @DocsEditable() |
| 729 static const int BANDPASS = 2; | 729 static const int BANDPASS = 2; |
| 730 | 730 |
| 731 @DomName('BiquadFilterNode.HIGHPASS') | 731 @DomName('BiquadFilterNode.HIGHPASS') |
| 732 @DocsEditable | 732 @DocsEditable() |
| 733 static const int HIGHPASS = 1; | 733 static const int HIGHPASS = 1; |
| 734 | 734 |
| 735 @DomName('BiquadFilterNode.HIGHSHELF') | 735 @DomName('BiquadFilterNode.HIGHSHELF') |
| 736 @DocsEditable | 736 @DocsEditable() |
| 737 static const int HIGHSHELF = 4; | 737 static const int HIGHSHELF = 4; |
| 738 | 738 |
| 739 @DomName('BiquadFilterNode.LOWPASS') | 739 @DomName('BiquadFilterNode.LOWPASS') |
| 740 @DocsEditable | 740 @DocsEditable() |
| 741 static const int LOWPASS = 0; | 741 static const int LOWPASS = 0; |
| 742 | 742 |
| 743 @DomName('BiquadFilterNode.LOWSHELF') | 743 @DomName('BiquadFilterNode.LOWSHELF') |
| 744 @DocsEditable | 744 @DocsEditable() |
| 745 static const int LOWSHELF = 3; | 745 static const int LOWSHELF = 3; |
| 746 | 746 |
| 747 @DomName('BiquadFilterNode.NOTCH') | 747 @DomName('BiquadFilterNode.NOTCH') |
| 748 @DocsEditable | 748 @DocsEditable() |
| 749 static const int NOTCH = 6; | 749 static const int NOTCH = 6; |
| 750 | 750 |
| 751 @DomName('BiquadFilterNode.PEAKING') | 751 @DomName('BiquadFilterNode.PEAKING') |
| 752 @DocsEditable | 752 @DocsEditable() |
| 753 static const int PEAKING = 5; | 753 static const int PEAKING = 5; |
| 754 | 754 |
| 755 @DomName('BiquadFilterNode.Q') | 755 @DomName('BiquadFilterNode.Q') |
| 756 @DocsEditable | 756 @DocsEditable() |
| 757 AudioParam get Q native "BiquadFilterNode_Q_Getter"; | 757 AudioParam get Q native "BiquadFilterNode_Q_Getter"; |
| 758 | 758 |
| 759 @DomName('BiquadFilterNode.detune') | 759 @DomName('BiquadFilterNode.detune') |
| 760 @DocsEditable | 760 @DocsEditable() |
| 761 AudioParam get detune native "BiquadFilterNode_detune_Getter"; | 761 AudioParam get detune native "BiquadFilterNode_detune_Getter"; |
| 762 | 762 |
| 763 @DomName('BiquadFilterNode.frequency') | 763 @DomName('BiquadFilterNode.frequency') |
| 764 @DocsEditable | 764 @DocsEditable() |
| 765 AudioParam get frequency native "BiquadFilterNode_frequency_Getter"; | 765 AudioParam get frequency native "BiquadFilterNode_frequency_Getter"; |
| 766 | 766 |
| 767 @DomName('BiquadFilterNode.gain') | 767 @DomName('BiquadFilterNode.gain') |
| 768 @DocsEditable | 768 @DocsEditable() |
| 769 AudioParam get gain native "BiquadFilterNode_gain_Getter"; | 769 AudioParam get gain native "BiquadFilterNode_gain_Getter"; |
| 770 | 770 |
| 771 @DomName('BiquadFilterNode.type') | 771 @DomName('BiquadFilterNode.type') |
| 772 @DocsEditable | 772 @DocsEditable() |
| 773 String get type native "BiquadFilterNode_type_Getter"; | 773 String get type native "BiquadFilterNode_type_Getter"; |
| 774 | 774 |
| 775 @DomName('BiquadFilterNode.type') | 775 @DomName('BiquadFilterNode.type') |
| 776 @DocsEditable | 776 @DocsEditable() |
| 777 void set type(String value) native "BiquadFilterNode_type_Setter"; | 777 void set type(String value) native "BiquadFilterNode_type_Setter"; |
| 778 | 778 |
| 779 @DomName('BiquadFilterNode.getFrequencyResponse') | 779 @DomName('BiquadFilterNode.getFrequencyResponse') |
| 780 @DocsEditable | 780 @DocsEditable() |
| 781 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl
oat32List phaseResponse) native "BiquadFilterNode_getFrequencyResponse_Callback"
; | 781 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl
oat32List phaseResponse) native "BiquadFilterNode_getFrequencyResponse_Callback"
; |
| 782 | 782 |
| 783 } | 783 } |
| 784 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 784 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 785 // for details. All rights reserved. Use of this source code is governed by a | 785 // for details. All rights reserved. Use of this source code is governed by a |
| 786 // BSD-style license that can be found in the LICENSE file. | 786 // BSD-style license that can be found in the LICENSE file. |
| 787 | 787 |
| 788 // WARNING: Do not edit - generated code. | 788 // WARNING: Do not edit - generated code. |
| 789 | 789 |
| 790 | 790 |
| 791 @DocsEditable | 791 @DocsEditable() |
| 792 @DomName('ChannelMergerNode') | 792 @DomName('ChannelMergerNode') |
| 793 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
MergerNode-section | 793 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
MergerNode-section |
| 794 @Experimental | 794 @Experimental() |
| 795 class ChannelMergerNode extends AudioNode { | 795 class ChannelMergerNode extends AudioNode { |
| 796 // To suppress missing implicit constructor warnings. | 796 // To suppress missing implicit constructor warnings. |
| 797 factory ChannelMergerNode._() { throw new UnsupportedError("Not supported"); } | 797 factory ChannelMergerNode._() { throw new UnsupportedError("Not supported"); } |
| 798 | 798 |
| 799 } | 799 } |
| 800 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 800 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 801 // for details. All rights reserved. Use of this source code is governed by a | 801 // for details. All rights reserved. Use of this source code is governed by a |
| 802 // BSD-style license that can be found in the LICENSE file. | 802 // BSD-style license that can be found in the LICENSE file. |
| 803 | 803 |
| 804 // WARNING: Do not edit - generated code. | 804 // WARNING: Do not edit - generated code. |
| 805 | 805 |
| 806 | 806 |
| 807 @DocsEditable | 807 @DocsEditable() |
| 808 @DomName('ChannelSplitterNode') | 808 @DomName('ChannelSplitterNode') |
| 809 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
SplitterNode-section | 809 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
SplitterNode-section |
| 810 @Experimental | 810 @Experimental() |
| 811 class ChannelSplitterNode extends AudioNode { | 811 class ChannelSplitterNode extends AudioNode { |
| 812 // To suppress missing implicit constructor warnings. | 812 // To suppress missing implicit constructor warnings. |
| 813 factory ChannelSplitterNode._() { throw new UnsupportedError("Not supported");
} | 813 factory ChannelSplitterNode._() { throw new UnsupportedError("Not supported");
} |
| 814 | 814 |
| 815 } | 815 } |
| 816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 817 // for details. All rights reserved. Use of this source code is governed by a | 817 // for details. All rights reserved. Use of this source code is governed by a |
| 818 // BSD-style license that can be found in the LICENSE file. | 818 // BSD-style license that can be found in the LICENSE file. |
| 819 | 819 |
| 820 // WARNING: Do not edit - generated code. | 820 // WARNING: Do not edit - generated code. |
| 821 | 821 |
| 822 | 822 |
| 823 @DocsEditable | 823 @DocsEditable() |
| 824 @DomName('ConvolverNode') | 824 @DomName('ConvolverNode') |
| 825 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv
erNode | 825 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv
erNode |
| 826 @Experimental | 826 @Experimental() |
| 827 class ConvolverNode extends AudioNode { | 827 class ConvolverNode extends AudioNode { |
| 828 // To suppress missing implicit constructor warnings. | 828 // To suppress missing implicit constructor warnings. |
| 829 factory ConvolverNode._() { throw new UnsupportedError("Not supported"); } | 829 factory ConvolverNode._() { throw new UnsupportedError("Not supported"); } |
| 830 | 830 |
| 831 @DomName('ConvolverNode.buffer') | 831 @DomName('ConvolverNode.buffer') |
| 832 @DocsEditable | 832 @DocsEditable() |
| 833 AudioBuffer get buffer native "ConvolverNode_buffer_Getter"; | 833 AudioBuffer get buffer native "ConvolverNode_buffer_Getter"; |
| 834 | 834 |
| 835 @DomName('ConvolverNode.buffer') | 835 @DomName('ConvolverNode.buffer') |
| 836 @DocsEditable | 836 @DocsEditable() |
| 837 void set buffer(AudioBuffer value) native "ConvolverNode_buffer_Setter"; | 837 void set buffer(AudioBuffer value) native "ConvolverNode_buffer_Setter"; |
| 838 | 838 |
| 839 @DomName('ConvolverNode.normalize') | 839 @DomName('ConvolverNode.normalize') |
| 840 @DocsEditable | 840 @DocsEditable() |
| 841 bool get normalize native "ConvolverNode_normalize_Getter"; | 841 bool get normalize native "ConvolverNode_normalize_Getter"; |
| 842 | 842 |
| 843 @DomName('ConvolverNode.normalize') | 843 @DomName('ConvolverNode.normalize') |
| 844 @DocsEditable | 844 @DocsEditable() |
| 845 void set normalize(bool value) native "ConvolverNode_normalize_Setter"; | 845 void set normalize(bool value) native "ConvolverNode_normalize_Setter"; |
| 846 | 846 |
| 847 } | 847 } |
| 848 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 848 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 849 // for details. All rights reserved. Use of this source code is governed by a | 849 // for details. All rights reserved. Use of this source code is governed by a |
| 850 // BSD-style license that can be found in the LICENSE file. | 850 // BSD-style license that can be found in the LICENSE file. |
| 851 | 851 |
| 852 // WARNING: Do not edit - generated code. | 852 // WARNING: Do not edit - generated code. |
| 853 | 853 |
| 854 | 854 |
| 855 @DocsEditable | 855 @DocsEditable() |
| 856 @DomName('DelayNode') | 856 @DomName('DelayNode') |
| 857 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo
de | 857 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo
de |
| 858 @Experimental | 858 @Experimental() |
| 859 class DelayNode extends AudioNode { | 859 class DelayNode extends AudioNode { |
| 860 // To suppress missing implicit constructor warnings. | 860 // To suppress missing implicit constructor warnings. |
| 861 factory DelayNode._() { throw new UnsupportedError("Not supported"); } | 861 factory DelayNode._() { throw new UnsupportedError("Not supported"); } |
| 862 | 862 |
| 863 @DomName('DelayNode.delayTime') | 863 @DomName('DelayNode.delayTime') |
| 864 @DocsEditable | 864 @DocsEditable() |
| 865 AudioParam get delayTime native "DelayNode_delayTime_Getter"; | 865 AudioParam get delayTime native "DelayNode_delayTime_Getter"; |
| 866 | 866 |
| 867 } | 867 } |
| 868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 869 // for details. All rights reserved. Use of this source code is governed by a | 869 // for details. All rights reserved. Use of this source code is governed by a |
| 870 // BSD-style license that can be found in the LICENSE file. | 870 // BSD-style license that can be found in the LICENSE file. |
| 871 | 871 |
| 872 // WARNING: Do not edit - generated code. | 872 // WARNING: Do not edit - generated code. |
| 873 | 873 |
| 874 | 874 |
| 875 @DocsEditable | 875 @DocsEditable() |
| 876 @DomName('DynamicsCompressorNode') | 876 @DomName('DynamicsCompressorNode') |
| 877 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic
sCompressorNode | 877 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic
sCompressorNode |
| 878 @Experimental | 878 @Experimental() |
| 879 class DynamicsCompressorNode extends AudioNode { | 879 class DynamicsCompressorNode extends AudioNode { |
| 880 // To suppress missing implicit constructor warnings. | 880 // To suppress missing implicit constructor warnings. |
| 881 factory DynamicsCompressorNode._() { throw new UnsupportedError("Not supported
"); } | 881 factory DynamicsCompressorNode._() { throw new UnsupportedError("Not supported
"); } |
| 882 | 882 |
| 883 @DomName('DynamicsCompressorNode.attack') | 883 @DomName('DynamicsCompressorNode.attack') |
| 884 @DocsEditable | 884 @DocsEditable() |
| 885 AudioParam get attack native "DynamicsCompressorNode_attack_Getter"; | 885 AudioParam get attack native "DynamicsCompressorNode_attack_Getter"; |
| 886 | 886 |
| 887 @DomName('DynamicsCompressorNode.knee') | 887 @DomName('DynamicsCompressorNode.knee') |
| 888 @DocsEditable | 888 @DocsEditable() |
| 889 AudioParam get knee native "DynamicsCompressorNode_knee_Getter"; | 889 AudioParam get knee native "DynamicsCompressorNode_knee_Getter"; |
| 890 | 890 |
| 891 @DomName('DynamicsCompressorNode.ratio') | 891 @DomName('DynamicsCompressorNode.ratio') |
| 892 @DocsEditable | 892 @DocsEditable() |
| 893 AudioParam get ratio native "DynamicsCompressorNode_ratio_Getter"; | 893 AudioParam get ratio native "DynamicsCompressorNode_ratio_Getter"; |
| 894 | 894 |
| 895 @DomName('DynamicsCompressorNode.reduction') | 895 @DomName('DynamicsCompressorNode.reduction') |
| 896 @DocsEditable | 896 @DocsEditable() |
| 897 AudioParam get reduction native "DynamicsCompressorNode_reduction_Getter"; | 897 AudioParam get reduction native "DynamicsCompressorNode_reduction_Getter"; |
| 898 | 898 |
| 899 @DomName('DynamicsCompressorNode.release') | 899 @DomName('DynamicsCompressorNode.release') |
| 900 @DocsEditable | 900 @DocsEditable() |
| 901 AudioParam get release native "DynamicsCompressorNode_release_Getter"; | 901 AudioParam get release native "DynamicsCompressorNode_release_Getter"; |
| 902 | 902 |
| 903 @DomName('DynamicsCompressorNode.threshold') | 903 @DomName('DynamicsCompressorNode.threshold') |
| 904 @DocsEditable | 904 @DocsEditable() |
| 905 AudioParam get threshold native "DynamicsCompressorNode_threshold_Getter"; | 905 AudioParam get threshold native "DynamicsCompressorNode_threshold_Getter"; |
| 906 | 906 |
| 907 } | 907 } |
| 908 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 908 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 909 // for details. All rights reserved. Use of this source code is governed by a | 909 // for details. All rights reserved. Use of this source code is governed by a |
| 910 // BSD-style license that can be found in the LICENSE file. | 910 // BSD-style license that can be found in the LICENSE file. |
| 911 | 911 |
| 912 // WARNING: Do not edit - generated code. | 912 // WARNING: Do not edit - generated code. |
| 913 | 913 |
| 914 | 914 |
| 915 @DocsEditable | 915 @DocsEditable() |
| 916 @DomName('GainNode') | 916 @DomName('GainNode') |
| 917 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod
e | 917 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod
e |
| 918 @Experimental | 918 @Experimental() |
| 919 class GainNode extends AudioNode { | 919 class GainNode extends AudioNode { |
| 920 // To suppress missing implicit constructor warnings. | 920 // To suppress missing implicit constructor warnings. |
| 921 factory GainNode._() { throw new UnsupportedError("Not supported"); } | 921 factory GainNode._() { throw new UnsupportedError("Not supported"); } |
| 922 | 922 |
| 923 @DomName('GainNode.gain') | 923 @DomName('GainNode.gain') |
| 924 @DocsEditable | 924 @DocsEditable() |
| 925 AudioParam get gain native "GainNode_gain_Getter"; | 925 AudioParam get gain native "GainNode_gain_Getter"; |
| 926 | 926 |
| 927 } | 927 } |
| 928 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 928 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 929 // for details. All rights reserved. Use of this source code is governed by a | 929 // for details. All rights reserved. Use of this source code is governed by a |
| 930 // BSD-style license that can be found in the LICENSE file. | 930 // BSD-style license that can be found in the LICENSE file. |
| 931 | 931 |
| 932 // WARNING: Do not edit - generated code. | 932 // WARNING: Do not edit - generated code. |
| 933 | 933 |
| 934 | 934 |
| 935 @DocsEditable | 935 @DocsEditable() |
| 936 @DomName('MediaElementAudioSourceNode') | 936 @DomName('MediaElementAudioSourceNode') |
| 937 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl
ementAudioSourceNode | 937 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl
ementAudioSourceNode |
| 938 @Experimental | 938 @Experimental() |
| 939 class MediaElementAudioSourceNode extends AudioSourceNode { | 939 class MediaElementAudioSourceNode extends AudioSourceNode { |
| 940 // To suppress missing implicit constructor warnings. | 940 // To suppress missing implicit constructor warnings. |
| 941 factory MediaElementAudioSourceNode._() { throw new UnsupportedError("Not supp
orted"); } | 941 factory MediaElementAudioSourceNode._() { throw new UnsupportedError("Not supp
orted"); } |
| 942 | 942 |
| 943 @DomName('MediaElementAudioSourceNode.mediaElement') | 943 @DomName('MediaElementAudioSourceNode.mediaElement') |
| 944 @DocsEditable | 944 @DocsEditable() |
| 945 @Experimental // non-standard | 945 @Experimental() // non-standard |
| 946 MediaElement get mediaElement native "MediaElementAudioSourceNode_mediaElement
_Getter"; | 946 MediaElement get mediaElement native "MediaElementAudioSourceNode_mediaElement
_Getter"; |
| 947 | 947 |
| 948 } | 948 } |
| 949 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 949 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 950 // for details. All rights reserved. Use of this source code is governed by a | 950 // for details. All rights reserved. Use of this source code is governed by a |
| 951 // BSD-style license that can be found in the LICENSE file. | 951 // BSD-style license that can be found in the LICENSE file. |
| 952 | 952 |
| 953 // WARNING: Do not edit - generated code. | 953 // WARNING: Do not edit - generated code. |
| 954 | 954 |
| 955 | 955 |
| 956 @DocsEditable | 956 @DocsEditable() |
| 957 @DomName('MediaStreamAudioDestinationNode') | 957 @DomName('MediaStreamAudioDestinationNode') |
| 958 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioDestinationNode | 958 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioDestinationNode |
| 959 @Experimental | 959 @Experimental() |
| 960 class MediaStreamAudioDestinationNode extends AudioSourceNode { | 960 class MediaStreamAudioDestinationNode extends AudioSourceNode { |
| 961 // To suppress missing implicit constructor warnings. | 961 // To suppress missing implicit constructor warnings. |
| 962 factory MediaStreamAudioDestinationNode._() { throw new UnsupportedError("Not
supported"); } | 962 factory MediaStreamAudioDestinationNode._() { throw new UnsupportedError("Not
supported"); } |
| 963 | 963 |
| 964 @DomName('MediaStreamAudioDestinationNode.stream') | 964 @DomName('MediaStreamAudioDestinationNode.stream') |
| 965 @DocsEditable | 965 @DocsEditable() |
| 966 MediaStream get stream native "MediaStreamAudioDestinationNode_stream_Getter"; | 966 MediaStream get stream native "MediaStreamAudioDestinationNode_stream_Getter"; |
| 967 | 967 |
| 968 } | 968 } |
| 969 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 969 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 970 // for details. All rights reserved. Use of this source code is governed by a | 970 // for details. All rights reserved. Use of this source code is governed by a |
| 971 // BSD-style license that can be found in the LICENSE file. | 971 // BSD-style license that can be found in the LICENSE file. |
| 972 | 972 |
| 973 // WARNING: Do not edit - generated code. | 973 // WARNING: Do not edit - generated code. |
| 974 | 974 |
| 975 | 975 |
| 976 @DocsEditable | 976 @DocsEditable() |
| 977 @DomName('MediaStreamAudioSourceNode') | 977 @DomName('MediaStreamAudioSourceNode') |
| 978 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioSourceNode | 978 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioSourceNode |
| 979 @Experimental | 979 @Experimental() |
| 980 class MediaStreamAudioSourceNode extends AudioSourceNode { | 980 class MediaStreamAudioSourceNode extends AudioSourceNode { |
| 981 // To suppress missing implicit constructor warnings. | 981 // To suppress missing implicit constructor warnings. |
| 982 factory MediaStreamAudioSourceNode._() { throw new UnsupportedError("Not suppo
rted"); } | 982 factory MediaStreamAudioSourceNode._() { throw new UnsupportedError("Not suppo
rted"); } |
| 983 | 983 |
| 984 @DomName('MediaStreamAudioSourceNode.mediaStream') | 984 @DomName('MediaStreamAudioSourceNode.mediaStream') |
| 985 @DocsEditable | 985 @DocsEditable() |
| 986 MediaStream get mediaStream native "MediaStreamAudioSourceNode_mediaStream_Get
ter"; | 986 MediaStream get mediaStream native "MediaStreamAudioSourceNode_mediaStream_Get
ter"; |
| 987 | 987 |
| 988 } | 988 } |
| 989 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 989 // 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 | 990 // 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. | 991 // BSD-style license that can be found in the LICENSE file. |
| 992 | 992 |
| 993 // WARNING: Do not edit - generated code. | 993 // WARNING: Do not edit - generated code. |
| 994 | 994 |
| 995 | 995 |
| 996 @DocsEditable | 996 @DocsEditable() |
| 997 @DomName('OfflineAudioCompletionEvent') | 997 @DomName('OfflineAudioCompletionEvent') |
| 998 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioCompletionEvent-section | 998 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioCompletionEvent-section |
| 999 @Experimental | 999 @Experimental() |
| 1000 class OfflineAudioCompletionEvent extends Event { | 1000 class OfflineAudioCompletionEvent extends Event { |
| 1001 // To suppress missing implicit constructor warnings. | 1001 // To suppress missing implicit constructor warnings. |
| 1002 factory OfflineAudioCompletionEvent._() { throw new UnsupportedError("Not supp
orted"); } | 1002 factory OfflineAudioCompletionEvent._() { throw new UnsupportedError("Not supp
orted"); } |
| 1003 | 1003 |
| 1004 @DomName('OfflineAudioCompletionEvent.renderedBuffer') | 1004 @DomName('OfflineAudioCompletionEvent.renderedBuffer') |
| 1005 @DocsEditable | 1005 @DocsEditable() |
| 1006 AudioBuffer get renderedBuffer native "OfflineAudioCompletionEvent_renderedBuf
fer_Getter"; | 1006 AudioBuffer get renderedBuffer native "OfflineAudioCompletionEvent_renderedBuf
fer_Getter"; |
| 1007 | 1007 |
| 1008 } | 1008 } |
| 1009 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1009 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1010 // for details. All rights reserved. Use of this source code is governed by a | 1010 // for details. All rights reserved. Use of this source code is governed by a |
| 1011 // BSD-style license that can be found in the LICENSE file. | 1011 // BSD-style license that can be found in the LICENSE file. |
| 1012 | 1012 |
| 1013 // WARNING: Do not edit - generated code. | 1013 // WARNING: Do not edit - generated code. |
| 1014 | 1014 |
| 1015 | 1015 |
| 1016 @DocsEditable | 1016 @DocsEditable() |
| 1017 @DomName('OfflineAudioContext') | 1017 @DomName('OfflineAudioContext') |
| 1018 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioContext-section | 1018 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioContext-section |
| 1019 @Experimental | 1019 @Experimental() |
| 1020 class OfflineAudioContext extends AudioContext implements EventTarget { | 1020 class OfflineAudioContext extends AudioContext implements EventTarget { |
| 1021 // To suppress missing implicit constructor warnings. | 1021 // To suppress missing implicit constructor warnings. |
| 1022 factory OfflineAudioContext._() { throw new UnsupportedError("Not supported");
} | 1022 factory OfflineAudioContext._() { throw new UnsupportedError("Not supported");
} |
| 1023 | 1023 |
| 1024 @DomName('OfflineAudioContext.OfflineAudioContext') | 1024 @DomName('OfflineAudioContext.OfflineAudioContext') |
| 1025 @DocsEditable | 1025 @DocsEditable() |
| 1026 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp
leRate) { | 1026 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp
leRate) { |
| 1027 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl
eRate); | 1027 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl
eRate); |
| 1028 } | 1028 } |
| 1029 | 1029 |
| 1030 @DocsEditable | 1030 @DocsEditable() |
| 1031 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR
ate) native "OfflineAudioContext__create_1constructorCallback"; | 1031 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR
ate) native "OfflineAudioContext__create_1constructorCallback"; |
| 1032 | 1032 |
| 1033 } | 1033 } |
| 1034 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1034 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1035 // for details. All rights reserved. Use of this source code is governed by a | 1035 // for details. All rights reserved. Use of this source code is governed by a |
| 1036 // BSD-style license that can be found in the LICENSE file. | 1036 // BSD-style license that can be found in the LICENSE file. |
| 1037 | 1037 |
| 1038 // WARNING: Do not edit - generated code. | 1038 // WARNING: Do not edit - generated code. |
| 1039 | 1039 |
| 1040 | 1040 |
| 1041 @DocsEditable | 1041 @DocsEditable() |
| 1042 @DomName('OscillatorNode') | 1042 @DomName('OscillatorNode') |
| 1043 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc
illatorNode | 1043 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc
illatorNode |
| 1044 @Experimental | 1044 @Experimental() |
| 1045 class OscillatorNode extends AudioSourceNode { | 1045 class OscillatorNode extends AudioSourceNode { |
| 1046 // To suppress missing implicit constructor warnings. | 1046 // To suppress missing implicit constructor warnings. |
| 1047 factory OscillatorNode._() { throw new UnsupportedError("Not supported"); } | 1047 factory OscillatorNode._() { throw new UnsupportedError("Not supported"); } |
| 1048 | 1048 |
| 1049 @DomName('OscillatorNode.CUSTOM') | 1049 @DomName('OscillatorNode.CUSTOM') |
| 1050 @DocsEditable | 1050 @DocsEditable() |
| 1051 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 1051 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 1052 @deprecated // deprecated | 1052 @deprecated // deprecated |
| 1053 static const int CUSTOM = 4; | 1053 static const int CUSTOM = 4; |
| 1054 | 1054 |
| 1055 @DomName('OscillatorNode.FINISHED_STATE') | 1055 @DomName('OscillatorNode.FINISHED_STATE') |
| 1056 @DocsEditable | 1056 @DocsEditable() |
| 1057 static const int FINISHED_STATE = 3; | 1057 static const int FINISHED_STATE = 3; |
| 1058 | 1058 |
| 1059 @DomName('OscillatorNode.PLAYING_STATE') | 1059 @DomName('OscillatorNode.PLAYING_STATE') |
| 1060 @DocsEditable | 1060 @DocsEditable() |
| 1061 static const int PLAYING_STATE = 2; | 1061 static const int PLAYING_STATE = 2; |
| 1062 | 1062 |
| 1063 @DomName('OscillatorNode.SAWTOOTH') | 1063 @DomName('OscillatorNode.SAWTOOTH') |
| 1064 @DocsEditable | 1064 @DocsEditable() |
| 1065 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 1065 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 1066 @deprecated // deprecated | 1066 @deprecated // deprecated |
| 1067 static const int SAWTOOTH = 2; | 1067 static const int SAWTOOTH = 2; |
| 1068 | 1068 |
| 1069 @DomName('OscillatorNode.SCHEDULED_STATE') | 1069 @DomName('OscillatorNode.SCHEDULED_STATE') |
| 1070 @DocsEditable | 1070 @DocsEditable() |
| 1071 static const int SCHEDULED_STATE = 1; | 1071 static const int SCHEDULED_STATE = 1; |
| 1072 | 1072 |
| 1073 @DomName('OscillatorNode.SINE') | 1073 @DomName('OscillatorNode.SINE') |
| 1074 @DocsEditable | 1074 @DocsEditable() |
| 1075 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 1075 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 1076 @deprecated // deprecated | 1076 @deprecated // deprecated |
| 1077 static const int SINE = 0; | 1077 static const int SINE = 0; |
| 1078 | 1078 |
| 1079 @DomName('OscillatorNode.SQUARE') | 1079 @DomName('OscillatorNode.SQUARE') |
| 1080 @DocsEditable | 1080 @DocsEditable() |
| 1081 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 1081 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 1082 @deprecated // deprecated | 1082 @deprecated // deprecated |
| 1083 static const int SQUARE = 1; | 1083 static const int SQUARE = 1; |
| 1084 | 1084 |
| 1085 @DomName('OscillatorNode.TRIANGLE') | 1085 @DomName('OscillatorNode.TRIANGLE') |
| 1086 @DocsEditable | 1086 @DocsEditable() |
| 1087 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 1087 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 1088 @deprecated // deprecated | 1088 @deprecated // deprecated |
| 1089 static const int TRIANGLE = 3; | 1089 static const int TRIANGLE = 3; |
| 1090 | 1090 |
| 1091 @DomName('OscillatorNode.UNSCHEDULED_STATE') | 1091 @DomName('OscillatorNode.UNSCHEDULED_STATE') |
| 1092 @DocsEditable | 1092 @DocsEditable() |
| 1093 static const int UNSCHEDULED_STATE = 0; | 1093 static const int UNSCHEDULED_STATE = 0; |
| 1094 | 1094 |
| 1095 @DomName('OscillatorNode.detune') | 1095 @DomName('OscillatorNode.detune') |
| 1096 @DocsEditable | 1096 @DocsEditable() |
| 1097 AudioParam get detune native "OscillatorNode_detune_Getter"; | 1097 AudioParam get detune native "OscillatorNode_detune_Getter"; |
| 1098 | 1098 |
| 1099 @DomName('OscillatorNode.frequency') | 1099 @DomName('OscillatorNode.frequency') |
| 1100 @DocsEditable | 1100 @DocsEditable() |
| 1101 AudioParam get frequency native "OscillatorNode_frequency_Getter"; | 1101 AudioParam get frequency native "OscillatorNode_frequency_Getter"; |
| 1102 | 1102 |
| 1103 @DomName('OscillatorNode.playbackState') | 1103 @DomName('OscillatorNode.playbackState') |
| 1104 @DocsEditable | 1104 @DocsEditable() |
| 1105 int get playbackState native "OscillatorNode_playbackState_Getter"; | 1105 int get playbackState native "OscillatorNode_playbackState_Getter"; |
| 1106 | 1106 |
| 1107 @DomName('OscillatorNode.type') | 1107 @DomName('OscillatorNode.type') |
| 1108 @DocsEditable | 1108 @DocsEditable() |
| 1109 String get type native "OscillatorNode_type_Getter"; | 1109 String get type native "OscillatorNode_type_Getter"; |
| 1110 | 1110 |
| 1111 @DomName('OscillatorNode.type') | 1111 @DomName('OscillatorNode.type') |
| 1112 @DocsEditable | 1112 @DocsEditable() |
| 1113 void set type(String value) native "OscillatorNode_type_Setter"; | 1113 void set type(String value) native "OscillatorNode_type_Setter"; |
| 1114 | 1114 |
| 1115 @DomName('OscillatorNode.noteOff') | 1115 @DomName('OscillatorNode.noteOff') |
| 1116 @DocsEditable | 1116 @DocsEditable() |
| 1117 void noteOff(num when) native "OscillatorNode_noteOff_Callback"; | 1117 void noteOff(num when) native "OscillatorNode_noteOff_Callback"; |
| 1118 | 1118 |
| 1119 @DomName('OscillatorNode.noteOn') | 1119 @DomName('OscillatorNode.noteOn') |
| 1120 @DocsEditable | 1120 @DocsEditable() |
| 1121 void noteOn(num when) native "OscillatorNode_noteOn_Callback"; | 1121 void noteOn(num when) native "OscillatorNode_noteOn_Callback"; |
| 1122 | 1122 |
| 1123 @DomName('OscillatorNode.setWaveTable') | 1123 @DomName('OscillatorNode.setWaveTable') |
| 1124 @DocsEditable | 1124 @DocsEditable() |
| 1125 void setWaveTable(WaveTable waveTable) native "OscillatorNode_setWaveTable_Cal
lback"; | 1125 void setWaveTable(WaveTable waveTable) native "OscillatorNode_setWaveTable_Cal
lback"; |
| 1126 | 1126 |
| 1127 @DomName('OscillatorNode.start') | 1127 @DomName('OscillatorNode.start') |
| 1128 @DocsEditable | 1128 @DocsEditable() |
| 1129 void start(num when) native "OscillatorNode_start_Callback"; | 1129 void start(num when) native "OscillatorNode_start_Callback"; |
| 1130 | 1130 |
| 1131 @DomName('OscillatorNode.stop') | 1131 @DomName('OscillatorNode.stop') |
| 1132 @DocsEditable | 1132 @DocsEditable() |
| 1133 void stop(num when) native "OscillatorNode_stop_Callback"; | 1133 void stop(num when) native "OscillatorNode_stop_Callback"; |
| 1134 | 1134 |
| 1135 } | 1135 } |
| 1136 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1136 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1137 // for details. All rights reserved. Use of this source code is governed by a | 1137 // for details. All rights reserved. Use of this source code is governed by a |
| 1138 // BSD-style license that can be found in the LICENSE file. | 1138 // BSD-style license that can be found in the LICENSE file. |
| 1139 | 1139 |
| 1140 // WARNING: Do not edit - generated code. | 1140 // WARNING: Do not edit - generated code. |
| 1141 | 1141 |
| 1142 | 1142 |
| 1143 @DocsEditable | 1143 @DocsEditable() |
| 1144 @DomName('PannerNode') | 1144 @DomName('PannerNode') |
| 1145 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN
ode | 1145 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN
ode |
| 1146 @Experimental | 1146 @Experimental() |
| 1147 class PannerNode extends AudioNode { | 1147 class PannerNode extends AudioNode { |
| 1148 // To suppress missing implicit constructor warnings. | 1148 // To suppress missing implicit constructor warnings. |
| 1149 factory PannerNode._() { throw new UnsupportedError("Not supported"); } | 1149 factory PannerNode._() { throw new UnsupportedError("Not supported"); } |
| 1150 | 1150 |
| 1151 @DomName('PannerNode.EQUALPOWER') | 1151 @DomName('PannerNode.EQUALPOWER') |
| 1152 @DocsEditable | 1152 @DocsEditable() |
| 1153 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 1153 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 1154 @deprecated // deprecated | 1154 @deprecated // deprecated |
| 1155 static const int EQUALPOWER = 0; | 1155 static const int EQUALPOWER = 0; |
| 1156 | 1156 |
| 1157 @DomName('PannerNode.EXPONENTIAL_DISTANCE') | 1157 @DomName('PannerNode.EXPONENTIAL_DISTANCE') |
| 1158 @DocsEditable | 1158 @DocsEditable() |
| 1159 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 1159 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 1160 @deprecated // deprecated | 1160 @deprecated // deprecated |
| 1161 static const int EXPONENTIAL_DISTANCE = 2; | 1161 static const int EXPONENTIAL_DISTANCE = 2; |
| 1162 | 1162 |
| 1163 @DomName('PannerNode.HRTF') | 1163 @DomName('PannerNode.HRTF') |
| 1164 @DocsEditable | 1164 @DocsEditable() |
| 1165 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 1165 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 1166 @deprecated // deprecated | 1166 @deprecated // deprecated |
| 1167 static const int HRTF = 1; | 1167 static const int HRTF = 1; |
| 1168 | 1168 |
| 1169 @DomName('PannerNode.INVERSE_DISTANCE') | 1169 @DomName('PannerNode.INVERSE_DISTANCE') |
| 1170 @DocsEditable | 1170 @DocsEditable() |
| 1171 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 1171 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 1172 @deprecated // deprecated | 1172 @deprecated // deprecated |
| 1173 static const int INVERSE_DISTANCE = 1; | 1173 static const int INVERSE_DISTANCE = 1; |
| 1174 | 1174 |
| 1175 @DomName('PannerNode.LINEAR_DISTANCE') | 1175 @DomName('PannerNode.LINEAR_DISTANCE') |
| 1176 @DocsEditable | 1176 @DocsEditable() |
| 1177 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 1177 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 1178 @deprecated // deprecated | 1178 @deprecated // deprecated |
| 1179 static const int LINEAR_DISTANCE = 0; | 1179 static const int LINEAR_DISTANCE = 0; |
| 1180 | 1180 |
| 1181 @DomName('PannerNode.SOUNDFIELD') | 1181 @DomName('PannerNode.SOUNDFIELD') |
| 1182 @DocsEditable | 1182 @DocsEditable() |
| 1183 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 1183 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 1184 @deprecated // deprecated | 1184 @deprecated // deprecated |
| 1185 static const int SOUNDFIELD = 2; | 1185 static const int SOUNDFIELD = 2; |
| 1186 | 1186 |
| 1187 @DomName('PannerNode.coneInnerAngle') | 1187 @DomName('PannerNode.coneInnerAngle') |
| 1188 @DocsEditable | 1188 @DocsEditable() |
| 1189 num get coneInnerAngle native "PannerNode_coneInnerAngle_Getter"; | 1189 num get coneInnerAngle native "PannerNode_coneInnerAngle_Getter"; |
| 1190 | 1190 |
| 1191 @DomName('PannerNode.coneInnerAngle') | 1191 @DomName('PannerNode.coneInnerAngle') |
| 1192 @DocsEditable | 1192 @DocsEditable() |
| 1193 void set coneInnerAngle(num value) native "PannerNode_coneInnerAngle_Setter"; | 1193 void set coneInnerAngle(num value) native "PannerNode_coneInnerAngle_Setter"; |
| 1194 | 1194 |
| 1195 @DomName('PannerNode.coneOuterAngle') | 1195 @DomName('PannerNode.coneOuterAngle') |
| 1196 @DocsEditable | 1196 @DocsEditable() |
| 1197 num get coneOuterAngle native "PannerNode_coneOuterAngle_Getter"; | 1197 num get coneOuterAngle native "PannerNode_coneOuterAngle_Getter"; |
| 1198 | 1198 |
| 1199 @DomName('PannerNode.coneOuterAngle') | 1199 @DomName('PannerNode.coneOuterAngle') |
| 1200 @DocsEditable | 1200 @DocsEditable() |
| 1201 void set coneOuterAngle(num value) native "PannerNode_coneOuterAngle_Setter"; | 1201 void set coneOuterAngle(num value) native "PannerNode_coneOuterAngle_Setter"; |
| 1202 | 1202 |
| 1203 @DomName('PannerNode.coneOuterGain') | 1203 @DomName('PannerNode.coneOuterGain') |
| 1204 @DocsEditable | 1204 @DocsEditable() |
| 1205 num get coneOuterGain native "PannerNode_coneOuterGain_Getter"; | 1205 num get coneOuterGain native "PannerNode_coneOuterGain_Getter"; |
| 1206 | 1206 |
| 1207 @DomName('PannerNode.coneOuterGain') | 1207 @DomName('PannerNode.coneOuterGain') |
| 1208 @DocsEditable | 1208 @DocsEditable() |
| 1209 void set coneOuterGain(num value) native "PannerNode_coneOuterGain_Setter"; | 1209 void set coneOuterGain(num value) native "PannerNode_coneOuterGain_Setter"; |
| 1210 | 1210 |
| 1211 @DomName('PannerNode.distanceModel') | 1211 @DomName('PannerNode.distanceModel') |
| 1212 @DocsEditable | 1212 @DocsEditable() |
| 1213 String get distanceModel native "PannerNode_distanceModel_Getter"; | 1213 String get distanceModel native "PannerNode_distanceModel_Getter"; |
| 1214 | 1214 |
| 1215 @DomName('PannerNode.distanceModel') | 1215 @DomName('PannerNode.distanceModel') |
| 1216 @DocsEditable | 1216 @DocsEditable() |
| 1217 void set distanceModel(String value) native "PannerNode_distanceModel_Setter"; | 1217 void set distanceModel(String value) native "PannerNode_distanceModel_Setter"; |
| 1218 | 1218 |
| 1219 @DomName('PannerNode.maxDistance') | 1219 @DomName('PannerNode.maxDistance') |
| 1220 @DocsEditable | 1220 @DocsEditable() |
| 1221 num get maxDistance native "PannerNode_maxDistance_Getter"; | 1221 num get maxDistance native "PannerNode_maxDistance_Getter"; |
| 1222 | 1222 |
| 1223 @DomName('PannerNode.maxDistance') | 1223 @DomName('PannerNode.maxDistance') |
| 1224 @DocsEditable | 1224 @DocsEditable() |
| 1225 void set maxDistance(num value) native "PannerNode_maxDistance_Setter"; | 1225 void set maxDistance(num value) native "PannerNode_maxDistance_Setter"; |
| 1226 | 1226 |
| 1227 @DomName('PannerNode.panningModel') | 1227 @DomName('PannerNode.panningModel') |
| 1228 @DocsEditable | 1228 @DocsEditable() |
| 1229 String get panningModel native "PannerNode_panningModel_Getter"; | 1229 String get panningModel native "PannerNode_panningModel_Getter"; |
| 1230 | 1230 |
| 1231 @DomName('PannerNode.panningModel') | 1231 @DomName('PannerNode.panningModel') |
| 1232 @DocsEditable | 1232 @DocsEditable() |
| 1233 void set panningModel(String value) native "PannerNode_panningModel_Setter"; | 1233 void set panningModel(String value) native "PannerNode_panningModel_Setter"; |
| 1234 | 1234 |
| 1235 @DomName('PannerNode.refDistance') | 1235 @DomName('PannerNode.refDistance') |
| 1236 @DocsEditable | 1236 @DocsEditable() |
| 1237 num get refDistance native "PannerNode_refDistance_Getter"; | 1237 num get refDistance native "PannerNode_refDistance_Getter"; |
| 1238 | 1238 |
| 1239 @DomName('PannerNode.refDistance') | 1239 @DomName('PannerNode.refDistance') |
| 1240 @DocsEditable | 1240 @DocsEditable() |
| 1241 void set refDistance(num value) native "PannerNode_refDistance_Setter"; | 1241 void set refDistance(num value) native "PannerNode_refDistance_Setter"; |
| 1242 | 1242 |
| 1243 @DomName('PannerNode.rolloffFactor') | 1243 @DomName('PannerNode.rolloffFactor') |
| 1244 @DocsEditable | 1244 @DocsEditable() |
| 1245 num get rolloffFactor native "PannerNode_rolloffFactor_Getter"; | 1245 num get rolloffFactor native "PannerNode_rolloffFactor_Getter"; |
| 1246 | 1246 |
| 1247 @DomName('PannerNode.rolloffFactor') | 1247 @DomName('PannerNode.rolloffFactor') |
| 1248 @DocsEditable | 1248 @DocsEditable() |
| 1249 void set rolloffFactor(num value) native "PannerNode_rolloffFactor_Setter"; | 1249 void set rolloffFactor(num value) native "PannerNode_rolloffFactor_Setter"; |
| 1250 | 1250 |
| 1251 @DomName('PannerNode.setOrientation') | 1251 @DomName('PannerNode.setOrientation') |
| 1252 @DocsEditable | 1252 @DocsEditable() |
| 1253 void setOrientation(num x, num y, num z) native "PannerNode_setOrientation_Cal
lback"; | 1253 void setOrientation(num x, num y, num z) native "PannerNode_setOrientation_Cal
lback"; |
| 1254 | 1254 |
| 1255 @DomName('PannerNode.setPosition') | 1255 @DomName('PannerNode.setPosition') |
| 1256 @DocsEditable | 1256 @DocsEditable() |
| 1257 void setPosition(num x, num y, num z) native "PannerNode_setPosition_Callback"
; | 1257 void setPosition(num x, num y, num z) native "PannerNode_setPosition_Callback"
; |
| 1258 | 1258 |
| 1259 @DomName('PannerNode.setVelocity') | 1259 @DomName('PannerNode.setVelocity') |
| 1260 @DocsEditable | 1260 @DocsEditable() |
| 1261 void setVelocity(num x, num y, num z) native "PannerNode_setVelocity_Callback"
; | 1261 void setVelocity(num x, num y, num z) native "PannerNode_setVelocity_Callback"
; |
| 1262 | 1262 |
| 1263 } | 1263 } |
| 1264 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1264 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 1265 // for details. All rights reserved. Use of this source code is governed by a | 1265 // for details. All rights reserved. Use of this source code is governed by a |
| 1266 // BSD-style license that can be found in the LICENSE file. | 1266 // BSD-style license that can be found in the LICENSE file. |
| 1267 | 1267 |
| 1268 | 1268 |
| 1269 @DomName('ScriptProcessorNode') | 1269 @DomName('ScriptProcessorNode') |
| 1270 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP
rocessorNode | 1270 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP
rocessorNode |
| 1271 @Experimental | 1271 @Experimental() |
| 1272 class ScriptProcessorNode extends AudioNode { | 1272 class ScriptProcessorNode extends AudioNode { |
| 1273 Stream<AudioProcessingEvent> _eventStream; | 1273 Stream<AudioProcessingEvent> _eventStream; |
| 1274 | 1274 |
| 1275 /** | 1275 /** |
| 1276 * Get a Stream that fires events when AudioProcessingEvents occur. | 1276 * Get a Stream that fires events when AudioProcessingEvents occur. |
| 1277 * This particular stream is special in that it only allows one listener to a | 1277 * This particular stream is special in that it only allows one listener to a |
| 1278 * given stream. Converting the returned Stream [asBroadcast] will likely ruin | 1278 * given stream. Converting the returned Stream [asBroadcast] will likely ruin |
| 1279 * the soft-real-time properties which which these events are fired and can | 1279 * the soft-real-time properties which which these events are fired and can |
| 1280 * be processed. | 1280 * be processed. |
| 1281 */ | 1281 */ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 1295 _eventStream = controller.stream; | 1295 _eventStream = controller.stream; |
| 1296 } | 1296 } |
| 1297 return _eventStream; | 1297 return _eventStream; |
| 1298 } | 1298 } |
| 1299 | 1299 |
| 1300 | 1300 |
| 1301 // To suppress missing implicit constructor warnings. | 1301 // To suppress missing implicit constructor warnings. |
| 1302 factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported");
} | 1302 factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported");
} |
| 1303 | 1303 |
| 1304 @DomName('ScriptProcessorNode.bufferSize') | 1304 @DomName('ScriptProcessorNode.bufferSize') |
| 1305 @DocsEditable | 1305 @DocsEditable() |
| 1306 int get bufferSize native "ScriptProcessorNode_bufferSize_Getter"; | 1306 int get bufferSize native "ScriptProcessorNode_bufferSize_Getter"; |
| 1307 | 1307 |
| 1308 @DomName('ScriptProcessorNode._setEventListener') | 1308 @DomName('ScriptProcessorNode._setEventListener') |
| 1309 @DocsEditable | 1309 @DocsEditable() |
| 1310 @Experimental // non-standard | 1310 @Experimental() // non-standard |
| 1311 void _setEventListener(EventListener eventListener) native "ScriptProcessorNod
e__setEventListener_Callback"; | 1311 void _setEventListener(EventListener eventListener) native "ScriptProcessorNod
e__setEventListener_Callback"; |
| 1312 | 1312 |
| 1313 } | 1313 } |
| 1314 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1314 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1315 // for details. All rights reserved. Use of this source code is governed by a | 1315 // for details. All rights reserved. Use of this source code is governed by a |
| 1316 // BSD-style license that can be found in the LICENSE file. | 1316 // BSD-style license that can be found in the LICENSE file. |
| 1317 | 1317 |
| 1318 // WARNING: Do not edit - generated code. | 1318 // WARNING: Do not edit - generated code. |
| 1319 | 1319 |
| 1320 | 1320 |
| 1321 @DocsEditable | 1321 @DocsEditable() |
| 1322 @DomName('WaveShaperNode') | 1322 @DomName('WaveShaperNode') |
| 1323 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav
eShaperNode | 1323 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav
eShaperNode |
| 1324 @Experimental | 1324 @Experimental() |
| 1325 class WaveShaperNode extends AudioNode { | 1325 class WaveShaperNode extends AudioNode { |
| 1326 // To suppress missing implicit constructor warnings. | 1326 // To suppress missing implicit constructor warnings. |
| 1327 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } | 1327 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } |
| 1328 | 1328 |
| 1329 @DomName('WaveShaperNode.curve') | 1329 @DomName('WaveShaperNode.curve') |
| 1330 @DocsEditable | 1330 @DocsEditable() |
| 1331 Float32List get curve native "WaveShaperNode_curve_Getter"; | 1331 Float32List get curve native "WaveShaperNode_curve_Getter"; |
| 1332 | 1332 |
| 1333 @DomName('WaveShaperNode.curve') | 1333 @DomName('WaveShaperNode.curve') |
| 1334 @DocsEditable | 1334 @DocsEditable() |
| 1335 void set curve(Float32List value) native "WaveShaperNode_curve_Setter"; | 1335 void set curve(Float32List value) native "WaveShaperNode_curve_Setter"; |
| 1336 | 1336 |
| 1337 @DomName('WaveShaperNode.oversample') | 1337 @DomName('WaveShaperNode.oversample') |
| 1338 @DocsEditable | 1338 @DocsEditable() |
| 1339 String get oversample native "WaveShaperNode_oversample_Getter"; | 1339 String get oversample native "WaveShaperNode_oversample_Getter"; |
| 1340 | 1340 |
| 1341 @DomName('WaveShaperNode.oversample') | 1341 @DomName('WaveShaperNode.oversample') |
| 1342 @DocsEditable | 1342 @DocsEditable() |
| 1343 void set oversample(String value) native "WaveShaperNode_oversample_Setter"; | 1343 void set oversample(String value) native "WaveShaperNode_oversample_Setter"; |
| 1344 | 1344 |
| 1345 } | 1345 } |
| 1346 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1346 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1347 // for details. All rights reserved. Use of this source code is governed by a | 1347 // for details. All rights reserved. Use of this source code is governed by a |
| 1348 // BSD-style license that can be found in the LICENSE file. | 1348 // BSD-style license that can be found in the LICENSE file. |
| 1349 | 1349 |
| 1350 // WARNING: Do not edit - generated code. | 1350 // WARNING: Do not edit - generated code. |
| 1351 | 1351 |
| 1352 | 1352 |
| 1353 @DocsEditable | 1353 @DocsEditable() |
| 1354 @DomName('WaveTable') | 1354 @DomName('WaveTable') |
| 1355 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section | 1355 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section |
| 1356 @Experimental | 1356 @Experimental() |
| 1357 class WaveTable extends NativeFieldWrapperClass1 { | 1357 class WaveTable extends NativeFieldWrapperClass1 { |
| 1358 | 1358 |
| 1359 } | 1359 } |
| OLD | NEW |