Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: sdk/lib/web_audio/dart2js/web_audio_dart2js.dart

Issue 15074006: Generating annotations from DOM triage list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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;
11 // DO NOT EDIT - unless you are editing documentation as per: 11 // DO NOT EDIT - unless you are editing documentation as per:
12 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 12 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
13 // Auto-generated dart:audio library. 13 // Auto-generated dart:audio library.
14 14
15 15
16 16
17 17
18 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
19 // for details. All rights reserved. Use of this source code is governed by a 19 // for details. All rights reserved. Use of this source code is governed by a
20 // BSD-style license that can be found in the LICENSE file. 20 // BSD-style license that can be found in the LICENSE file.
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
26 @Experimental
25 class AnalyserNode extends AudioNode native "AnalyserNode" { 27 class AnalyserNode extends AudioNode native "AnalyserNode" {
26 28
27 @DomName('AnalyserNode.fftSize') 29 @DomName('AnalyserNode.fftSize')
28 @DocsEditable 30 @DocsEditable
29 int fftSize; 31 int fftSize;
30 32
31 @DomName('AnalyserNode.frequencyBinCount') 33 @DomName('AnalyserNode.frequencyBinCount')
32 @DocsEditable 34 @DocsEditable
33 final int frequencyBinCount; 35 final int frequencyBinCount;
34 36
(...skipping 21 matching lines...) Expand all
56 @DocsEditable 58 @DocsEditable
57 void getFloatFrequencyData(Float32List array) native; 59 void getFloatFrequencyData(Float32List array) native;
58 } 60 }
59 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 61 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
60 // for details. All rights reserved. Use of this source code is governed by a 62 // for details. All rights reserved. Use of this source code is governed by a
61 // BSD-style license that can be found in the LICENSE file. 63 // BSD-style license that can be found in the LICENSE file.
62 64
63 65
64 @DocsEditable 66 @DocsEditable
65 @DomName('AudioBuffer') 67 @DomName('AudioBuffer')
68 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu ffer-section
69 @Experimental
66 class AudioBuffer native "AudioBuffer" { 70 class AudioBuffer native "AudioBuffer" {
67 71
68 @DomName('AudioBuffer.duration') 72 @DomName('AudioBuffer.duration')
69 @DocsEditable 73 @DocsEditable
70 final num duration; 74 final num duration;
71 75
72 @DomName('AudioBuffer.gain') 76 @DomName('AudioBuffer.gain')
73 @DocsEditable 77 @DocsEditable
74 num gain; 78 num gain;
75 79
(...skipping 13 matching lines...) Expand all
89 @DocsEditable 93 @DocsEditable
90 Float32List getChannelData(int channelIndex) native; 94 Float32List getChannelData(int channelIndex) native;
91 } 95 }
92 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 96 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
93 // for details. All rights reserved. Use of this source code is governed by a 97 // for details. All rights reserved. Use of this source code is governed by a
94 // BSD-style license that can be found in the LICENSE file. 98 // BSD-style license that can be found in the LICENSE file.
95 99
96 // WARNING: Do not edit - generated code. 100 // WARNING: Do not edit - generated code.
97 101
98 102
103 @DomName('AudioBufferCallback')
104 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu ffer-section
105 @Experimental
99 typedef void AudioBufferCallback(AudioBuffer audioBuffer); 106 typedef void AudioBufferCallback(AudioBuffer audioBuffer);
100 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
101 // for details. All rights reserved. Use of this source code is governed by a 108 // for details. All rights reserved. Use of this source code is governed by a
102 // BSD-style license that can be found in the LICENSE file. 109 // BSD-style license that can be found in the LICENSE file.
103 110
104 111
105 @DomName('AudioBufferSourceNode') 112 @DomName('AudioBufferSourceNode')
113 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu fferSourceNode-section
114 @Experimental
106 class AudioBufferSourceNode extends AudioSourceNode native "AudioBufferSourceNod e" { 115 class AudioBufferSourceNode extends AudioSourceNode native "AudioBufferSourceNod e" {
107 116
108 // TODO(efortuna): Remove these methods when Chrome stable also uses start 117 // TODO(efortuna): Remove these methods when Chrome stable also uses start
109 // instead of noteOn. 118 // instead of noteOn.
110 void start(num when, [num grainOffset, num grainDuration]) { 119 void start(num when, [num grainOffset, num grainDuration]) {
111 if (JS('bool', '!!#.start', this)) { 120 if (JS('bool', '!!#.start', this)) {
112 if (grainDuration != null) { 121 if (grainDuration != null) {
113 JS('void', '#.start(#, #, #)', this, when, grainOffset, grainDuration); 122 JS('void', '#.start(#, #, #)', this, when, grainOffset, grainDuration);
114 } else if (grainOffset != null) { 123 } else if (grainOffset != null) {
115 JS('void', '#.start(#, #)', this, when, grainOffset); 124 JS('void', '#.start(#, #)', this, when, grainOffset);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 @DocsEditable 188 @DocsEditable
180 final int playbackState; 189 final int playbackState;
181 190
182 } 191 }
183 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 192 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
184 // for details. All rights reserved. Use of this source code is governed by a 193 // for details. All rights reserved. Use of this source code is governed by a
185 // BSD-style license that can be found in the LICENSE file. 194 // BSD-style license that can be found in the LICENSE file.
186 195
187 196
188 @DomName('AudioContext') 197 @DomName('AudioContext')
198 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo ntext-section
199 @Experimental
189 class AudioContext extends EventTarget native "AudioContext" { 200 class AudioContext extends EventTarget native "AudioContext" {
190 201
191 @DomName('AudioContext.completeEvent') 202 @DomName('AudioContext.completeEvent')
192 @DocsEditable 203 @DocsEditable
193 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi der<Event>('complete'); 204 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi der<Event>('complete');
194 205
195 /// Checks if this type is supported on the current platform. 206 /// Checks if this type is supported on the current platform.
196 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk itAudioContext)'); 207 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk itAudioContext)');
197 208
198 @DomName('AudioContext.activeSourceCount') 209 @DomName('AudioContext.activeSourceCount')
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 } 329 }
319 } 330 }
320 } 331 }
321 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 332 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
322 // for details. All rights reserved. Use of this source code is governed by a 333 // for details. All rights reserved. Use of this source code is governed by a
323 // BSD-style license that can be found in the LICENSE file. 334 // BSD-style license that can be found in the LICENSE file.
324 335
325 336
326 @DocsEditable 337 @DocsEditable
327 @DomName('AudioDestinationNode') 338 @DomName('AudioDestinationNode')
339 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe stinationNode-section
340 @Experimental
328 class AudioDestinationNode extends AudioNode native "AudioDestinationNode" { 341 class AudioDestinationNode extends AudioNode native "AudioDestinationNode" {
329 342
330 @DomName('AudioDestinationNode.maxChannelCount') 343 @DomName('AudioDestinationNode.maxChannelCount')
331 @DocsEditable 344 @DocsEditable
332 final int maxChannelCount; 345 final int maxChannelCount;
333 } 346 }
334 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
335 // for details. All rights reserved. Use of this source code is governed by a 348 // for details. All rights reserved. Use of this source code is governed by a
336 // BSD-style license that can be found in the LICENSE file. 349 // BSD-style license that can be found in the LICENSE file.
337 350
338 351
339 @DocsEditable 352 @DocsEditable
340 @DomName('AudioListener') 353 @DomName('AudioListener')
354 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi stener-section
355 @Experimental
341 class AudioListener native "AudioListener" { 356 class AudioListener native "AudioListener" {
342 357
343 @DomName('AudioListener.dopplerFactor') 358 @DomName('AudioListener.dopplerFactor')
344 @DocsEditable 359 @DocsEditable
345 num dopplerFactor; 360 num dopplerFactor;
346 361
347 @DomName('AudioListener.speedOfSound') 362 @DomName('AudioListener.speedOfSound')
348 @DocsEditable 363 @DocsEditable
349 num speedOfSound; 364 num speedOfSound;
350 365
351 @DomName('AudioListener.setOrientation') 366 @DomName('AudioListener.setOrientation')
352 @DocsEditable 367 @DocsEditable
353 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; 368 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native;
354 369
355 @DomName('AudioListener.setPosition') 370 @DomName('AudioListener.setPosition')
356 @DocsEditable 371 @DocsEditable
357 void setPosition(num x, num y, num z) native; 372 void setPosition(num x, num y, num z) native;
358 373
359 @DomName('AudioListener.setVelocity') 374 @DomName('AudioListener.setVelocity')
360 @DocsEditable 375 @DocsEditable
361 void setVelocity(num x, num y, num z) native; 376 void setVelocity(num x, num y, num z) native;
362 } 377 }
363 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 378 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
364 // for details. All rights reserved. Use of this source code is governed by a 379 // for details. All rights reserved. Use of this source code is governed by a
365 // BSD-style license that can be found in the LICENSE file. 380 // BSD-style license that can be found in the LICENSE file.
366 381
367 382
368 @DocsEditable 383 @DocsEditable
369 @DomName('AudioNode') 384 @DomName('AudioNode')
385 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo de-section
386 @Experimental
370 class AudioNode native "AudioNode" { 387 class AudioNode native "AudioNode" {
371 388
372 @DomName('AudioNode.channelCount') 389 @DomName('AudioNode.channelCount')
373 @DocsEditable 390 @DocsEditable
374 int channelCount; 391 int channelCount;
375 392
376 @DomName('AudioNode.channelCountMode') 393 @DomName('AudioNode.channelCountMode')
377 @DocsEditable 394 @DocsEditable
378 String channelCountMode; 395 String channelCountMode;
379 396
(...skipping 21 matching lines...) Expand all
401 @DocsEditable 418 @DocsEditable
402 void disconnect(int output) native; 419 void disconnect(int output) native;
403 } 420 }
404 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 421 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
405 // for details. All rights reserved. Use of this source code is governed by a 422 // for details. All rights reserved. Use of this source code is governed by a
406 // BSD-style license that can be found in the LICENSE file. 423 // BSD-style license that can be found in the LICENSE file.
407 424
408 425
409 @DocsEditable 426 @DocsEditable
410 @DomName('AudioParam') 427 @DomName('AudioParam')
428 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa ram
429 @Experimental
411 class AudioParam native "AudioParam" { 430 class AudioParam native "AudioParam" {
412 431
413 @DomName('AudioParam.defaultValue') 432 @DomName('AudioParam.defaultValue')
414 @DocsEditable 433 @DocsEditable
415 final num defaultValue; 434 final num defaultValue;
416 435
417 @DomName('AudioParam.maxValue') 436 @DomName('AudioParam.maxValue')
418 @DocsEditable 437 @DocsEditable
419 final num maxValue; 438 final num maxValue;
420 439
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 @DocsEditable 477 @DocsEditable
459 void setValueCurveAtTime(Float32List values, num time, num duration) native; 478 void setValueCurveAtTime(Float32List values, num time, num duration) native;
460 } 479 }
461 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
462 // for details. All rights reserved. Use of this source code is governed by a 481 // for details. All rights reserved. Use of this source code is governed by a
463 // BSD-style license that can be found in the LICENSE file. 482 // BSD-style license that can be found in the LICENSE file.
464 483
465 484
466 @DocsEditable 485 @DocsEditable
467 @DomName('AudioProcessingEvent') 486 @DomName('AudioProcessingEvent')
487 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr ocessingEvent-section
488 @Experimental
468 class AudioProcessingEvent extends Event native "AudioProcessingEvent" { 489 class AudioProcessingEvent extends Event native "AudioProcessingEvent" {
469 490
470 @DomName('AudioProcessingEvent.inputBuffer') 491 @DomName('AudioProcessingEvent.inputBuffer')
471 @DocsEditable 492 @DocsEditable
472 final AudioBuffer inputBuffer; 493 final AudioBuffer inputBuffer;
473 494
474 @DomName('AudioProcessingEvent.outputBuffer') 495 @DomName('AudioProcessingEvent.outputBuffer')
475 @DocsEditable 496 @DocsEditable
476 final AudioBuffer outputBuffer; 497 final AudioBuffer outputBuffer;
477 } 498 }
478 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
479 // for details. All rights reserved. Use of this source code is governed by a 500 // for details. All rights reserved. Use of this source code is governed by a
480 // BSD-style license that can be found in the LICENSE file. 501 // BSD-style license that can be found in the LICENSE file.
481 502
482 503
483 @DocsEditable 504 @DocsEditable
484 @DomName('AudioSourceNode') 505 @DomName('AudioSourceNode')
506 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html
507 @Experimental
485 class AudioSourceNode extends AudioNode native "AudioSourceNode" { 508 class AudioSourceNode extends AudioNode native "AudioSourceNode" {
486 } 509 }
487 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 510 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
488 // for details. All rights reserved. Use of this source code is governed by a 511 // for details. All rights reserved. Use of this source code is governed by a
489 // BSD-style license that can be found in the LICENSE file. 512 // BSD-style license that can be found in the LICENSE file.
490 513
491 514
492 @DocsEditable 515 @DocsEditable
493 @DomName('BiquadFilterNode') 516 @DomName('BiquadFilterNode')
517 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF ilterNode-section
518 @Experimental
494 class BiquadFilterNode extends AudioNode native "BiquadFilterNode" { 519 class BiquadFilterNode extends AudioNode native "BiquadFilterNode" {
495 520
496 @DomName('BiquadFilterNode.ALLPASS') 521 @DomName('BiquadFilterNode.ALLPASS')
497 @DocsEditable 522 @DocsEditable
498 static const int ALLPASS = 7; 523 static const int ALLPASS = 7;
499 524
500 @DomName('BiquadFilterNode.BANDPASS') 525 @DomName('BiquadFilterNode.BANDPASS')
501 @DocsEditable 526 @DocsEditable
502 static const int BANDPASS = 2; 527 static const int BANDPASS = 2;
503 528
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 @DocsEditable 574 @DocsEditable
550 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl oat32List phaseResponse) native; 575 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl oat32List phaseResponse) native;
551 } 576 }
552 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 577 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
553 // for details. All rights reserved. Use of this source code is governed by a 578 // for details. All rights reserved. Use of this source code is governed by a
554 // BSD-style license that can be found in the LICENSE file. 579 // BSD-style license that can be found in the LICENSE file.
555 580
556 581
557 @DocsEditable 582 @DocsEditable
558 @DomName('ChannelMergerNode') 583 @DomName('ChannelMergerNode')
584 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel MergerNode-section
585 @Experimental
559 class ChannelMergerNode extends AudioNode native "ChannelMergerNode" { 586 class ChannelMergerNode extends AudioNode native "ChannelMergerNode" {
560 } 587 }
561 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 588 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
562 // for details. All rights reserved. Use of this source code is governed by a 589 // for details. All rights reserved. Use of this source code is governed by a
563 // BSD-style license that can be found in the LICENSE file. 590 // BSD-style license that can be found in the LICENSE file.
564 591
565 592
566 @DocsEditable 593 @DocsEditable
567 @DomName('ChannelSplitterNode') 594 @DomName('ChannelSplitterNode')
595 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel SplitterNode-section
596 @Experimental
568 class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode" { 597 class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode" {
569 } 598 }
570 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
571 // for details. All rights reserved. Use of this source code is governed by a 600 // for details. All rights reserved. Use of this source code is governed by a
572 // BSD-style license that can be found in the LICENSE file. 601 // BSD-style license that can be found in the LICENSE file.
573 602
574 603
575 @DocsEditable 604 @DocsEditable
576 @DomName('ConvolverNode') 605 @DomName('ConvolverNode')
606 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv erNode
607 @Experimental
577 class ConvolverNode extends AudioNode native "ConvolverNode" { 608 class ConvolverNode extends AudioNode native "ConvolverNode" {
578 609
579 @DomName('ConvolverNode.buffer') 610 @DomName('ConvolverNode.buffer')
580 @DocsEditable 611 @DocsEditable
581 AudioBuffer buffer; 612 AudioBuffer buffer;
582 613
583 @DomName('ConvolverNode.normalize') 614 @DomName('ConvolverNode.normalize')
584 @DocsEditable 615 @DocsEditable
585 bool normalize; 616 bool normalize;
586 } 617 }
587 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 618 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
588 // for details. All rights reserved. Use of this source code is governed by a 619 // for details. All rights reserved. Use of this source code is governed by a
589 // BSD-style license that can be found in the LICENSE file. 620 // BSD-style license that can be found in the LICENSE file.
590 621
591 622
592 @DocsEditable 623 @DocsEditable
593 @DomName('DelayNode') 624 @DomName('DelayNode')
625 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo de
626 @Experimental
594 class DelayNode extends AudioNode native "DelayNode" { 627 class DelayNode extends AudioNode native "DelayNode" {
595 628
596 @DomName('DelayNode.delayTime') 629 @DomName('DelayNode.delayTime')
597 @DocsEditable 630 @DocsEditable
598 final AudioParam delayTime; 631 final AudioParam delayTime;
599 } 632 }
600 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
601 // for details. All rights reserved. Use of this source code is governed by a 634 // for details. All rights reserved. Use of this source code is governed by a
602 // BSD-style license that can be found in the LICENSE file. 635 // BSD-style license that can be found in the LICENSE file.
603 636
604 637
605 @DocsEditable 638 @DocsEditable
606 @DomName('DynamicsCompressorNode') 639 @DomName('DynamicsCompressorNode')
640 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic sCompressorNode
641 @Experimental
607 class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" { 642 class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" {
608 643
609 @DomName('DynamicsCompressorNode.attack') 644 @DomName('DynamicsCompressorNode.attack')
610 @DocsEditable 645 @DocsEditable
611 final AudioParam attack; 646 final AudioParam attack;
612 647
613 @DomName('DynamicsCompressorNode.knee') 648 @DomName('DynamicsCompressorNode.knee')
614 @DocsEditable 649 @DocsEditable
615 final AudioParam knee; 650 final AudioParam knee;
616 651
(...skipping 13 matching lines...) Expand all
630 @DocsEditable 665 @DocsEditable
631 final AudioParam threshold; 666 final AudioParam threshold;
632 } 667 }
633 // 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
634 // 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
635 // BSD-style license that can be found in the LICENSE file. 670 // BSD-style license that can be found in the LICENSE file.
636 671
637 672
638 @DocsEditable 673 @DocsEditable
639 @DomName('GainNode') 674 @DomName('GainNode')
675 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod e
676 @Experimental
640 class GainNode extends AudioNode native "GainNode" { 677 class GainNode extends AudioNode native "GainNode" {
641 678
642 @DomName('GainNode.gain') 679 @DomName('GainNode.gain')
643 @DocsEditable 680 @DocsEditable
644 final AudioParam gain; 681 final AudioParam gain;
645 } 682 }
646 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
647 // for details. All rights reserved. Use of this source code is governed by a 684 // for details. All rights reserved. Use of this source code is governed by a
648 // BSD-style license that can be found in the LICENSE file. 685 // BSD-style license that can be found in the LICENSE file.
649 686
650 687
651 @DocsEditable 688 @DocsEditable
652 @DomName('MediaElementAudioSourceNode') 689 @DomName('MediaElementAudioSourceNode')
690 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl ementAudioSourceNode
691 @Experimental
653 class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAu dioSourceNode" { 692 class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAu dioSourceNode" {
654 693
655 @DomName('MediaElementAudioSourceNode.mediaElement') 694 @DomName('MediaElementAudioSourceNode.mediaElement')
656 @DocsEditable 695 @DocsEditable
696 @Experimental // non-standard
657 final MediaElement mediaElement; 697 final MediaElement mediaElement;
658 } 698 }
659 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 699 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
660 // for details. All rights reserved. Use of this source code is governed by a 700 // for details. All rights reserved. Use of this source code is governed by a
661 // BSD-style license that can be found in the LICENSE file. 701 // BSD-style license that can be found in the LICENSE file.
662 702
663 703
664 @DocsEditable 704 @DocsEditable
665 @DomName('MediaStreamAudioDestinationNode') 705 @DomName('MediaStreamAudioDestinationNode')
706 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt reamAudioDestinationNode
707 @Experimental
666 class MediaStreamAudioDestinationNode extends AudioSourceNode native "MediaStrea mAudioDestinationNode" { 708 class MediaStreamAudioDestinationNode extends AudioSourceNode native "MediaStrea mAudioDestinationNode" {
667 709
668 @DomName('MediaStreamAudioDestinationNode.stream') 710 @DomName('MediaStreamAudioDestinationNode.stream')
669 @DocsEditable 711 @DocsEditable
670 final MediaStream stream; 712 final MediaStream stream;
671 } 713 }
672 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 714 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
673 // for details. All rights reserved. Use of this source code is governed by a 715 // for details. All rights reserved. Use of this source code is governed by a
674 // BSD-style license that can be found in the LICENSE file. 716 // BSD-style license that can be found in the LICENSE file.
675 717
676 718
677 @DocsEditable 719 @DocsEditable
678 @DomName('MediaStreamAudioSourceNode') 720 @DomName('MediaStreamAudioSourceNode')
721 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt reamAudioSourceNode
722 @Experimental
679 class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudi oSourceNode" { 723 class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudi oSourceNode" {
680 724
681 @DomName('MediaStreamAudioSourceNode.mediaStream') 725 @DomName('MediaStreamAudioSourceNode.mediaStream')
682 @DocsEditable 726 @DocsEditable
683 final MediaStream mediaStream; 727 final MediaStream mediaStream;
684 } 728 }
685 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 729 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
686 // for details. All rights reserved. Use of this source code is governed by a 730 // for details. All rights reserved. Use of this source code is governed by a
687 // BSD-style license that can be found in the LICENSE file. 731 // BSD-style license that can be found in the LICENSE file.
688 732
689 733
690 @DocsEditable 734 @DocsEditable
691 @DomName('OfflineAudioCompletionEvent') 735 @DomName('OfflineAudioCompletionEvent')
736 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline AudioCompletionEvent-section
737 @Experimental
692 class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEv ent" { 738 class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEv ent" {
693 739
694 @DomName('OfflineAudioCompletionEvent.renderedBuffer') 740 @DomName('OfflineAudioCompletionEvent.renderedBuffer')
695 @DocsEditable 741 @DocsEditable
696 final AudioBuffer renderedBuffer; 742 final AudioBuffer renderedBuffer;
697 } 743 }
698 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 744 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
699 // for details. All rights reserved. Use of this source code is governed by a 745 // for details. All rights reserved. Use of this source code is governed by a
700 // BSD-style license that can be found in the LICENSE file. 746 // BSD-style license that can be found in the LICENSE file.
701 747
702 748
703 @DocsEditable 749 @DocsEditable
704 @DomName('OfflineAudioContext') 750 @DomName('OfflineAudioContext')
751 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline AudioContext-section
752 @Experimental
705 class OfflineAudioContext extends AudioContext implements EventTarget native "Of flineAudioContext" { 753 class OfflineAudioContext extends AudioContext implements EventTarget native "Of flineAudioContext" {
706 754
707 @DomName('OfflineAudioContext.OfflineAudioContext') 755 @DomName('OfflineAudioContext.OfflineAudioContext')
708 @DocsEditable 756 @DocsEditable
709 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp leRate) { 757 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp leRate) {
710 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl eRate); 758 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl eRate);
711 } 759 }
712 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan nels, numberOfFrames, sampleRate); 760 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan nels, numberOfFrames, sampleRate);
713 } 761 }
714 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 762 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
715 // for details. All rights reserved. Use of this source code is governed by a 763 // for details. All rights reserved. Use of this source code is governed by a
716 // BSD-style license that can be found in the LICENSE file. 764 // BSD-style license that can be found in the LICENSE file.
717 765
718 766
719 @DocsEditable 767 @DocsEditable
720 @DomName('OscillatorNode') 768 @DomName('OscillatorNode')
769 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc illatorNode
770 @Experimental
721 class OscillatorNode extends AudioSourceNode native "OscillatorNode" { 771 class OscillatorNode extends AudioSourceNode native "OscillatorNode" {
722 772
723 @DomName('OscillatorNode.CUSTOM') 773 @DomName('OscillatorNode.CUSTOM')
724 @DocsEditable 774 @DocsEditable
775 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames
776 @deprecated // deprecated
725 static const int CUSTOM = 4; 777 static const int CUSTOM = 4;
726 778
727 @DomName('OscillatorNode.FINISHED_STATE') 779 @DomName('OscillatorNode.FINISHED_STATE')
728 @DocsEditable 780 @DocsEditable
729 static const int FINISHED_STATE = 3; 781 static const int FINISHED_STATE = 3;
730 782
731 @DomName('OscillatorNode.PLAYING_STATE') 783 @DomName('OscillatorNode.PLAYING_STATE')
732 @DocsEditable 784 @DocsEditable
733 static const int PLAYING_STATE = 2; 785 static const int PLAYING_STATE = 2;
734 786
735 @DomName('OscillatorNode.SAWTOOTH') 787 @DomName('OscillatorNode.SAWTOOTH')
736 @DocsEditable 788 @DocsEditable
789 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames
790 @deprecated // deprecated
737 static const int SAWTOOTH = 2; 791 static const int SAWTOOTH = 2;
738 792
739 @DomName('OscillatorNode.SCHEDULED_STATE') 793 @DomName('OscillatorNode.SCHEDULED_STATE')
740 @DocsEditable 794 @DocsEditable
741 static const int SCHEDULED_STATE = 1; 795 static const int SCHEDULED_STATE = 1;
742 796
743 @DomName('OscillatorNode.SINE') 797 @DomName('OscillatorNode.SINE')
744 @DocsEditable 798 @DocsEditable
799 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames
800 @deprecated // deprecated
745 static const int SINE = 0; 801 static const int SINE = 0;
746 802
747 @DomName('OscillatorNode.SQUARE') 803 @DomName('OscillatorNode.SQUARE')
748 @DocsEditable 804 @DocsEditable
805 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames
806 @deprecated // deprecated
749 static const int SQUARE = 1; 807 static const int SQUARE = 1;
750 808
751 @DomName('OscillatorNode.TRIANGLE') 809 @DomName('OscillatorNode.TRIANGLE')
752 @DocsEditable 810 @DocsEditable
811 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames
812 @deprecated // deprecated
753 static const int TRIANGLE = 3; 813 static const int TRIANGLE = 3;
754 814
755 @DomName('OscillatorNode.UNSCHEDULED_STATE') 815 @DomName('OscillatorNode.UNSCHEDULED_STATE')
756 @DocsEditable 816 @DocsEditable
757 static const int UNSCHEDULED_STATE = 0; 817 static const int UNSCHEDULED_STATE = 0;
758 818
759 @DomName('OscillatorNode.detune') 819 @DomName('OscillatorNode.detune')
760 @DocsEditable 820 @DocsEditable
761 final AudioParam detune; 821 final AudioParam detune;
762 822
(...skipping 21 matching lines...) Expand all
784 @DocsEditable 844 @DocsEditable
785 void stop(num when) native; 845 void stop(num when) native;
786 } 846 }
787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 847 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
788 // for details. All rights reserved. Use of this source code is governed by a 848 // for details. All rights reserved. Use of this source code is governed by a
789 // BSD-style license that can be found in the LICENSE file. 849 // BSD-style license that can be found in the LICENSE file.
790 850
791 851
792 @DocsEditable 852 @DocsEditable
793 @DomName('PannerNode') 853 @DomName('PannerNode')
854 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN ode
855 @Experimental
794 class PannerNode extends AudioNode native "PannerNode" { 856 class PannerNode extends AudioNode native "PannerNode" {
795 857
796 @DomName('PannerNode.EQUALPOWER') 858 @DomName('PannerNode.EQUALPOWER')
797 @DocsEditable 859 @DocsEditable
860 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames
861 @deprecated // deprecated
798 static const int EQUALPOWER = 0; 862 static const int EQUALPOWER = 0;
799 863
800 @DomName('PannerNode.EXPONENTIAL_DISTANCE') 864 @DomName('PannerNode.EXPONENTIAL_DISTANCE')
801 @DocsEditable 865 @DocsEditable
866 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames
867 @deprecated // deprecated
802 static const int EXPONENTIAL_DISTANCE = 2; 868 static const int EXPONENTIAL_DISTANCE = 2;
803 869
804 @DomName('PannerNode.HRTF') 870 @DomName('PannerNode.HRTF')
805 @DocsEditable 871 @DocsEditable
872 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames
873 @deprecated // deprecated
806 static const int HRTF = 1; 874 static const int HRTF = 1;
807 875
808 @DomName('PannerNode.INVERSE_DISTANCE') 876 @DomName('PannerNode.INVERSE_DISTANCE')
809 @DocsEditable 877 @DocsEditable
878 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames
879 @deprecated // deprecated
810 static const int INVERSE_DISTANCE = 1; 880 static const int INVERSE_DISTANCE = 1;
811 881
812 @DomName('PannerNode.LINEAR_DISTANCE') 882 @DomName('PannerNode.LINEAR_DISTANCE')
813 @DocsEditable 883 @DocsEditable
884 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames
885 @deprecated // deprecated
814 static const int LINEAR_DISTANCE = 0; 886 static const int LINEAR_DISTANCE = 0;
815 887
816 @DomName('PannerNode.SOUNDFIELD') 888 @DomName('PannerNode.SOUNDFIELD')
817 @DocsEditable 889 @DocsEditable
890 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter nateNames
891 @deprecated // deprecated
818 static const int SOUNDFIELD = 2; 892 static const int SOUNDFIELD = 2;
819 893
820 @DomName('PannerNode.coneInnerAngle') 894 @DomName('PannerNode.coneInnerAngle')
821 @DocsEditable 895 @DocsEditable
822 num coneInnerAngle; 896 num coneInnerAngle;
823 897
824 @DomName('PannerNode.coneOuterAngle') 898 @DomName('PannerNode.coneOuterAngle')
825 @DocsEditable 899 @DocsEditable
826 num coneOuterAngle; 900 num coneOuterAngle;
827 901
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 @DomName('PannerNode.setVelocity') 934 @DomName('PannerNode.setVelocity')
861 @DocsEditable 935 @DocsEditable
862 void setVelocity(num x, num y, num z) native; 936 void setVelocity(num x, num y, num z) native;
863 } 937 }
864 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 938 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
865 // for details. All rights reserved. Use of this source code is governed by a 939 // for details. All rights reserved. Use of this source code is governed by a
866 // BSD-style license that can be found in the LICENSE file. 940 // BSD-style license that can be found in the LICENSE file.
867 941
868 942
869 @DomName('ScriptProcessorNode') 943 @DomName('ScriptProcessorNode')
944 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP rocessorNode
945 @Experimental
870 class ScriptProcessorNode extends AudioNode native "ScriptProcessorNode" { 946 class ScriptProcessorNode extends AudioNode native "ScriptProcessorNode" {
871 Stream<AudioProcessingEvent> _eventStream; 947 Stream<AudioProcessingEvent> _eventStream;
872 948
873 /** 949 /**
874 * Get a Stream that fires events when AudioProcessingEvents occur. 950 * Get a Stream that fires events when AudioProcessingEvents occur.
875 * This particular stream is special in that it only allows one listener to a 951 * This particular stream is special in that it only allows one listener to a
876 * given stream. Converting the returned Stream [asBroadcast] will likely ruin 952 * given stream. Converting the returned Stream [asBroadcast] will likely ruin
877 * the soft-real-time properties which which these events are fired and can 953 * the soft-real-time properties which which these events are fired and can
878 * be processed. 954 * be processed.
879 */ 955 */
(...skipping 26 matching lines...) Expand all
906 final int bufferSize; 982 final int bufferSize;
907 983
908 } 984 }
909 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 985 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
910 // for details. All rights reserved. Use of this source code is governed by a 986 // for details. All rights reserved. Use of this source code is governed by a
911 // BSD-style license that can be found in the LICENSE file. 987 // BSD-style license that can be found in the LICENSE file.
912 988
913 989
914 @DocsEditable 990 @DocsEditable
915 @DomName('WaveShaperNode') 991 @DomName('WaveShaperNode')
992 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav eShaperNode
993 @Experimental
916 class WaveShaperNode extends AudioNode native "WaveShaperNode" { 994 class WaveShaperNode extends AudioNode native "WaveShaperNode" {
917 995
918 @DomName('WaveShaperNode.curve') 996 @DomName('WaveShaperNode.curve')
919 @DocsEditable 997 @DocsEditable
920 Float32List curve; 998 Float32List curve;
921 } 999 }
922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1000 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
923 // for details. All rights reserved. Use of this source code is governed by a 1001 // for details. All rights reserved. Use of this source code is governed by a
924 // BSD-style license that can be found in the LICENSE file. 1002 // BSD-style license that can be found in the LICENSE file.
925 1003
926 1004
927 @DocsEditable 1005 @DocsEditable
928 @DomName('WaveTable') 1006 @DomName('WaveTable')
1007 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab le-section
1008 @Experimental
929 class WaveTable native "WaveTable" { 1009 class WaveTable native "WaveTable" {
930 } 1010 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698