| 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, JSName, Returns, convertDartClosureToJS; | 9 import 'dart:_js_helper' show Creates, JSName, Returns, convertDartClosureToJS; |
| 10 import 'dart:_foreign_helper' show JS; | 10 import 'dart:_foreign_helper' show JS; |
| 11 import 'dart:_interceptors' show Interceptor; | 11 import 'dart:_interceptors' show Interceptor; |
| 12 // DO NOT EDIT - unless you are editing documentation as per: | 12 // DO NOT EDIT - unless you are editing documentation as per: |
| 13 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation | 13 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation |
| 14 // Auto-generated dart:audio library. | 14 // Auto-generated dart:audio library. |
| 15 | 15 |
| 16 | 16 |
| 17 | 17 |
| 18 | 18 |
| 19 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20 // for details. All rights reserved. Use of this source code is governed by a | 20 // for details. All rights reserved. Use of this source code is governed by a |
| 21 // BSD-style license that can be found in the LICENSE file. | 21 // BSD-style license that can be found in the LICENSE file. |
| 22 | 22 |
| 23 | 23 |
| 24 @DocsEditable | 24 @DocsEditable |
| 25 @DomName('AnalyserNode') | 25 @DomName('AnalyserNode') |
| 26 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Analyse
rNode | 26 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Analyse
rNode |
| 27 @Experimental | 27 @Experimental |
| 28 class AnalyserNode extends AudioNode native "AnalyserNode" { | 28 class AnalyserNode extends AudioNode native "AnalyserNode" { |
| 29 // To suppress missing implicit constructor warnings. | |
| 30 factory AnalyserNode._() { throw new UnsupportedError("Not supported"); } | |
| 31 | 29 |
| 32 @DomName('AnalyserNode.fftSize') | 30 @DomName('AnalyserNode.fftSize') |
| 33 @DocsEditable | 31 @DocsEditable |
| 34 int fftSize; | 32 int fftSize; |
| 35 | 33 |
| 36 @DomName('AnalyserNode.frequencyBinCount') | 34 @DomName('AnalyserNode.frequencyBinCount') |
| 37 @DocsEditable | 35 @DocsEditable |
| 38 final int frequencyBinCount; | 36 final int frequencyBinCount; |
| 39 | 37 |
| 40 @DomName('AnalyserNode.maxDecibels') | 38 @DomName('AnalyserNode.maxDecibels') |
| (...skipping 23 matching lines...) Expand all Loading... |
| 64 // 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 |
| 65 // 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 |
| 66 // BSD-style license that can be found in the LICENSE file. | 64 // BSD-style license that can be found in the LICENSE file. |
| 67 | 65 |
| 68 | 66 |
| 69 @DocsEditable | 67 @DocsEditable |
| 70 @DomName('AudioBuffer') | 68 @DomName('AudioBuffer') |
| 71 // 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 |
| 72 @Experimental | 70 @Experimental |
| 73 class AudioBuffer native "AudioBuffer" { | 71 class AudioBuffer native "AudioBuffer" { |
| 74 // To suppress missing implicit constructor warnings. | |
| 75 factory AudioBuffer._() { throw new UnsupportedError("Not supported"); } | |
| 76 | 72 |
| 77 @DomName('AudioBuffer.duration') | 73 @DomName('AudioBuffer.duration') |
| 78 @DocsEditable | 74 @DocsEditable |
| 79 final num duration; | 75 final num duration; |
| 80 | 76 |
| 81 @DomName('AudioBuffer.gain') | 77 @DomName('AudioBuffer.gain') |
| 82 @DocsEditable | 78 @DocsEditable |
| 83 num gain; | 79 num gain; |
| 84 | 80 |
| 85 @DomName('AudioBuffer.length') | 81 @DomName('AudioBuffer.length') |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 } | 137 } |
| 142 } | 138 } |
| 143 | 139 |
| 144 void stop(num when) { | 140 void stop(num when) { |
| 145 if (JS('bool', '!!#.stop', this)) { | 141 if (JS('bool', '!!#.stop', this)) { |
| 146 JS('void', '#.stop(#)', this, when); | 142 JS('void', '#.stop(#)', this, when); |
| 147 } else { | 143 } else { |
| 148 JS('void', '#.noteOff(#)', this, when); | 144 JS('void', '#.noteOff(#)', this, when); |
| 149 } | 145 } |
| 150 } | 146 } |
| 151 // To suppress missing implicit constructor warnings. | |
| 152 factory AudioBufferSourceNode._() { throw new UnsupportedError("Not supported"
); } | |
| 153 | 147 |
| 154 @DomName('AudioBufferSourceNode.FINISHED_STATE') | 148 @DomName('AudioBufferSourceNode.FINISHED_STATE') |
| 155 @DocsEditable | 149 @DocsEditable |
| 156 static const int FINISHED_STATE = 3; | 150 static const int FINISHED_STATE = 3; |
| 157 | 151 |
| 158 @DomName('AudioBufferSourceNode.PLAYING_STATE') | 152 @DomName('AudioBufferSourceNode.PLAYING_STATE') |
| 159 @DocsEditable | 153 @DocsEditable |
| 160 static const int PLAYING_STATE = 2; | 154 static const int PLAYING_STATE = 2; |
| 161 | 155 |
| 162 @DomName('AudioBufferSourceNode.SCHEDULED_STATE') | 156 @DomName('AudioBufferSourceNode.SCHEDULED_STATE') |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 } | 204 } |
| 211 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 205 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 212 // for details. All rights reserved. Use of this source code is governed by a | 206 // for details. All rights reserved. Use of this source code is governed by a |
| 213 // BSD-style license that can be found in the LICENSE file. | 207 // BSD-style license that can be found in the LICENSE file. |
| 214 | 208 |
| 215 | 209 |
| 216 @DomName('AudioContext') | 210 @DomName('AudioContext') |
| 217 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo
ntext-section | 211 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo
ntext-section |
| 218 @Experimental | 212 @Experimental |
| 219 class AudioContext extends EventTarget native "AudioContext" { | 213 class AudioContext extends EventTarget native "AudioContext" { |
| 220 // To suppress missing implicit constructor warnings. | |
| 221 factory AudioContext._() { throw new UnsupportedError("Not supported"); } | |
| 222 | 214 |
| 223 @DomName('AudioContext.completeEvent') | 215 @DomName('AudioContext.completeEvent') |
| 224 @DocsEditable | 216 @DocsEditable |
| 225 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); | 217 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); |
| 226 | 218 |
| 227 /// Checks if this type is supported on the current platform. | 219 /// Checks if this type is supported on the current platform. |
| 228 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk
itAudioContext)'); | 220 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk
itAudioContext)'); |
| 229 | 221 |
| 230 @DomName('AudioContext.activeSourceCount') | 222 @DomName('AudioContext.activeSourceCount') |
| 231 @DocsEditable | 223 @DocsEditable |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 // 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 |
| 366 // 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 |
| 367 // BSD-style license that can be found in the LICENSE file. | 359 // BSD-style license that can be found in the LICENSE file. |
| 368 | 360 |
| 369 | 361 |
| 370 @DocsEditable | 362 @DocsEditable |
| 371 @DomName('AudioDestinationNode') | 363 @DomName('AudioDestinationNode') |
| 372 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe
stinationNode-section | 364 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe
stinationNode-section |
| 373 @Experimental | 365 @Experimental |
| 374 class AudioDestinationNode extends AudioNode native "AudioDestinationNode" { | 366 class AudioDestinationNode extends AudioNode native "AudioDestinationNode" { |
| 375 // To suppress missing implicit constructor warnings. | |
| 376 factory AudioDestinationNode._() { throw new UnsupportedError("Not supported")
; } | |
| 377 | 367 |
| 378 @DomName('AudioDestinationNode.maxChannelCount') | 368 @DomName('AudioDestinationNode.maxChannelCount') |
| 379 @DocsEditable | 369 @DocsEditable |
| 380 final int maxChannelCount; | 370 final int maxChannelCount; |
| 381 } | 371 } |
| 382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 372 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 383 // for details. All rights reserved. Use of this source code is governed by a | 373 // for details. All rights reserved. Use of this source code is governed by a |
| 384 // BSD-style license that can be found in the LICENSE file. | 374 // BSD-style license that can be found in the LICENSE file. |
| 385 | 375 |
| 386 | 376 |
| 387 @DocsEditable | 377 @DocsEditable |
| 388 @DomName('AudioListener') | 378 @DomName('AudioListener') |
| 389 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi
stener-section | 379 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi
stener-section |
| 390 @Experimental | 380 @Experimental |
| 391 class AudioListener native "AudioListener" { | 381 class AudioListener native "AudioListener" { |
| 392 // To suppress missing implicit constructor warnings. | |
| 393 factory AudioListener._() { throw new UnsupportedError("Not supported"); } | |
| 394 | 382 |
| 395 @DomName('AudioListener.dopplerFactor') | 383 @DomName('AudioListener.dopplerFactor') |
| 396 @DocsEditable | 384 @DocsEditable |
| 397 num dopplerFactor; | 385 num dopplerFactor; |
| 398 | 386 |
| 399 @DomName('AudioListener.speedOfSound') | 387 @DomName('AudioListener.speedOfSound') |
| 400 @DocsEditable | 388 @DocsEditable |
| 401 num speedOfSound; | 389 num speedOfSound; |
| 402 | 390 |
| 403 @DomName('AudioListener.setOrientation') | 391 @DomName('AudioListener.setOrientation') |
| (...skipping 11 matching lines...) Expand all Loading... |
| 415 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 403 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 416 // for details. All rights reserved. Use of this source code is governed by a | 404 // for details. All rights reserved. Use of this source code is governed by a |
| 417 // BSD-style license that can be found in the LICENSE file. | 405 // BSD-style license that can be found in the LICENSE file. |
| 418 | 406 |
| 419 | 407 |
| 420 @DocsEditable | 408 @DocsEditable |
| 421 @DomName('AudioNode') | 409 @DomName('AudioNode') |
| 422 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo
de-section | 410 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo
de-section |
| 423 @Experimental | 411 @Experimental |
| 424 class AudioNode extends EventTarget native "AudioNode" { | 412 class AudioNode extends EventTarget native "AudioNode" { |
| 425 // To suppress missing implicit constructor warnings. | |
| 426 factory AudioNode._() { throw new UnsupportedError("Not supported"); } | |
| 427 | 413 |
| 428 @DomName('AudioNode.channelCount') | 414 @DomName('AudioNode.channelCount') |
| 429 @DocsEditable | 415 @DocsEditable |
| 430 int channelCount; | 416 int channelCount; |
| 431 | 417 |
| 432 @DomName('AudioNode.channelCountMode') | 418 @DomName('AudioNode.channelCountMode') |
| 433 @DocsEditable | 419 @DocsEditable |
| 434 String channelCountMode; | 420 String channelCountMode; |
| 435 | 421 |
| 436 @DomName('AudioNode.channelInterpretation') | 422 @DomName('AudioNode.channelInterpretation') |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 460 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 475 // for details. All rights reserved. Use of this source code is governed by a | 461 // for details. All rights reserved. Use of this source code is governed by a |
| 476 // BSD-style license that can be found in the LICENSE file. | 462 // BSD-style license that can be found in the LICENSE file. |
| 477 | 463 |
| 478 | 464 |
| 479 @DocsEditable | 465 @DocsEditable |
| 480 @DomName('AudioParam') | 466 @DomName('AudioParam') |
| 481 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa
ram | 467 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa
ram |
| 482 @Experimental | 468 @Experimental |
| 483 class AudioParam native "AudioParam" { | 469 class AudioParam native "AudioParam" { |
| 484 // To suppress missing implicit constructor warnings. | |
| 485 factory AudioParam._() { throw new UnsupportedError("Not supported"); } | |
| 486 | 470 |
| 487 @DomName('AudioParam.defaultValue') | 471 @DomName('AudioParam.defaultValue') |
| 488 @DocsEditable | 472 @DocsEditable |
| 489 final num defaultValue; | 473 final num defaultValue; |
| 490 | 474 |
| 491 @DomName('AudioParam.maxValue') | 475 @DomName('AudioParam.maxValue') |
| 492 @DocsEditable | 476 @DocsEditable |
| 493 final num maxValue; | 477 final num maxValue; |
| 494 | 478 |
| 495 @DomName('AudioParam.minValue') | 479 @DomName('AudioParam.minValue') |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 523 // 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 | 524 // 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. | 525 // BSD-style license that can be found in the LICENSE file. |
| 542 | 526 |
| 543 | 527 |
| 544 @DocsEditable | 528 @DocsEditable |
| 545 @DomName('AudioProcessingEvent') | 529 @DomName('AudioProcessingEvent') |
| 546 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr
ocessingEvent-section | 530 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr
ocessingEvent-section |
| 547 @Experimental | 531 @Experimental |
| 548 class AudioProcessingEvent extends Event native "AudioProcessingEvent" { | 532 class AudioProcessingEvent extends Event native "AudioProcessingEvent" { |
| 549 // To suppress missing implicit constructor warnings. | |
| 550 factory AudioProcessingEvent._() { throw new UnsupportedError("Not supported")
; } | |
| 551 | 533 |
| 552 @DomName('AudioProcessingEvent.inputBuffer') | 534 @DomName('AudioProcessingEvent.inputBuffer') |
| 553 @DocsEditable | 535 @DocsEditable |
| 554 final AudioBuffer inputBuffer; | 536 final AudioBuffer inputBuffer; |
| 555 | 537 |
| 556 @DomName('AudioProcessingEvent.outputBuffer') | 538 @DomName('AudioProcessingEvent.outputBuffer') |
| 557 @DocsEditable | 539 @DocsEditable |
| 558 final AudioBuffer outputBuffer; | 540 final AudioBuffer outputBuffer; |
| 559 } | 541 } |
| 560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 542 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 561 // for details. All rights reserved. Use of this source code is governed by a | 543 // for details. All rights reserved. Use of this source code is governed by a |
| 562 // BSD-style license that can be found in the LICENSE file. | 544 // BSD-style license that can be found in the LICENSE file. |
| 563 | 545 |
| 564 | 546 |
| 565 @DocsEditable | 547 @DocsEditable |
| 566 @DomName('AudioSourceNode') | 548 @DomName('AudioSourceNode') |
| 567 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html | 549 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html |
| 568 @Experimental | 550 @Experimental |
| 569 class AudioSourceNode extends AudioNode native "AudioSourceNode" { | 551 class AudioSourceNode extends AudioNode native "AudioSourceNode" { |
| 570 // To suppress missing implicit constructor warnings. | |
| 571 factory AudioSourceNode._() { throw new UnsupportedError("Not supported"); } | |
| 572 } | 552 } |
| 573 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 553 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 574 // for details. All rights reserved. Use of this source code is governed by a | 554 // for details. All rights reserved. Use of this source code is governed by a |
| 575 // BSD-style license that can be found in the LICENSE file. | 555 // BSD-style license that can be found in the LICENSE file. |
| 576 | 556 |
| 577 | 557 |
| 578 @DocsEditable | 558 @DocsEditable |
| 579 @DomName('BiquadFilterNode') | 559 @DomName('BiquadFilterNode') |
| 580 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF
ilterNode-section | 560 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF
ilterNode-section |
| 581 @Experimental | 561 @Experimental |
| 582 class BiquadFilterNode extends AudioNode native "BiquadFilterNode" { | 562 class BiquadFilterNode extends AudioNode native "BiquadFilterNode" { |
| 583 // To suppress missing implicit constructor warnings. | |
| 584 factory BiquadFilterNode._() { throw new UnsupportedError("Not supported"); } | |
| 585 | 563 |
| 586 @DomName('BiquadFilterNode.ALLPASS') | 564 @DomName('BiquadFilterNode.ALLPASS') |
| 587 @DocsEditable | 565 @DocsEditable |
| 588 static const int ALLPASS = 7; | 566 static const int ALLPASS = 7; |
| 589 | 567 |
| 590 @DomName('BiquadFilterNode.BANDPASS') | 568 @DomName('BiquadFilterNode.BANDPASS') |
| 591 @DocsEditable | 569 @DocsEditable |
| 592 static const int BANDPASS = 2; | 570 static const int BANDPASS = 2; |
| 593 | 571 |
| 594 @DomName('BiquadFilterNode.HIGHPASS') | 572 @DomName('BiquadFilterNode.HIGHPASS') |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 643 // for details. All rights reserved. Use of this source code is governed by a | 621 // for details. All rights reserved. Use of this source code is governed by a |
| 644 // BSD-style license that can be found in the LICENSE file. | 622 // BSD-style license that can be found in the LICENSE file. |
| 645 | 623 |
| 646 | 624 |
| 647 @DocsEditable | 625 @DocsEditable |
| 648 @DomName('ChannelMergerNode') | 626 @DomName('ChannelMergerNode') |
| 649 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
MergerNode-section | 627 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
MergerNode-section |
| 650 @Experimental | 628 @Experimental |
| 651 class ChannelMergerNode extends AudioNode native "ChannelMergerNode" { | 629 class ChannelMergerNode extends AudioNode native "ChannelMergerNode" { |
| 652 // To suppress missing implicit constructor warnings. | |
| 653 factory ChannelMergerNode._() { throw new UnsupportedError("Not supported"); } | |
| 654 } | 630 } |
| 655 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 631 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 656 // for details. All rights reserved. Use of this source code is governed by a | 632 // for details. All rights reserved. Use of this source code is governed by a |
| 657 // BSD-style license that can be found in the LICENSE file. | 633 // BSD-style license that can be found in the LICENSE file. |
| 658 | 634 |
| 659 | 635 |
| 660 @DocsEditable | 636 @DocsEditable |
| 661 @DomName('ChannelSplitterNode') | 637 @DomName('ChannelSplitterNode') |
| 662 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
SplitterNode-section | 638 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
SplitterNode-section |
| 663 @Experimental | 639 @Experimental |
| 664 class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode" { | 640 class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode" { |
| 665 // To suppress missing implicit constructor warnings. | |
| 666 factory ChannelSplitterNode._() { throw new UnsupportedError("Not supported");
} | |
| 667 } | 641 } |
| 668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 669 // for details. All rights reserved. Use of this source code is governed by a | 643 // for details. All rights reserved. Use of this source code is governed by a |
| 670 // BSD-style license that can be found in the LICENSE file. | 644 // BSD-style license that can be found in the LICENSE file. |
| 671 | 645 |
| 672 | 646 |
| 673 @DocsEditable | 647 @DocsEditable |
| 674 @DomName('ConvolverNode') | 648 @DomName('ConvolverNode') |
| 675 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv
erNode | 649 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv
erNode |
| 676 @Experimental | 650 @Experimental |
| 677 class ConvolverNode extends AudioNode native "ConvolverNode" { | 651 class ConvolverNode extends AudioNode native "ConvolverNode" { |
| 678 // To suppress missing implicit constructor warnings. | |
| 679 factory ConvolverNode._() { throw new UnsupportedError("Not supported"); } | |
| 680 | 652 |
| 681 @DomName('ConvolverNode.buffer') | 653 @DomName('ConvolverNode.buffer') |
| 682 @DocsEditable | 654 @DocsEditable |
| 683 AudioBuffer buffer; | 655 AudioBuffer buffer; |
| 684 | 656 |
| 685 @DomName('ConvolverNode.normalize') | 657 @DomName('ConvolverNode.normalize') |
| 686 @DocsEditable | 658 @DocsEditable |
| 687 bool normalize; | 659 bool normalize; |
| 688 } | 660 } |
| 689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 661 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 690 // for details. All rights reserved. Use of this source code is governed by a | 662 // for details. All rights reserved. Use of this source code is governed by a |
| 691 // BSD-style license that can be found in the LICENSE file. | 663 // BSD-style license that can be found in the LICENSE file. |
| 692 | 664 |
| 693 | 665 |
| 694 @DocsEditable | 666 @DocsEditable |
| 695 @DomName('DelayNode') | 667 @DomName('DelayNode') |
| 696 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo
de | 668 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo
de |
| 697 @Experimental | 669 @Experimental |
| 698 class DelayNode extends AudioNode native "DelayNode" { | 670 class DelayNode extends AudioNode native "DelayNode" { |
| 699 // To suppress missing implicit constructor warnings. | |
| 700 factory DelayNode._() { throw new UnsupportedError("Not supported"); } | |
| 701 | 671 |
| 702 @DomName('DelayNode.delayTime') | 672 @DomName('DelayNode.delayTime') |
| 703 @DocsEditable | 673 @DocsEditable |
| 704 final AudioParam delayTime; | 674 final AudioParam delayTime; |
| 705 } | 675 } |
| 706 // 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 |
| 707 // 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 |
| 708 // BSD-style license that can be found in the LICENSE file. | 678 // BSD-style license that can be found in the LICENSE file. |
| 709 | 679 |
| 710 | 680 |
| 711 @DocsEditable | 681 @DocsEditable |
| 712 @DomName('DynamicsCompressorNode') | 682 @DomName('DynamicsCompressorNode') |
| 713 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic
sCompressorNode | 683 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic
sCompressorNode |
| 714 @Experimental | 684 @Experimental |
| 715 class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" { | 685 class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" { |
| 716 // To suppress missing implicit constructor warnings. | |
| 717 factory DynamicsCompressorNode._() { throw new UnsupportedError("Not supported
"); } | |
| 718 | 686 |
| 719 @DomName('DynamicsCompressorNode.attack') | 687 @DomName('DynamicsCompressorNode.attack') |
| 720 @DocsEditable | 688 @DocsEditable |
| 721 final AudioParam attack; | 689 final AudioParam attack; |
| 722 | 690 |
| 723 @DomName('DynamicsCompressorNode.knee') | 691 @DomName('DynamicsCompressorNode.knee') |
| 724 @DocsEditable | 692 @DocsEditable |
| 725 final AudioParam knee; | 693 final AudioParam knee; |
| 726 | 694 |
| 727 @DomName('DynamicsCompressorNode.ratio') | 695 @DomName('DynamicsCompressorNode.ratio') |
| (...skipping 15 matching lines...) Expand all Loading... |
| 743 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 711 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 744 // for details. All rights reserved. Use of this source code is governed by a | 712 // for details. All rights reserved. Use of this source code is governed by a |
| 745 // BSD-style license that can be found in the LICENSE file. | 713 // BSD-style license that can be found in the LICENSE file. |
| 746 | 714 |
| 747 | 715 |
| 748 @DocsEditable | 716 @DocsEditable |
| 749 @DomName('GainNode') | 717 @DomName('GainNode') |
| 750 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod
e | 718 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod
e |
| 751 @Experimental | 719 @Experimental |
| 752 class GainNode extends AudioNode native "GainNode" { | 720 class GainNode extends AudioNode native "GainNode" { |
| 753 // To suppress missing implicit constructor warnings. | |
| 754 factory GainNode._() { throw new UnsupportedError("Not supported"); } | |
| 755 | 721 |
| 756 @DomName('GainNode.gain') | 722 @DomName('GainNode.gain') |
| 757 @DocsEditable | 723 @DocsEditable |
| 758 final AudioParam gain; | 724 final AudioParam gain; |
| 759 } | 725 } |
| 760 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 726 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 761 // for details. All rights reserved. Use of this source code is governed by a | 727 // for details. All rights reserved. Use of this source code is governed by a |
| 762 // BSD-style license that can be found in the LICENSE file. | 728 // BSD-style license that can be found in the LICENSE file. |
| 763 | 729 |
| 764 | 730 |
| 765 @DocsEditable | 731 @DocsEditable |
| 766 @DomName('MediaElementAudioSourceNode') | 732 @DomName('MediaElementAudioSourceNode') |
| 767 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl
ementAudioSourceNode | 733 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl
ementAudioSourceNode |
| 768 @Experimental | 734 @Experimental |
| 769 class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAu
dioSourceNode" { | 735 class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAu
dioSourceNode" { |
| 770 // To suppress missing implicit constructor warnings. | |
| 771 factory MediaElementAudioSourceNode._() { throw new UnsupportedError("Not supp
orted"); } | |
| 772 | 736 |
| 773 @DomName('MediaElementAudioSourceNode.mediaElement') | 737 @DomName('MediaElementAudioSourceNode.mediaElement') |
| 774 @DocsEditable | 738 @DocsEditable |
| 775 @Experimental // non-standard | 739 @Experimental // non-standard |
| 776 final MediaElement mediaElement; | 740 final MediaElement mediaElement; |
| 777 } | 741 } |
| 778 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 742 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 779 // for details. All rights reserved. Use of this source code is governed by a | 743 // for details. All rights reserved. Use of this source code is governed by a |
| 780 // BSD-style license that can be found in the LICENSE file. | 744 // BSD-style license that can be found in the LICENSE file. |
| 781 | 745 |
| 782 | 746 |
| 783 @DocsEditable | 747 @DocsEditable |
| 784 @DomName('MediaStreamAudioDestinationNode') | 748 @DomName('MediaStreamAudioDestinationNode') |
| 785 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioDestinationNode | 749 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioDestinationNode |
| 786 @Experimental | 750 @Experimental |
| 787 class MediaStreamAudioDestinationNode extends AudioSourceNode native "MediaStrea
mAudioDestinationNode" { | 751 class MediaStreamAudioDestinationNode extends AudioSourceNode native "MediaStrea
mAudioDestinationNode" { |
| 788 // To suppress missing implicit constructor warnings. | |
| 789 factory MediaStreamAudioDestinationNode._() { throw new UnsupportedError("Not
supported"); } | |
| 790 | 752 |
| 791 @DomName('MediaStreamAudioDestinationNode.stream') | 753 @DomName('MediaStreamAudioDestinationNode.stream') |
| 792 @DocsEditable | 754 @DocsEditable |
| 793 final MediaStream stream; | 755 final MediaStream stream; |
| 794 } | 756 } |
| 795 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 757 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 796 // for details. All rights reserved. Use of this source code is governed by a | 758 // for details. All rights reserved. Use of this source code is governed by a |
| 797 // BSD-style license that can be found in the LICENSE file. | 759 // BSD-style license that can be found in the LICENSE file. |
| 798 | 760 |
| 799 | 761 |
| 800 @DocsEditable | 762 @DocsEditable |
| 801 @DomName('MediaStreamAudioSourceNode') | 763 @DomName('MediaStreamAudioSourceNode') |
| 802 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioSourceNode | 764 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioSourceNode |
| 803 @Experimental | 765 @Experimental |
| 804 class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudi
oSourceNode" { | 766 class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudi
oSourceNode" { |
| 805 // To suppress missing implicit constructor warnings. | |
| 806 factory MediaStreamAudioSourceNode._() { throw new UnsupportedError("Not suppo
rted"); } | |
| 807 | 767 |
| 808 @DomName('MediaStreamAudioSourceNode.mediaStream') | 768 @DomName('MediaStreamAudioSourceNode.mediaStream') |
| 809 @DocsEditable | 769 @DocsEditable |
| 810 final MediaStream mediaStream; | 770 final MediaStream mediaStream; |
| 811 } | 771 } |
| 812 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 772 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 813 // for details. All rights reserved. Use of this source code is governed by a | 773 // 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. | 774 // BSD-style license that can be found in the LICENSE file. |
| 815 | 775 |
| 816 | 776 |
| 817 @DocsEditable | 777 @DocsEditable |
| 818 @DomName('OfflineAudioCompletionEvent') | 778 @DomName('OfflineAudioCompletionEvent') |
| 819 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioCompletionEvent-section | 779 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioCompletionEvent-section |
| 820 @Experimental | 780 @Experimental |
| 821 class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEv
ent" { | 781 class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEv
ent" { |
| 822 // To suppress missing implicit constructor warnings. | |
| 823 factory OfflineAudioCompletionEvent._() { throw new UnsupportedError("Not supp
orted"); } | |
| 824 | 782 |
| 825 @DomName('OfflineAudioCompletionEvent.renderedBuffer') | 783 @DomName('OfflineAudioCompletionEvent.renderedBuffer') |
| 826 @DocsEditable | 784 @DocsEditable |
| 827 final AudioBuffer renderedBuffer; | 785 final AudioBuffer renderedBuffer; |
| 828 } | 786 } |
| 829 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 787 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 830 // for details. All rights reserved. Use of this source code is governed by a | 788 // for details. All rights reserved. Use of this source code is governed by a |
| 831 // BSD-style license that can be found in the LICENSE file. | 789 // BSD-style license that can be found in the LICENSE file. |
| 832 | 790 |
| 833 | 791 |
| 834 @DocsEditable | 792 @DocsEditable |
| 835 @DomName('OfflineAudioContext') | 793 @DomName('OfflineAudioContext') |
| 836 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioContext-section | 794 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioContext-section |
| 837 @Experimental | 795 @Experimental |
| 838 class OfflineAudioContext extends AudioContext implements EventTarget native "Of
flineAudioContext" { | 796 class OfflineAudioContext extends AudioContext implements EventTarget native "Of
flineAudioContext" { |
| 839 // To suppress missing implicit constructor warnings. | |
| 840 factory OfflineAudioContext._() { throw new UnsupportedError("Not supported");
} | |
| 841 | 797 |
| 842 @DomName('OfflineAudioContext.OfflineAudioContext') | 798 @DomName('OfflineAudioContext.OfflineAudioContext') |
| 843 @DocsEditable | 799 @DocsEditable |
| 844 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp
leRate) { | 800 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp
leRate) { |
| 845 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl
eRate); | 801 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl
eRate); |
| 846 } | 802 } |
| 847 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR
ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan
nels, numberOfFrames, sampleRate); | 803 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR
ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan
nels, numberOfFrames, sampleRate); |
| 848 } | 804 } |
| 849 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 805 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 850 // for details. All rights reserved. Use of this source code is governed by a | 806 // for details. All rights reserved. Use of this source code is governed by a |
| 851 // BSD-style license that can be found in the LICENSE file. | 807 // BSD-style license that can be found in the LICENSE file. |
| 852 | 808 |
| 853 | 809 |
| 854 @DocsEditable | 810 @DocsEditable |
| 855 @DomName('OscillatorNode') | 811 @DomName('OscillatorNode') |
| 856 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc
illatorNode | 812 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc
illatorNode |
| 857 @Experimental | 813 @Experimental |
| 858 class OscillatorNode extends AudioSourceNode native "OscillatorNode" { | 814 class OscillatorNode extends AudioSourceNode native "OscillatorNode" { |
| 859 // To suppress missing implicit constructor warnings. | |
| 860 factory OscillatorNode._() { throw new UnsupportedError("Not supported"); } | |
| 861 | 815 |
| 862 @DomName('OscillatorNode.CUSTOM') | 816 @DomName('OscillatorNode.CUSTOM') |
| 863 @DocsEditable | 817 @DocsEditable |
| 864 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 818 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 865 @deprecated // deprecated | 819 @deprecated // deprecated |
| 866 static const int CUSTOM = 4; | 820 static const int CUSTOM = 4; |
| 867 | 821 |
| 868 @DomName('OscillatorNode.FINISHED_STATE') | 822 @DomName('OscillatorNode.FINISHED_STATE') |
| 869 @DocsEditable | 823 @DocsEditable |
| 870 static const int FINISHED_STATE = 3; | 824 static const int FINISHED_STATE = 3; |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 944 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 898 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 945 // for details. All rights reserved. Use of this source code is governed by a | 899 // for details. All rights reserved. Use of this source code is governed by a |
| 946 // BSD-style license that can be found in the LICENSE file. | 900 // BSD-style license that can be found in the LICENSE file. |
| 947 | 901 |
| 948 | 902 |
| 949 @DocsEditable | 903 @DocsEditable |
| 950 @DomName('PannerNode') | 904 @DomName('PannerNode') |
| 951 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN
ode | 905 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN
ode |
| 952 @Experimental | 906 @Experimental |
| 953 class PannerNode extends AudioNode native "PannerNode" { | 907 class PannerNode extends AudioNode native "PannerNode" { |
| 954 // To suppress missing implicit constructor warnings. | |
| 955 factory PannerNode._() { throw new UnsupportedError("Not supported"); } | |
| 956 | 908 |
| 957 @DomName('PannerNode.EQUALPOWER') | 909 @DomName('PannerNode.EQUALPOWER') |
| 958 @DocsEditable | 910 @DocsEditable |
| 959 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 911 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 960 @deprecated // deprecated | 912 @deprecated // deprecated |
| 961 static const int EQUALPOWER = 0; | 913 static const int EQUALPOWER = 0; |
| 962 | 914 |
| 963 @DomName('PannerNode.EXPONENTIAL_DISTANCE') | 915 @DomName('PannerNode.EXPONENTIAL_DISTANCE') |
| 964 @DocsEditable | 916 @DocsEditable |
| 965 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 917 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1068 _eventStream = controller.stream; | 1020 _eventStream = controller.stream; |
| 1069 } | 1021 } |
| 1070 return _eventStream; | 1022 return _eventStream; |
| 1071 } | 1023 } |
| 1072 | 1024 |
| 1073 _setEventListener(callback) { | 1025 _setEventListener(callback) { |
| 1074 JS('void', '#.onaudioprocess = #', this, | 1026 JS('void', '#.onaudioprocess = #', this, |
| 1075 convertDartClosureToJS(callback, 1)); | 1027 convertDartClosureToJS(callback, 1)); |
| 1076 } | 1028 } |
| 1077 | 1029 |
| 1078 // To suppress missing implicit constructor warnings. | |
| 1079 factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported");
} | |
| 1080 | 1030 |
| 1081 @DomName('ScriptProcessorNode.bufferSize') | 1031 @DomName('ScriptProcessorNode.bufferSize') |
| 1082 @DocsEditable | 1032 @DocsEditable |
| 1083 final int bufferSize; | 1033 final int bufferSize; |
| 1084 | 1034 |
| 1085 } | 1035 } |
| 1086 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1036 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1087 // for details. All rights reserved. Use of this source code is governed by a | 1037 // for details. All rights reserved. Use of this source code is governed by a |
| 1088 // BSD-style license that can be found in the LICENSE file. | 1038 // BSD-style license that can be found in the LICENSE file. |
| 1089 | 1039 |
| 1090 | 1040 |
| 1091 @DocsEditable | 1041 @DocsEditable |
| 1092 @DomName('WaveShaperNode') | 1042 @DomName('WaveShaperNode') |
| 1093 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav
eShaperNode | 1043 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav
eShaperNode |
| 1094 @Experimental | 1044 @Experimental |
| 1095 class WaveShaperNode extends AudioNode native "WaveShaperNode" { | 1045 class WaveShaperNode extends AudioNode native "WaveShaperNode" { |
| 1096 // To suppress missing implicit constructor warnings. | |
| 1097 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } | |
| 1098 | 1046 |
| 1099 @DomName('WaveShaperNode.curve') | 1047 @DomName('WaveShaperNode.curve') |
| 1100 @DocsEditable | 1048 @DocsEditable |
| 1101 Float32List curve; | 1049 Float32List curve; |
| 1102 | 1050 |
| 1103 @DomName('WaveShaperNode.oversample') | 1051 @DomName('WaveShaperNode.oversample') |
| 1104 @DocsEditable | 1052 @DocsEditable |
| 1105 String oversample; | 1053 String oversample; |
| 1106 } | 1054 } |
| 1107 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1055 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1108 // for details. All rights reserved. Use of this source code is governed by a | 1056 // for details. All rights reserved. Use of this source code is governed by a |
| 1109 // BSD-style license that can be found in the LICENSE file. | 1057 // BSD-style license that can be found in the LICENSE file. |
| 1110 | 1058 |
| 1111 | 1059 |
| 1112 @DocsEditable | 1060 @DocsEditable |
| 1113 @DomName('WaveTable') | 1061 @DomName('WaveTable') |
| 1114 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section | 1062 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section |
| 1115 @Experimental | 1063 @Experimental |
| 1116 class WaveTable native "WaveTable" { | 1064 class WaveTable native "WaveTable" { |
| 1117 // To suppress missing implicit constructor warnings. | |
| 1118 factory WaveTable._() { throw new UnsupportedError("Not supported"); } | |
| 1119 } | 1065 } |
| OLD | NEW |