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:typed_data'; | 8 import 'dart:typed_data'; |
9 import 'dart:_js_helper' show Creates, Returns, convertDartClosureToJS; | 9 import 'dart:_js_helper' show Creates, Returns, convertDartClosureToJS; |
10 import 'dart:_foreign_helper' show JS; | 10 import 'dart:_foreign_helper' show JS; |
(...skipping 19 matching lines...) Expand all Loading... |
30 @DomName('AnalyserNode.fftSize') | 30 @DomName('AnalyserNode.fftSize') |
31 @DocsEditable | 31 @DocsEditable |
32 int fftSize; | 32 int fftSize; |
33 | 33 |
34 @DomName('AnalyserNode.frequencyBinCount') | 34 @DomName('AnalyserNode.frequencyBinCount') |
35 @DocsEditable | 35 @DocsEditable |
36 final int frequencyBinCount; | 36 final int frequencyBinCount; |
37 | 37 |
38 @DomName('AnalyserNode.maxDecibels') | 38 @DomName('AnalyserNode.maxDecibels') |
39 @DocsEditable | 39 @DocsEditable |
40 num maxDecibels; | 40 double maxDecibels; |
41 | 41 |
42 @DomName('AnalyserNode.minDecibels') | 42 @DomName('AnalyserNode.minDecibels') |
43 @DocsEditable | 43 @DocsEditable |
44 num minDecibels; | 44 double minDecibels; |
45 | 45 |
46 @DomName('AnalyserNode.smoothingTimeConstant') | 46 @DomName('AnalyserNode.smoothingTimeConstant') |
47 @DocsEditable | 47 @DocsEditable |
48 num smoothingTimeConstant; | 48 double smoothingTimeConstant; |
49 | 49 |
50 @DomName('AnalyserNode.getByteFrequencyData') | 50 @DomName('AnalyserNode.getByteFrequencyData') |
51 @DocsEditable | 51 @DocsEditable |
52 void getByteFrequencyData(Uint8List array) native; | 52 void getByteFrequencyData(Uint8List array) native; |
53 | 53 |
54 @DomName('AnalyserNode.getByteTimeDomainData') | 54 @DomName('AnalyserNode.getByteTimeDomainData') |
55 @DocsEditable | 55 @DocsEditable |
56 void getByteTimeDomainData(Uint8List array) native; | 56 void getByteTimeDomainData(Uint8List array) native; |
57 | 57 |
58 @DomName('AnalyserNode.getFloatFrequencyData') | 58 @DomName('AnalyserNode.getFloatFrequencyData') |
59 @DocsEditable | 59 @DocsEditable |
60 void getFloatFrequencyData(Float32List array) native; | 60 void getFloatFrequencyData(Float32List array) native; |
61 } | 61 } |
62 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 62 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
63 // for details. All rights reserved. Use of this source code is governed by a | 63 // for details. All rights reserved. Use of this source code is governed by a |
64 // BSD-style license that can be found in the LICENSE file. | 64 // BSD-style license that can be found in the LICENSE file. |
65 | 65 |
66 | 66 |
67 @DocsEditable | 67 @DocsEditable |
68 @DomName('AudioBuffer') | 68 @DomName('AudioBuffer') |
69 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section | 69 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section |
70 @Experimental | 70 @Experimental |
71 class AudioBuffer native "AudioBuffer" { | 71 class AudioBuffer native "AudioBuffer" { |
72 | 72 |
73 @DomName('AudioBuffer.duration') | 73 @DomName('AudioBuffer.duration') |
74 @DocsEditable | 74 @DocsEditable |
75 final num duration; | 75 final double duration; |
76 | 76 |
77 @DomName('AudioBuffer.gain') | 77 @DomName('AudioBuffer.gain') |
78 @DocsEditable | 78 @DocsEditable |
79 num gain; | 79 double gain; |
80 | 80 |
81 @DomName('AudioBuffer.length') | 81 @DomName('AudioBuffer.length') |
82 @DocsEditable | 82 @DocsEditable |
83 final int length; | 83 final int length; |
84 | 84 |
85 @DomName('AudioBuffer.numberOfChannels') | 85 @DomName('AudioBuffer.numberOfChannels') |
86 @DocsEditable | 86 @DocsEditable |
87 final int numberOfChannels; | 87 final int numberOfChannels; |
88 | 88 |
89 @DomName('AudioBuffer.sampleRate') | 89 @DomName('AudioBuffer.sampleRate') |
90 @DocsEditable | 90 @DocsEditable |
91 final num sampleRate; | 91 final double sampleRate; |
92 | 92 |
93 @DomName('AudioBuffer.getChannelData') | 93 @DomName('AudioBuffer.getChannelData') |
94 @DocsEditable | 94 @DocsEditable |
95 Float32List getChannelData(int channelIndex) native; | 95 Float32List getChannelData(int channelIndex) native; |
96 } | 96 } |
97 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 97 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
98 // for details. All rights reserved. Use of this source code is governed by a | 98 // for details. All rights reserved. Use of this source code is governed by a |
99 // BSD-style license that can be found in the LICENSE file. | 99 // BSD-style license that can be found in the LICENSE file. |
100 | 100 |
101 // WARNING: Do not edit - generated code. | 101 // WARNING: Do not edit - generated code. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 @DomName('AudioBufferSourceNode.gain') | 168 @DomName('AudioBufferSourceNode.gain') |
169 @DocsEditable | 169 @DocsEditable |
170 final AudioParam gain; | 170 final AudioParam gain; |
171 | 171 |
172 @DomName('AudioBufferSourceNode.loop') | 172 @DomName('AudioBufferSourceNode.loop') |
173 @DocsEditable | 173 @DocsEditable |
174 bool loop; | 174 bool loop; |
175 | 175 |
176 @DomName('AudioBufferSourceNode.loopEnd') | 176 @DomName('AudioBufferSourceNode.loopEnd') |
177 @DocsEditable | 177 @DocsEditable |
178 num loopEnd; | 178 double loopEnd; |
179 | 179 |
180 @DomName('AudioBufferSourceNode.loopStart') | 180 @DomName('AudioBufferSourceNode.loopStart') |
181 @DocsEditable | 181 @DocsEditable |
182 num loopStart; | 182 double loopStart; |
183 | 183 |
184 @DomName('AudioBufferSourceNode.playbackRate') | 184 @DomName('AudioBufferSourceNode.playbackRate') |
185 @DocsEditable | 185 @DocsEditable |
186 final AudioParam playbackRate; | 186 final AudioParam playbackRate; |
187 | 187 |
188 @DomName('AudioBufferSourceNode.playbackState') | 188 @DomName('AudioBufferSourceNode.playbackState') |
189 @DocsEditable | 189 @DocsEditable |
190 final int playbackState; | 190 final int playbackState; |
191 | 191 |
192 @DomName('AudioBufferSourceNode.noteGrainOn') | 192 @DomName('AudioBufferSourceNode.noteGrainOn') |
193 @DocsEditable | 193 @DocsEditable |
194 @Experimental // untriaged | 194 @Experimental // untriaged |
195 void noteGrainOn(num when, num grainOffset, num grainDuration) native; | 195 void noteGrainOn(double when, double grainOffset, double grainDuration) native
; |
196 | 196 |
197 @DomName('AudioBufferSourceNode.noteOff') | 197 @DomName('AudioBufferSourceNode.noteOff') |
198 @DocsEditable | 198 @DocsEditable |
199 @Experimental // untriaged | 199 @Experimental // untriaged |
200 void noteOff(num when) native; | 200 void noteOff(double when) native; |
201 | 201 |
202 @DomName('AudioBufferSourceNode.noteOn') | 202 @DomName('AudioBufferSourceNode.noteOn') |
203 @DocsEditable | 203 @DocsEditable |
204 @Experimental // untriaged | 204 @Experimental // untriaged |
205 void noteOn(num when) native; | 205 void noteOn(double when) native; |
206 | 206 |
207 } | 207 } |
208 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 208 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
209 // for details. All rights reserved. Use of this source code is governed by a | 209 // for details. All rights reserved. Use of this source code is governed by a |
210 // BSD-style license that can be found in the LICENSE file. | 210 // BSD-style license that can be found in the LICENSE file. |
211 | 211 |
212 | 212 |
213 @DomName('AudioContext') | 213 @DomName('AudioContext') |
214 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo
ntext-section | 214 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo
ntext-section |
215 @Experimental | 215 @Experimental |
216 class AudioContext extends EventTarget native "AudioContext" { | 216 class AudioContext extends EventTarget native "AudioContext" { |
217 | 217 |
218 @DomName('AudioContext.completeEvent') | 218 @DomName('AudioContext.completeEvent') |
219 @DocsEditable | 219 @DocsEditable |
220 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); | 220 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); |
221 | 221 |
222 /// Checks if this type is supported on the current platform. | 222 /// Checks if this type is supported on the current platform. |
223 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk
itAudioContext)'); | 223 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk
itAudioContext)'); |
224 | 224 |
225 @DomName('AudioContext.activeSourceCount') | 225 @DomName('AudioContext.activeSourceCount') |
226 @DocsEditable | 226 @DocsEditable |
227 final int activeSourceCount; | 227 final int activeSourceCount; |
228 | 228 |
229 @DomName('AudioContext.currentTime') | 229 @DomName('AudioContext.currentTime') |
230 @DocsEditable | 230 @DocsEditable |
231 final num currentTime; | 231 final double currentTime; |
232 | 232 |
233 @DomName('AudioContext.destination') | 233 @DomName('AudioContext.destination') |
234 @DocsEditable | 234 @DocsEditable |
235 final AudioDestinationNode destination; | 235 final AudioDestinationNode destination; |
236 | 236 |
237 @DomName('AudioContext.listener') | 237 @DomName('AudioContext.listener') |
238 @DocsEditable | 238 @DocsEditable |
239 final AudioListener listener; | 239 final AudioListener listener; |
240 | 240 |
241 @DomName('AudioContext.sampleRate') | 241 @DomName('AudioContext.sampleRate') |
242 @DocsEditable | 242 @DocsEditable |
243 final num sampleRate; | 243 final double sampleRate; |
244 | 244 |
245 @DomName('AudioContext.createAnalyser') | 245 @DomName('AudioContext.createAnalyser') |
246 @DocsEditable | 246 @DocsEditable |
247 AnalyserNode createAnalyser() native; | 247 AnalyserNode createAnalyser() native; |
248 | 248 |
249 @DomName('AudioContext.createBiquadFilter') | 249 @DomName('AudioContext.createBiquadFilter') |
250 @DocsEditable | 250 @DocsEditable |
251 BiquadFilterNode createBiquadFilter() native; | 251 BiquadFilterNode createBiquadFilter() native; |
252 | 252 |
253 @DomName('AudioContext.createBuffer') | 253 @DomName('AudioContext.createBuffer') |
254 @DocsEditable | 254 @DocsEditable |
255 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram
es, [num sampleRate]) native; | 255 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram
es, [double sampleRate]) native; |
256 | 256 |
257 @DomName('AudioContext.createBufferSource') | 257 @DomName('AudioContext.createBufferSource') |
258 @DocsEditable | 258 @DocsEditable |
259 AudioBufferSourceNode createBufferSource() native; | 259 AudioBufferSourceNode createBufferSource() native; |
260 | 260 |
261 @DomName('AudioContext.createChannelMerger') | 261 @DomName('AudioContext.createChannelMerger') |
262 @DocsEditable | 262 @DocsEditable |
263 ChannelMergerNode createChannelMerger([int numberOfInputs]) native; | 263 ChannelMergerNode createChannelMerger([int numberOfInputs]) native; |
264 | 264 |
265 @DomName('AudioContext.createChannelSplitter') | 265 @DomName('AudioContext.createChannelSplitter') |
266 @DocsEditable | 266 @DocsEditable |
267 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native; | 267 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native; |
268 | 268 |
269 @DomName('AudioContext.createConvolver') | 269 @DomName('AudioContext.createConvolver') |
270 @DocsEditable | 270 @DocsEditable |
271 ConvolverNode createConvolver() native; | 271 ConvolverNode createConvolver() native; |
272 | 272 |
273 @DomName('AudioContext.createDelay') | 273 @DomName('AudioContext.createDelay') |
274 @DocsEditable | 274 @DocsEditable |
275 DelayNode createDelay([num maxDelayTime]) native; | 275 DelayNode createDelay([double maxDelayTime]) native; |
276 | 276 |
277 @DomName('AudioContext.createDelayNode') | 277 @DomName('AudioContext.createDelayNode') |
278 @DocsEditable | 278 @DocsEditable |
279 @Experimental // untriaged | 279 @Experimental // untriaged |
280 DelayNode createDelayNode([num maxDelayTime]) native; | 280 DelayNode createDelayNode([double maxDelayTime]) native; |
281 | 281 |
282 @DomName('AudioContext.createDynamicsCompressor') | 282 @DomName('AudioContext.createDynamicsCompressor') |
283 @DocsEditable | 283 @DocsEditable |
284 DynamicsCompressorNode createDynamicsCompressor() native; | 284 DynamicsCompressorNode createDynamicsCompressor() native; |
285 | 285 |
286 @DomName('AudioContext.createGainNode') | 286 @DomName('AudioContext.createGainNode') |
287 @DocsEditable | 287 @DocsEditable |
288 @Experimental // untriaged | 288 @Experimental // untriaged |
289 GainNode createGainNode() native; | 289 GainNode createGainNode() native; |
290 | 290 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 | 381 |
382 | 382 |
383 @DocsEditable | 383 @DocsEditable |
384 @DomName('AudioListener') | 384 @DomName('AudioListener') |
385 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi
stener-section | 385 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi
stener-section |
386 @Experimental | 386 @Experimental |
387 class AudioListener native "AudioListener" { | 387 class AudioListener native "AudioListener" { |
388 | 388 |
389 @DomName('AudioListener.dopplerFactor') | 389 @DomName('AudioListener.dopplerFactor') |
390 @DocsEditable | 390 @DocsEditable |
391 num dopplerFactor; | 391 double dopplerFactor; |
392 | 392 |
393 @DomName('AudioListener.speedOfSound') | 393 @DomName('AudioListener.speedOfSound') |
394 @DocsEditable | 394 @DocsEditable |
395 num speedOfSound; | 395 double speedOfSound; |
396 | 396 |
397 @DomName('AudioListener.setOrientation') | 397 @DomName('AudioListener.setOrientation') |
398 @DocsEditable | 398 @DocsEditable |
399 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; | 399 void setOrientation(double x, double y, double z, double xUp, double yUp, doub
le zUp) native; |
400 | 400 |
401 @DomName('AudioListener.setPosition') | 401 @DomName('AudioListener.setPosition') |
402 @DocsEditable | 402 @DocsEditable |
403 void setPosition(num x, num y, num z) native; | 403 void setPosition(double x, double y, double z) native; |
404 | 404 |
405 @DomName('AudioListener.setVelocity') | 405 @DomName('AudioListener.setVelocity') |
406 @DocsEditable | 406 @DocsEditable |
407 void setVelocity(num x, num y, num z) native; | 407 void setVelocity(double x, double y, double z) native; |
408 } | 408 } |
409 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 409 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
410 // for details. All rights reserved. Use of this source code is governed by a | 410 // for details. All rights reserved. Use of this source code is governed by a |
411 // BSD-style license that can be found in the LICENSE file. | 411 // BSD-style license that can be found in the LICENSE file. |
412 | 412 |
413 | 413 |
414 @DocsEditable | 414 @DocsEditable |
415 @DomName('AudioNode') | 415 @DomName('AudioNode') |
416 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo
de-section | 416 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo
de-section |
417 @Experimental | 417 @Experimental |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 | 455 |
456 | 456 |
457 @DocsEditable | 457 @DocsEditable |
458 @DomName('AudioParam') | 458 @DomName('AudioParam') |
459 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa
ram | 459 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa
ram |
460 @Experimental | 460 @Experimental |
461 class AudioParam native "AudioParam" { | 461 class AudioParam native "AudioParam" { |
462 | 462 |
463 @DomName('AudioParam.defaultValue') | 463 @DomName('AudioParam.defaultValue') |
464 @DocsEditable | 464 @DocsEditable |
465 final num defaultValue; | 465 final double defaultValue; |
466 | 466 |
467 @DomName('AudioParam.maxValue') | 467 @DomName('AudioParam.maxValue') |
468 @DocsEditable | 468 @DocsEditable |
469 final num maxValue; | 469 final double maxValue; |
470 | 470 |
471 @DomName('AudioParam.minValue') | 471 @DomName('AudioParam.minValue') |
472 @DocsEditable | 472 @DocsEditable |
473 final num minValue; | 473 final double minValue; |
474 | 474 |
475 @DomName('AudioParam.name') | 475 @DomName('AudioParam.name') |
476 @DocsEditable | 476 @DocsEditable |
477 final String name; | 477 final String name; |
478 | 478 |
479 @DomName('AudioParam.units') | 479 @DomName('AudioParam.units') |
480 @DocsEditable | 480 @DocsEditable |
481 final int units; | 481 final int units; |
482 | 482 |
483 @DomName('AudioParam.value') | 483 @DomName('AudioParam.value') |
484 @DocsEditable | 484 @DocsEditable |
485 num value; | 485 double value; |
486 | 486 |
487 @DomName('AudioParam.cancelScheduledValues') | 487 @DomName('AudioParam.cancelScheduledValues') |
488 @DocsEditable | 488 @DocsEditable |
489 void cancelScheduledValues(num startTime) native; | 489 void cancelScheduledValues(double startTime) native; |
490 | 490 |
491 @DomName('AudioParam.exponentialRampToValueAtTime') | 491 @DomName('AudioParam.exponentialRampToValueAtTime') |
492 @DocsEditable | 492 @DocsEditable |
493 void exponentialRampToValueAtTime(num value, num time) native; | 493 void exponentialRampToValueAtTime(double value, double time) native; |
494 | 494 |
495 @DomName('AudioParam.linearRampToValueAtTime') | 495 @DomName('AudioParam.linearRampToValueAtTime') |
496 @DocsEditable | 496 @DocsEditable |
497 void linearRampToValueAtTime(num value, num time) native; | 497 void linearRampToValueAtTime(double value, double time) native; |
498 | 498 |
499 @DomName('AudioParam.setTargetAtTime') | 499 @DomName('AudioParam.setTargetAtTime') |
500 @DocsEditable | 500 @DocsEditable |
501 void setTargetAtTime(num target, num time, num timeConstant) native; | 501 void setTargetAtTime(double target, double time, double timeConstant) native; |
502 | 502 |
503 @DomName('AudioParam.setTargetValueAtTime') | 503 @DomName('AudioParam.setTargetValueAtTime') |
504 @DocsEditable | 504 @DocsEditable |
505 @Experimental // untriaged | 505 @Experimental // untriaged |
506 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native; | 506 void setTargetValueAtTime(double targetValue, double time, double timeConstant
) native; |
507 | 507 |
508 @DomName('AudioParam.setValueAtTime') | 508 @DomName('AudioParam.setValueAtTime') |
509 @DocsEditable | 509 @DocsEditable |
510 void setValueAtTime(num value, num time) native; | 510 void setValueAtTime(double value, double time) native; |
511 | 511 |
512 @DomName('AudioParam.setValueCurveAtTime') | 512 @DomName('AudioParam.setValueCurveAtTime') |
513 @DocsEditable | 513 @DocsEditable |
514 void setValueCurveAtTime(Float32List values, num time, num duration) native; | 514 void setValueCurveAtTime(Float32List values, double time, double duration) nat
ive; |
515 } | 515 } |
516 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 516 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
517 // for details. All rights reserved. Use of this source code is governed by a | 517 // for details. All rights reserved. Use of this source code is governed by a |
518 // BSD-style license that can be found in the LICENSE file. | 518 // BSD-style license that can be found in the LICENSE file. |
519 | 519 |
520 | 520 |
521 @DocsEditable | 521 @DocsEditable |
522 @DomName('AudioProcessingEvent') | 522 @DomName('AudioProcessingEvent') |
523 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr
ocessingEvent-section | 523 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr
ocessingEvent-section |
524 @Experimental | 524 @Experimental |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 | 783 |
784 | 784 |
785 @DocsEditable | 785 @DocsEditable |
786 @DomName('OfflineAudioContext') | 786 @DomName('OfflineAudioContext') |
787 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioContext-section | 787 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioContext-section |
788 @Experimental | 788 @Experimental |
789 class OfflineAudioContext extends AudioContext implements EventTarget native "Of
flineAudioContext" { | 789 class OfflineAudioContext extends AudioContext implements EventTarget native "Of
flineAudioContext" { |
790 | 790 |
791 @DomName('OfflineAudioContext.OfflineAudioContext') | 791 @DomName('OfflineAudioContext.OfflineAudioContext') |
792 @DocsEditable | 792 @DocsEditable |
793 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp
leRate) { | 793 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, double s
ampleRate) { |
794 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl
eRate); | 794 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl
eRate); |
795 } | 795 } |
796 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR
ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan
nels, numberOfFrames, sampleRate); | 796 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR
ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan
nels, numberOfFrames, sampleRate); |
797 } | 797 } |
798 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 798 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
799 // for details. All rights reserved. Use of this source code is governed by a | 799 // for details. All rights reserved. Use of this source code is governed by a |
800 // BSD-style license that can be found in the LICENSE file. | 800 // BSD-style license that can be found in the LICENSE file. |
801 | 801 |
802 | 802 |
803 @DocsEditable | 803 @DocsEditable |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 @DocsEditable | 864 @DocsEditable |
865 final int playbackState; | 865 final int playbackState; |
866 | 866 |
867 @DomName('OscillatorNode.type') | 867 @DomName('OscillatorNode.type') |
868 @DocsEditable | 868 @DocsEditable |
869 String type; | 869 String type; |
870 | 870 |
871 @DomName('OscillatorNode.noteOff') | 871 @DomName('OscillatorNode.noteOff') |
872 @DocsEditable | 872 @DocsEditable |
873 @Experimental // untriaged | 873 @Experimental // untriaged |
874 void noteOff(num when) native; | 874 void noteOff(double when) native; |
875 | 875 |
876 @DomName('OscillatorNode.noteOn') | 876 @DomName('OscillatorNode.noteOn') |
877 @DocsEditable | 877 @DocsEditable |
878 @Experimental // untriaged | 878 @Experimental // untriaged |
879 void noteOn(num when) native; | 879 void noteOn(double when) native; |
880 | 880 |
881 @DomName('OscillatorNode.setWaveTable') | 881 @DomName('OscillatorNode.setWaveTable') |
882 @DocsEditable | 882 @DocsEditable |
883 void setWaveTable(WaveTable waveTable) native; | 883 void setWaveTable(WaveTable waveTable) native; |
884 | 884 |
885 @DomName('OscillatorNode.start') | 885 @DomName('OscillatorNode.start') |
886 @DocsEditable | 886 @DocsEditable |
887 void start(num when) native; | 887 void start(double when) native; |
888 | 888 |
889 @DomName('OscillatorNode.stop') | 889 @DomName('OscillatorNode.stop') |
890 @DocsEditable | 890 @DocsEditable |
891 void stop(num when) native; | 891 void stop(double when) native; |
892 } | 892 } |
893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
894 // for details. All rights reserved. Use of this source code is governed by a | 894 // for details. All rights reserved. Use of this source code is governed by a |
895 // BSD-style license that can be found in the LICENSE file. | 895 // BSD-style license that can be found in the LICENSE file. |
896 | 896 |
897 | 897 |
898 @DocsEditable | 898 @DocsEditable |
899 @DomName('PannerNode') | 899 @DomName('PannerNode') |
900 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN
ode | 900 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN
ode |
901 @Experimental | 901 @Experimental |
(...skipping 30 matching lines...) Expand all Loading... |
932 static const int LINEAR_DISTANCE = 0; | 932 static const int LINEAR_DISTANCE = 0; |
933 | 933 |
934 @DomName('PannerNode.SOUNDFIELD') | 934 @DomName('PannerNode.SOUNDFIELD') |
935 @DocsEditable | 935 @DocsEditable |
936 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 936 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
937 @deprecated // deprecated | 937 @deprecated // deprecated |
938 static const int SOUNDFIELD = 2; | 938 static const int SOUNDFIELD = 2; |
939 | 939 |
940 @DomName('PannerNode.coneInnerAngle') | 940 @DomName('PannerNode.coneInnerAngle') |
941 @DocsEditable | 941 @DocsEditable |
942 num coneInnerAngle; | 942 double coneInnerAngle; |
943 | 943 |
944 @DomName('PannerNode.coneOuterAngle') | 944 @DomName('PannerNode.coneOuterAngle') |
945 @DocsEditable | 945 @DocsEditable |
946 num coneOuterAngle; | 946 double coneOuterAngle; |
947 | 947 |
948 @DomName('PannerNode.coneOuterGain') | 948 @DomName('PannerNode.coneOuterGain') |
949 @DocsEditable | 949 @DocsEditable |
950 num coneOuterGain; | 950 double coneOuterGain; |
951 | 951 |
952 @DomName('PannerNode.distanceModel') | 952 @DomName('PannerNode.distanceModel') |
953 @DocsEditable | 953 @DocsEditable |
954 String distanceModel; | 954 String distanceModel; |
955 | 955 |
956 @DomName('PannerNode.maxDistance') | 956 @DomName('PannerNode.maxDistance') |
957 @DocsEditable | 957 @DocsEditable |
958 num maxDistance; | 958 double maxDistance; |
959 | 959 |
960 @DomName('PannerNode.panningModel') | 960 @DomName('PannerNode.panningModel') |
961 @DocsEditable | 961 @DocsEditable |
962 String panningModel; | 962 String panningModel; |
963 | 963 |
964 @DomName('PannerNode.refDistance') | 964 @DomName('PannerNode.refDistance') |
965 @DocsEditable | 965 @DocsEditable |
966 num refDistance; | 966 double refDistance; |
967 | 967 |
968 @DomName('PannerNode.rolloffFactor') | 968 @DomName('PannerNode.rolloffFactor') |
969 @DocsEditable | 969 @DocsEditable |
970 num rolloffFactor; | 970 double rolloffFactor; |
971 | 971 |
972 @DomName('PannerNode.setOrientation') | 972 @DomName('PannerNode.setOrientation') |
973 @DocsEditable | 973 @DocsEditable |
974 void setOrientation(num x, num y, num z) native; | 974 void setOrientation(double x, double y, double z) native; |
975 | 975 |
976 @DomName('PannerNode.setPosition') | 976 @DomName('PannerNode.setPosition') |
977 @DocsEditable | 977 @DocsEditable |
978 void setPosition(num x, num y, num z) native; | 978 void setPosition(double x, double y, double z) native; |
979 | 979 |
980 @DomName('PannerNode.setVelocity') | 980 @DomName('PannerNode.setVelocity') |
981 @DocsEditable | 981 @DocsEditable |
982 void setVelocity(num x, num y, num z) native; | 982 void setVelocity(double x, double y, double z) native; |
983 } | 983 } |
984 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 984 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
985 // for details. All rights reserved. Use of this source code is governed by a | 985 // for details. All rights reserved. Use of this source code is governed by a |
986 // BSD-style license that can be found in the LICENSE file. | 986 // BSD-style license that can be found in the LICENSE file. |
987 | 987 |
988 | 988 |
989 @DomName('ScriptProcessorNode') | 989 @DomName('ScriptProcessorNode') |
990 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP
rocessorNode | 990 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP
rocessorNode |
991 @Experimental | 991 @Experimental |
992 class ScriptProcessorNode extends AudioNode native "ScriptProcessorNode" { | 992 class ScriptProcessorNode extends AudioNode native "ScriptProcessorNode" { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1047 // for details. All rights reserved. Use of this source code is governed by a | 1047 // for details. All rights reserved. Use of this source code is governed by a |
1048 // BSD-style license that can be found in the LICENSE file. | 1048 // BSD-style license that can be found in the LICENSE file. |
1049 | 1049 |
1050 | 1050 |
1051 @DocsEditable | 1051 @DocsEditable |
1052 @DomName('WaveTable') | 1052 @DomName('WaveTable') |
1053 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section | 1053 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section |
1054 @Experimental | 1054 @Experimental |
1055 class WaveTable native "WaveTable" { | 1055 class WaveTable native "WaveTable" { |
1056 } | 1056 } |
OLD | NEW |