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

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

Issue 13973017: Revert "Revert "Allow multiple tags in native clause."" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: rebase Created 7 years, 8 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:typeddata'; 8 import 'dart:typeddata';
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 class AnalyserNode extends AudioNode native "*AnalyserNode" { 25 class AnalyserNode extends AudioNode native "AnalyserNode" {
26 26
27 @DomName('AnalyserNode.fftSize') 27 @DomName('AnalyserNode.fftSize')
28 @DocsEditable 28 @DocsEditable
29 int fftSize; 29 int fftSize;
30 30
31 @DomName('AnalyserNode.frequencyBinCount') 31 @DomName('AnalyserNode.frequencyBinCount')
32 @DocsEditable 32 @DocsEditable
33 final int frequencyBinCount; 33 final int frequencyBinCount;
34 34
35 @DomName('AnalyserNode.maxDecibels') 35 @DomName('AnalyserNode.maxDecibels')
(...skipping 20 matching lines...) Expand all
56 @DocsEditable 56 @DocsEditable
57 void getFloatFrequencyData(Float32List array) native; 57 void getFloatFrequencyData(Float32List array) native;
58 } 58 }
59 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 59 // 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 60 // 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. 61 // BSD-style license that can be found in the LICENSE file.
62 62
63 63
64 @DocsEditable 64 @DocsEditable
65 @DomName('AudioBuffer') 65 @DomName('AudioBuffer')
66 class AudioBuffer native "*AudioBuffer" { 66 class AudioBuffer native "AudioBuffer" {
67 67
68 @DomName('AudioBuffer.duration') 68 @DomName('AudioBuffer.duration')
69 @DocsEditable 69 @DocsEditable
70 final num duration; 70 final num duration;
71 71
72 @DomName('AudioBuffer.gain') 72 @DomName('AudioBuffer.gain')
73 @DocsEditable 73 @DocsEditable
74 num gain; 74 num gain;
75 75
76 @DomName('AudioBuffer.length') 76 @DomName('AudioBuffer.length')
(...skipping 21 matching lines...) Expand all
98 // WARNING: Do not edit - generated code. 98 // WARNING: Do not edit - generated code.
99 99
100 100
101 typedef void AudioBufferCallback(AudioBuffer audioBuffer); 101 typedef void AudioBufferCallback(AudioBuffer audioBuffer);
102 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 102 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
103 // for details. All rights reserved. Use of this source code is governed by a 103 // for details. All rights reserved. Use of this source code is governed by a
104 // BSD-style license that can be found in the LICENSE file. 104 // BSD-style license that can be found in the LICENSE file.
105 105
106 106
107 @DomName('AudioBufferSourceNode') 107 @DomName('AudioBufferSourceNode')
108 class AudioBufferSourceNode extends AudioSourceNode native "*AudioBufferSourceNo de" { 108 class AudioBufferSourceNode extends AudioSourceNode native "AudioBufferSourceNod e" {
109 109
110 // TODO(efortuna): Remove these methods when Chrome stable also uses start 110 // TODO(efortuna): Remove these methods when Chrome stable also uses start
111 // instead of noteOn. 111 // instead of noteOn.
112 void start(num when, [num grainOffset, num grainDuration]) { 112 void start(num when, [num grainOffset, num grainDuration]) {
113 if (JS('bool', '!!#.start', this)) { 113 if (JS('bool', '!!#.start', this)) {
114 if (?grainDuration) { 114 if (?grainDuration) {
115 JS('void', '#.start(#, #, #)', this, when, grainOffset, grainDuration); 115 JS('void', '#.start(#, #, #)', this, when, grainOffset, grainDuration);
116 } else if (?grainOffset) { 116 } else if (?grainOffset) {
117 JS('void', '#.start(#, #)', this, when, grainOffset); 117 JS('void', '#.start(#, #)', this, when, grainOffset);
118 } else { 118 } else {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 @DocsEditable 173 @DocsEditable
174 final int playbackState; 174 final int playbackState;
175 175
176 } 176 }
177 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 177 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
178 // for details. All rights reserved. Use of this source code is governed by a 178 // for details. All rights reserved. Use of this source code is governed by a
179 // BSD-style license that can be found in the LICENSE file. 179 // BSD-style license that can be found in the LICENSE file.
180 180
181 181
182 @DomName('AudioContext') 182 @DomName('AudioContext')
183 class AudioContext extends EventTarget native "*AudioContext" { 183 class AudioContext extends EventTarget native "AudioContext" {
184 184
185 @DomName('AudioContext.completeEvent') 185 @DomName('AudioContext.completeEvent')
186 @DocsEditable 186 @DocsEditable
187 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi der<Event>('complete'); 187 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi der<Event>('complete');
188 188
189 /// Checks if this type is supported on the current platform. 189 /// Checks if this type is supported on the current platform.
190 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk itAudioContext)'); 190 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk itAudioContext)');
191 191
192 @DomName('AudioContext.activeSourceCount') 192 @DomName('AudioContext.activeSourceCount')
193 @DocsEditable 193 @DocsEditable
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 } 312 }
313 } 313 }
314 } 314 }
315 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 315 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
316 // for details. All rights reserved. Use of this source code is governed by a 316 // for details. All rights reserved. Use of this source code is governed by a
317 // BSD-style license that can be found in the LICENSE file. 317 // BSD-style license that can be found in the LICENSE file.
318 318
319 319
320 @DocsEditable 320 @DocsEditable
321 @DomName('AudioDestinationNode') 321 @DomName('AudioDestinationNode')
322 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" { 322 class AudioDestinationNode extends AudioNode native "AudioDestinationNode" {
323 323
324 @DomName('AudioDestinationNode.maxChannelCount') 324 @DomName('AudioDestinationNode.maxChannelCount')
325 @DocsEditable 325 @DocsEditable
326 final int maxChannelCount; 326 final int maxChannelCount;
327 } 327 }
328 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 328 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
329 // for details. All rights reserved. Use of this source code is governed by a 329 // for details. All rights reserved. Use of this source code is governed by a
330 // BSD-style license that can be found in the LICENSE file. 330 // BSD-style license that can be found in the LICENSE file.
331 331
332 332
333 @DocsEditable 333 @DocsEditable
334 @DomName('AudioListener') 334 @DomName('AudioListener')
335 class AudioListener native "*AudioListener" { 335 class AudioListener native "AudioListener" {
336 336
337 @DomName('AudioListener.dopplerFactor') 337 @DomName('AudioListener.dopplerFactor')
338 @DocsEditable 338 @DocsEditable
339 num dopplerFactor; 339 num dopplerFactor;
340 340
341 @DomName('AudioListener.speedOfSound') 341 @DomName('AudioListener.speedOfSound')
342 @DocsEditable 342 @DocsEditable
343 num speedOfSound; 343 num speedOfSound;
344 344
345 @DomName('AudioListener.setOrientation') 345 @DomName('AudioListener.setOrientation')
346 @DocsEditable 346 @DocsEditable
347 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; 347 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native;
348 348
349 @DomName('AudioListener.setPosition') 349 @DomName('AudioListener.setPosition')
350 @DocsEditable 350 @DocsEditable
351 void setPosition(num x, num y, num z) native; 351 void setPosition(num x, num y, num z) native;
352 352
353 @DomName('AudioListener.setVelocity') 353 @DomName('AudioListener.setVelocity')
354 @DocsEditable 354 @DocsEditable
355 void setVelocity(num x, num y, num z) native; 355 void setVelocity(num x, num y, num z) native;
356 } 356 }
357 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 357 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
358 // for details. All rights reserved. Use of this source code is governed by a 358 // for details. All rights reserved. Use of this source code is governed by a
359 // BSD-style license that can be found in the LICENSE file. 359 // BSD-style license that can be found in the LICENSE file.
360 360
361 361
362 @DocsEditable 362 @DocsEditable
363 @DomName('AudioNode') 363 @DomName('AudioNode')
364 class AudioNode native "*AudioNode" { 364 class AudioNode native "AudioNode" {
365 365
366 @DomName('AudioNode.channelCount') 366 @DomName('AudioNode.channelCount')
367 @DocsEditable 367 @DocsEditable
368 int channelCount; 368 int channelCount;
369 369
370 @DomName('AudioNode.channelCountMode') 370 @DomName('AudioNode.channelCountMode')
371 @DocsEditable 371 @DocsEditable
372 String channelCountMode; 372 String channelCountMode;
373 373
374 @DomName('AudioNode.channelInterpretation') 374 @DomName('AudioNode.channelInterpretation')
(...skipping 20 matching lines...) Expand all
395 @DocsEditable 395 @DocsEditable
396 void disconnect(int output) native; 396 void disconnect(int output) native;
397 } 397 }
398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
399 // for details. All rights reserved. Use of this source code is governed by a 399 // for details. All rights reserved. Use of this source code is governed by a
400 // BSD-style license that can be found in the LICENSE file. 400 // BSD-style license that can be found in the LICENSE file.
401 401
402 402
403 @DocsEditable 403 @DocsEditable
404 @DomName('AudioParam') 404 @DomName('AudioParam')
405 class AudioParam native "*AudioParam" { 405 class AudioParam native "AudioParam" {
406 406
407 @DomName('AudioParam.defaultValue') 407 @DomName('AudioParam.defaultValue')
408 @DocsEditable 408 @DocsEditable
409 final num defaultValue; 409 final num defaultValue;
410 410
411 @DomName('AudioParam.maxValue') 411 @DomName('AudioParam.maxValue')
412 @DocsEditable 412 @DocsEditable
413 final num maxValue; 413 final num maxValue;
414 414
415 @DomName('AudioParam.minValue') 415 @DomName('AudioParam.minValue')
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 @DocsEditable 452 @DocsEditable
453 void setValueCurveAtTime(Float32List values, num time, num duration) native; 453 void setValueCurveAtTime(Float32List values, num time, num duration) native;
454 } 454 }
455 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 455 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
456 // for details. All rights reserved. Use of this source code is governed by a 456 // for details. All rights reserved. Use of this source code is governed by a
457 // BSD-style license that can be found in the LICENSE file. 457 // BSD-style license that can be found in the LICENSE file.
458 458
459 459
460 @DocsEditable 460 @DocsEditable
461 @DomName('AudioProcessingEvent') 461 @DomName('AudioProcessingEvent')
462 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" { 462 class AudioProcessingEvent extends Event native "AudioProcessingEvent" {
463 463
464 @DomName('AudioProcessingEvent.inputBuffer') 464 @DomName('AudioProcessingEvent.inputBuffer')
465 @DocsEditable 465 @DocsEditable
466 final AudioBuffer inputBuffer; 466 final AudioBuffer inputBuffer;
467 467
468 @DomName('AudioProcessingEvent.outputBuffer') 468 @DomName('AudioProcessingEvent.outputBuffer')
469 @DocsEditable 469 @DocsEditable
470 final AudioBuffer outputBuffer; 470 final AudioBuffer outputBuffer;
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 476
477 @DocsEditable 477 @DocsEditable
478 @DomName('AudioSourceNode') 478 @DomName('AudioSourceNode')
479 class AudioSourceNode extends AudioNode native "*AudioSourceNode" { 479 class AudioSourceNode extends AudioNode native "AudioSourceNode" {
480 } 480 }
481 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 481 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
482 // for details. All rights reserved. Use of this source code is governed by a 482 // for details. All rights reserved. Use of this source code is governed by a
483 // BSD-style license that can be found in the LICENSE file. 483 // BSD-style license that can be found in the LICENSE file.
484 484
485 485
486 @DocsEditable 486 @DocsEditable
487 @DomName('BiquadFilterNode') 487 @DomName('BiquadFilterNode')
488 class BiquadFilterNode extends AudioNode native "*BiquadFilterNode" { 488 class BiquadFilterNode extends AudioNode native "BiquadFilterNode" {
489 489
490 static const int ALLPASS = 7; 490 static const int ALLPASS = 7;
491 491
492 static const int BANDPASS = 2; 492 static const int BANDPASS = 2;
493 493
494 static const int HIGHPASS = 1; 494 static const int HIGHPASS = 1;
495 495
496 static const int HIGHSHELF = 4; 496 static const int HIGHSHELF = 4;
497 497
498 static const int LOWPASS = 0; 498 static const int LOWPASS = 0;
(...skipping 28 matching lines...) Expand all
527 @DocsEditable 527 @DocsEditable
528 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl oat32List phaseResponse) native; 528 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl oat32List phaseResponse) native;
529 } 529 }
530 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 530 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
531 // for details. All rights reserved. Use of this source code is governed by a 531 // for details. All rights reserved. Use of this source code is governed by a
532 // BSD-style license that can be found in the LICENSE file. 532 // BSD-style license that can be found in the LICENSE file.
533 533
534 534
535 @DocsEditable 535 @DocsEditable
536 @DomName('ChannelMergerNode') 536 @DomName('ChannelMergerNode')
537 class ChannelMergerNode extends AudioNode native "*ChannelMergerNode" { 537 class ChannelMergerNode extends AudioNode native "ChannelMergerNode" {
538 } 538 }
539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
540 // for details. All rights reserved. Use of this source code is governed by a 540 // for details. All rights reserved. Use of this source code is governed by a
541 // BSD-style license that can be found in the LICENSE file. 541 // BSD-style license that can be found in the LICENSE file.
542 542
543 543
544 @DocsEditable 544 @DocsEditable
545 @DomName('ChannelSplitterNode') 545 @DomName('ChannelSplitterNode')
546 class ChannelSplitterNode extends AudioNode native "*ChannelSplitterNode" { 546 class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode" {
547 } 547 }
548 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 548 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
549 // for details. All rights reserved. Use of this source code is governed by a 549 // for details. All rights reserved. Use of this source code is governed by a
550 // BSD-style license that can be found in the LICENSE file. 550 // BSD-style license that can be found in the LICENSE file.
551 551
552 552
553 @DocsEditable 553 @DocsEditable
554 @DomName('ConvolverNode') 554 @DomName('ConvolverNode')
555 class ConvolverNode extends AudioNode native "*ConvolverNode" { 555 class ConvolverNode extends AudioNode native "ConvolverNode" {
556 556
557 @DomName('ConvolverNode.buffer') 557 @DomName('ConvolverNode.buffer')
558 @DocsEditable 558 @DocsEditable
559 AudioBuffer buffer; 559 AudioBuffer buffer;
560 560
561 @DomName('ConvolverNode.normalize') 561 @DomName('ConvolverNode.normalize')
562 @DocsEditable 562 @DocsEditable
563 bool normalize; 563 bool normalize;
564 } 564 }
565 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 565 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
566 // for details. All rights reserved. Use of this source code is governed by a 566 // for details. All rights reserved. Use of this source code is governed by a
567 // BSD-style license that can be found in the LICENSE file. 567 // BSD-style license that can be found in the LICENSE file.
568 568
569 569
570 @DocsEditable 570 @DocsEditable
571 @DomName('DelayNode') 571 @DomName('DelayNode')
572 class DelayNode extends AudioNode native "*DelayNode" { 572 class DelayNode extends AudioNode native "DelayNode" {
573 573
574 @DomName('DelayNode.delayTime') 574 @DomName('DelayNode.delayTime')
575 @DocsEditable 575 @DocsEditable
576 final AudioParam delayTime; 576 final AudioParam delayTime;
577 } 577 }
578 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 578 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
579 // for details. All rights reserved. Use of this source code is governed by a 579 // for details. All rights reserved. Use of this source code is governed by a
580 // BSD-style license that can be found in the LICENSE file. 580 // BSD-style license that can be found in the LICENSE file.
581 581
582 582
583 @DocsEditable 583 @DocsEditable
584 @DomName('DynamicsCompressorNode') 584 @DomName('DynamicsCompressorNode')
585 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode" { 585 class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" {
586 586
587 @DomName('DynamicsCompressorNode.attack') 587 @DomName('DynamicsCompressorNode.attack')
588 @DocsEditable 588 @DocsEditable
589 final AudioParam attack; 589 final AudioParam attack;
590 590
591 @DomName('DynamicsCompressorNode.knee') 591 @DomName('DynamicsCompressorNode.knee')
592 @DocsEditable 592 @DocsEditable
593 final AudioParam knee; 593 final AudioParam knee;
594 594
595 @DomName('DynamicsCompressorNode.ratio') 595 @DomName('DynamicsCompressorNode.ratio')
(...skipping 12 matching lines...) Expand all
608 @DocsEditable 608 @DocsEditable
609 final AudioParam threshold; 609 final AudioParam threshold;
610 } 610 }
611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
612 // for details. All rights reserved. Use of this source code is governed by a 612 // for details. All rights reserved. Use of this source code is governed by a
613 // BSD-style license that can be found in the LICENSE file. 613 // BSD-style license that can be found in the LICENSE file.
614 614
615 615
616 @DocsEditable 616 @DocsEditable
617 @DomName('GainNode') 617 @DomName('GainNode')
618 class GainNode extends AudioNode native "*GainNode" { 618 class GainNode extends AudioNode native "GainNode" {
619 619
620 @DomName('GainNode.gain') 620 @DomName('GainNode.gain')
621 @DocsEditable 621 @DocsEditable
622 final AudioParam gain; 622 final AudioParam gain;
623 } 623 }
624 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 624 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
625 // for details. All rights reserved. Use of this source code is governed by a 625 // for details. All rights reserved. Use of this source code is governed by a
626 // BSD-style license that can be found in the LICENSE file. 626 // BSD-style license that can be found in the LICENSE file.
627 627
628 628
629 @DocsEditable 629 @DocsEditable
630 @DomName('MediaElementAudioSourceNode') 630 @DomName('MediaElementAudioSourceNode')
631 class MediaElementAudioSourceNode extends AudioSourceNode native "*MediaElementA udioSourceNode" { 631 class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAu dioSourceNode" {
632 632
633 @DomName('MediaElementAudioSourceNode.mediaElement') 633 @DomName('MediaElementAudioSourceNode.mediaElement')
634 @DocsEditable 634 @DocsEditable
635 final MediaElement mediaElement; 635 final MediaElement mediaElement;
636 } 636 }
637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
638 // for details. All rights reserved. Use of this source code is governed by a 638 // for details. All rights reserved. Use of this source code is governed by a
639 // BSD-style license that can be found in the LICENSE file. 639 // BSD-style license that can be found in the LICENSE file.
640 640
641 641
642 @DocsEditable 642 @DocsEditable
643 @DomName('MediaStreamAudioDestinationNode') 643 @DomName('MediaStreamAudioDestinationNode')
644 class MediaStreamAudioDestinationNode extends AudioSourceNode native "*MediaStre amAudioDestinationNode" { 644 class MediaStreamAudioDestinationNode extends AudioSourceNode native "MediaStrea mAudioDestinationNode" {
645 645
646 @DomName('MediaStreamAudioDestinationNode.stream') 646 @DomName('MediaStreamAudioDestinationNode.stream')
647 @DocsEditable 647 @DocsEditable
648 final MediaStream stream; 648 final MediaStream stream;
649 } 649 }
650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
651 // for details. All rights reserved. Use of this source code is governed by a 651 // for details. All rights reserved. Use of this source code is governed by a
652 // BSD-style license that can be found in the LICENSE file. 652 // BSD-style license that can be found in the LICENSE file.
653 653
654 654
655 @DocsEditable 655 @DocsEditable
656 @DomName('MediaStreamAudioSourceNode') 656 @DomName('MediaStreamAudioSourceNode')
657 class MediaStreamAudioSourceNode extends AudioSourceNode native "*MediaStreamAud ioSourceNode" { 657 class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudi oSourceNode" {
658 658
659 @DomName('MediaStreamAudioSourceNode.mediaStream') 659 @DomName('MediaStreamAudioSourceNode.mediaStream')
660 @DocsEditable 660 @DocsEditable
661 final MediaStream mediaStream; 661 final MediaStream mediaStream;
662 } 662 }
663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
664 // for details. All rights reserved. Use of this source code is governed by a 664 // for details. All rights reserved. Use of this source code is governed by a
665 // BSD-style license that can be found in the LICENSE file. 665 // BSD-style license that can be found in the LICENSE file.
666 666
667 667
668 @DocsEditable 668 @DocsEditable
669 @DomName('OfflineAudioCompletionEvent') 669 @DomName('OfflineAudioCompletionEvent')
670 class OfflineAudioCompletionEvent extends Event native "*OfflineAudioCompletionE vent" { 670 class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEv ent" {
671 671
672 @DomName('OfflineAudioCompletionEvent.renderedBuffer') 672 @DomName('OfflineAudioCompletionEvent.renderedBuffer')
673 @DocsEditable 673 @DocsEditable
674 final AudioBuffer renderedBuffer; 674 final AudioBuffer renderedBuffer;
675 } 675 }
676 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 676 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
677 // for details. All rights reserved. Use of this source code is governed by a 677 // for details. All rights reserved. Use of this source code is governed by a
678 // BSD-style license that can be found in the LICENSE file. 678 // BSD-style license that can be found in the LICENSE file.
679 679
680 680
681 @DocsEditable 681 @DocsEditable
682 @DomName('OfflineAudioContext') 682 @DomName('OfflineAudioContext')
683 class OfflineAudioContext extends AudioContext implements EventTarget native "*O fflineAudioContext" { 683 class OfflineAudioContext extends AudioContext implements EventTarget native "Of flineAudioContext" {
684 684
685 @DomName('OfflineAudioContext.OfflineAudioContext') 685 @DomName('OfflineAudioContext.OfflineAudioContext')
686 @DocsEditable 686 @DocsEditable
687 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp leRate) { 687 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp leRate) {
688 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl eRate); 688 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl eRate);
689 } 689 }
690 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan nels, numberOfFrames, sampleRate); 690 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan nels, numberOfFrames, sampleRate);
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 696
697 @DocsEditable 697 @DocsEditable
698 @DomName('OscillatorNode') 698 @DomName('OscillatorNode')
699 class OscillatorNode extends AudioSourceNode native "*OscillatorNode" { 699 class OscillatorNode extends AudioSourceNode native "OscillatorNode" {
700 700
701 static const int CUSTOM = 4; 701 static const int CUSTOM = 4;
702 702
703 static const int FINISHED_STATE = 3; 703 static const int FINISHED_STATE = 3;
704 704
705 static const int PLAYING_STATE = 2; 705 static const int PLAYING_STATE = 2;
706 706
707 static const int SAWTOOTH = 2; 707 static const int SAWTOOTH = 2;
708 708
709 static const int SCHEDULED_STATE = 1; 709 static const int SCHEDULED_STATE = 1;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 @DocsEditable 744 @DocsEditable
745 void stop(num when) native; 745 void stop(num when) native;
746 } 746 }
747 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 747 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
748 // for details. All rights reserved. Use of this source code is governed by a 748 // for details. All rights reserved. Use of this source code is governed by a
749 // BSD-style license that can be found in the LICENSE file. 749 // BSD-style license that can be found in the LICENSE file.
750 750
751 751
752 @DocsEditable 752 @DocsEditable
753 @DomName('PannerNode') 753 @DomName('PannerNode')
754 class PannerNode extends AudioNode native "*PannerNode" { 754 class PannerNode extends AudioNode native "PannerNode" {
755 755
756 static const int EQUALPOWER = 0; 756 static const int EQUALPOWER = 0;
757 757
758 static const int EXPONENTIAL_DISTANCE = 2; 758 static const int EXPONENTIAL_DISTANCE = 2;
759 759
760 static const int HRTF = 1; 760 static const int HRTF = 1;
761 761
762 static const int INVERSE_DISTANCE = 1; 762 static const int INVERSE_DISTANCE = 1;
763 763
764 static const int LINEAR_DISTANCE = 0; 764 static const int LINEAR_DISTANCE = 0;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 @DomName('PannerNode.setVelocity') 808 @DomName('PannerNode.setVelocity')
809 @DocsEditable 809 @DocsEditable
810 void setVelocity(num x, num y, num z) native; 810 void setVelocity(num x, num y, num z) native;
811 } 811 }
812 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 812 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
813 // for details. All rights reserved. Use of this source code is governed by a 813 // for details. All rights reserved. Use of this source code is governed by a
814 // BSD-style license that can be found in the LICENSE file. 814 // BSD-style license that can be found in the LICENSE file.
815 815
816 816
817 @DomName('ScriptProcessorNode') 817 @DomName('ScriptProcessorNode')
818 class ScriptProcessorNode extends AudioNode native "*ScriptProcessorNode" { 818 class ScriptProcessorNode extends AudioNode native "ScriptProcessorNode" {
819 Stream<AudioProcessingEvent> _eventStream; 819 Stream<AudioProcessingEvent> _eventStream;
820 820
821 /** 821 /**
822 * Get a Stream that fires events when AudioProcessingEvents occur. 822 * Get a Stream that fires events when AudioProcessingEvents occur.
823 * This particular stream is special in that it only allows one listener to a 823 * This particular stream is special in that it only allows one listener to a
824 * given stream. Converting the returned Stream [asBroadcast] will likely ruin 824 * given stream. Converting the returned Stream [asBroadcast] will likely ruin
825 * the soft-real-time properties which which these events are fired and can 825 * the soft-real-time properties which which these events are fired and can
826 * be processed. 826 * be processed.
827 */ 827 */
828 Stream<AudioProcessingEvent> get onAudioProcess { 828 Stream<AudioProcessingEvent> get onAudioProcess {
(...skipping 25 matching lines...) Expand all
854 final int bufferSize; 854 final int bufferSize;
855 855
856 } 856 }
857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
858 // for details. All rights reserved. Use of this source code is governed by a 858 // for details. All rights reserved. Use of this source code is governed by a
859 // BSD-style license that can be found in the LICENSE file. 859 // BSD-style license that can be found in the LICENSE file.
860 860
861 861
862 @DocsEditable 862 @DocsEditable
863 @DomName('WaveShaperNode') 863 @DomName('WaveShaperNode')
864 class WaveShaperNode extends AudioNode native "*WaveShaperNode" { 864 class WaveShaperNode extends AudioNode native "WaveShaperNode" {
865 865
866 @DomName('WaveShaperNode.curve') 866 @DomName('WaveShaperNode.curve')
867 @DocsEditable 867 @DocsEditable
868 @Returns('Float32List') 868 @Returns('Float32List')
869 @Creates('Float32List') 869 @Creates('Float32List')
870 List<double> curve; 870 List<double> curve;
871 } 871 }
872 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 872 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
873 // for details. All rights reserved. Use of this source code is governed by a 873 // for details. All rights reserved. Use of this source code is governed by a
874 // BSD-style license that can be found in the LICENSE file. 874 // BSD-style license that can be found in the LICENSE file.
875 875
876 876
877 @DocsEditable 877 @DocsEditable
878 @DomName('WaveTable') 878 @DomName('WaveTable')
879 class WaveTable native "*WaveTable" { 879 class WaveTable native "WaveTable" {
880 } 880 }
OLDNEW
« no previous file with comments | « sdk/lib/typeddata/dart2js/typeddata_dart2js.dart ('k') | sdk/lib/web_gl/dart2js/web_gl_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698