| OLD | NEW |
| 1 library dart.dom.web_audio; | 1 library dart.dom.web_audio; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'dart:_collection-dev'; | 5 import 'dart:_collection-dev'; |
| 6 import 'dart:html'; | 6 import 'dart:html'; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:nativewrappers'; | 8 import 'dart:nativewrappers'; |
| 9 import 'dart:typed_data'; | 9 import 'dart:typed_data'; |
| 10 // DO NOT EDIT | 10 // DO NOT EDIT |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 @DomName('AudioBufferSourceNode.playbackRate') | 199 @DomName('AudioBufferSourceNode.playbackRate') |
| 200 @DocsEditable | 200 @DocsEditable |
| 201 AudioParam get playbackRate native "AudioBufferSourceNode_playbackRate_Getter"
; | 201 AudioParam get playbackRate native "AudioBufferSourceNode_playbackRate_Getter"
; |
| 202 | 202 |
| 203 @DomName('AudioBufferSourceNode.playbackState') | 203 @DomName('AudioBufferSourceNode.playbackState') |
| 204 @DocsEditable | 204 @DocsEditable |
| 205 int get playbackState native "AudioBufferSourceNode_playbackState_Getter"; | 205 int get playbackState native "AudioBufferSourceNode_playbackState_Getter"; |
| 206 | 206 |
| 207 @DomName('AudioBufferSourceNode.noteGrainOn') | 207 @DomName('AudioBufferSourceNode.noteGrainOn') |
| 208 @DocsEditable | 208 @DocsEditable |
| 209 @Experimental // untriaged | |
| 210 void noteGrainOn(num when, num grainOffset, num grainDuration) native "AudioBu
fferSourceNode_noteGrainOn_Callback"; | 209 void noteGrainOn(num when, num grainOffset, num grainDuration) native "AudioBu
fferSourceNode_noteGrainOn_Callback"; |
| 211 | 210 |
| 212 @DomName('AudioBufferSourceNode.noteOff') | 211 @DomName('AudioBufferSourceNode.noteOff') |
| 213 @DocsEditable | 212 @DocsEditable |
| 214 @Experimental // untriaged | |
| 215 void noteOff(num when) native "AudioBufferSourceNode_noteOff_Callback"; | 213 void noteOff(num when) native "AudioBufferSourceNode_noteOff_Callback"; |
| 216 | 214 |
| 217 @DomName('AudioBufferSourceNode.noteOn') | 215 @DomName('AudioBufferSourceNode.noteOn') |
| 218 @DocsEditable | 216 @DocsEditable |
| 219 @Experimental // untriaged | |
| 220 void noteOn(num when) native "AudioBufferSourceNode_noteOn_Callback"; | 217 void noteOn(num when) native "AudioBufferSourceNode_noteOn_Callback"; |
| 221 | 218 |
| 222 void start(num when, [num grainOffset, num grainDuration]) { | 219 void start(num when, [num grainOffset, num grainDuration]) { |
| 223 if ((when is num || when == null) && !?grainOffset && !?grainDuration) { | 220 if ((when is num || when == null) && !?grainOffset && !?grainDuration) { |
| 224 _start_1(when); | 221 _start_1(when); |
| 225 return; | 222 return; |
| 226 } | 223 } |
| 227 if ((when is num || when == null) && (grainOffset is num || grainOffset == n
ull) && !?grainDuration) { | 224 if ((when is num || when == null) && (grainOffset is num || grainOffset == n
ull) && !?grainDuration) { |
| 228 _start_2(when, grainOffset); | 225 _start_2(when, grainOffset); |
| 229 return; | 226 return; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 @DomName('AudioContext.createDynamicsCompressor') | 365 @DomName('AudioContext.createDynamicsCompressor') |
| 369 @DocsEditable | 366 @DocsEditable |
| 370 DynamicsCompressorNode createDynamicsCompressor() native "AudioContext_createD
ynamicsCompressor_Callback"; | 367 DynamicsCompressorNode createDynamicsCompressor() native "AudioContext_createD
ynamicsCompressor_Callback"; |
| 371 | 368 |
| 372 @DomName('AudioContext.createGain') | 369 @DomName('AudioContext.createGain') |
| 373 @DocsEditable | 370 @DocsEditable |
| 374 GainNode createGain() native "AudioContext_createGain_Callback"; | 371 GainNode createGain() native "AudioContext_createGain_Callback"; |
| 375 | 372 |
| 376 @DomName('AudioContext.createGainNode') | 373 @DomName('AudioContext.createGainNode') |
| 377 @DocsEditable | 374 @DocsEditable |
| 378 @Experimental // untriaged | |
| 379 GainNode createGainNode() native "AudioContext_createGainNode_Callback"; | 375 GainNode createGainNode() native "AudioContext_createGainNode_Callback"; |
| 380 | 376 |
| 381 ScriptProcessorNode createJavaScriptNode(int bufferSize, [int numberOfInputCha
nnels, int numberOfOutputChannels]) { | 377 ScriptProcessorNode createJavaScriptNode(int bufferSize, [int numberOfInputCha
nnels, int numberOfOutputChannels]) { |
| 382 if (?numberOfOutputChannels) { | 378 if (?numberOfOutputChannels) { |
| 383 return _createJavaScriptNode_1(bufferSize, numberOfInputChannels, numberOf
OutputChannels); | 379 return _createJavaScriptNode_1(bufferSize, numberOfInputChannels, numberOf
OutputChannels); |
| 384 } | 380 } |
| 385 if (?numberOfInputChannels) { | 381 if (?numberOfInputChannels) { |
| 386 return _createJavaScriptNode_2(bufferSize, numberOfInputChannels); | 382 return _createJavaScriptNode_2(bufferSize, numberOfInputChannels); |
| 387 } | 383 } |
| 388 return _createJavaScriptNode_3(bufferSize); | 384 return _createJavaScriptNode_3(bufferSize); |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 @DomName('AudioNode.numberOfInputs') | 554 @DomName('AudioNode.numberOfInputs') |
| 559 @DocsEditable | 555 @DocsEditable |
| 560 int get numberOfInputs native "AudioNode_numberOfInputs_Getter"; | 556 int get numberOfInputs native "AudioNode_numberOfInputs_Getter"; |
| 561 | 557 |
| 562 @DomName('AudioNode.numberOfOutputs') | 558 @DomName('AudioNode.numberOfOutputs') |
| 563 @DocsEditable | 559 @DocsEditable |
| 564 int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter"; | 560 int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter"; |
| 565 | 561 |
| 566 @DomName('AudioNode.addEventListener') | 562 @DomName('AudioNode.addEventListener') |
| 567 @DocsEditable | 563 @DocsEditable |
| 568 @Experimental // untriaged | |
| 569 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "AudioNode_addEventListener_Callback"; | 564 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "AudioNode_addEventListener_Callback"; |
| 570 | 565 |
| 571 void connect(destination, int output, [int input]) { | 566 void connect(destination, int output, [int input]) { |
| 572 if ((destination is AudioNode || destination == null) && (output is int || o
utput == null) && (input is int || input == null)) { | 567 if ((destination is AudioNode || destination == null) && (output is int || o
utput == null) && (input is int || input == null)) { |
| 573 _connect_1(destination, output, input); | 568 _connect_1(destination, output, input); |
| 574 return; | 569 return; |
| 575 } | 570 } |
| 576 if ((destination is AudioParam || destination == null) && (output is int ||
output == null) && !?input) { | 571 if ((destination is AudioParam || destination == null) && (output is int ||
output == null) && !?input) { |
| 577 _connect_2(destination, output); | 572 _connect_2(destination, output); |
| 578 return; | 573 return; |
| 579 } | 574 } |
| 580 throw new ArgumentError("Incorrect number or type of arguments"); | 575 throw new ArgumentError("Incorrect number or type of arguments"); |
| 581 } | 576 } |
| 582 | 577 |
| 583 void _connect_1(destination, output, input) native "AudioNode__connect_1_Callb
ack"; | 578 void _connect_1(destination, output, input) native "AudioNode__connect_1_Callb
ack"; |
| 584 | 579 |
| 585 void _connect_2(destination, output) native "AudioNode__connect_2_Callback"; | 580 void _connect_2(destination, output) native "AudioNode__connect_2_Callback"; |
| 586 | 581 |
| 587 @DomName('AudioNode.disconnect') | 582 @DomName('AudioNode.disconnect') |
| 588 @DocsEditable | 583 @DocsEditable |
| 589 void disconnect(int output) native "AudioNode_disconnect_Callback"; | 584 void disconnect(int output) native "AudioNode_disconnect_Callback"; |
| 590 | 585 |
| 591 @DomName('AudioNode.dispatchEvent') | 586 @DomName('AudioNode.dispatchEvent') |
| 592 @DocsEditable | 587 @DocsEditable |
| 593 @Experimental // untriaged | |
| 594 bool dispatchEvent(Event event) native "AudioNode_dispatchEvent_Callback"; | 588 bool dispatchEvent(Event event) native "AudioNode_dispatchEvent_Callback"; |
| 595 | 589 |
| 596 @DomName('AudioNode.removeEventListener') | 590 @DomName('AudioNode.removeEventListener') |
| 597 @DocsEditable | 591 @DocsEditable |
| 598 @Experimental // untriaged | |
| 599 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "AudioNode_removeEventListener_Callback"; | 592 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native "AudioNode_removeEventListener_Callback"; |
| 600 | 593 |
| 601 } | 594 } |
| 602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 603 // for details. All rights reserved. Use of this source code is governed by a | 596 // for details. All rights reserved. Use of this source code is governed by a |
| 604 // BSD-style license that can be found in the LICENSE file. | 597 // BSD-style license that can be found in the LICENSE file. |
| 605 | 598 |
| 606 // WARNING: Do not edit - generated code. | 599 // WARNING: Do not edit - generated code. |
| 607 | 600 |
| 608 | 601 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 @DomName('AudioParam.linearRampToValueAtTime') | 645 @DomName('AudioParam.linearRampToValueAtTime') |
| 653 @DocsEditable | 646 @DocsEditable |
| 654 void linearRampToValueAtTime(num value, num time) native "AudioParam_linearRam
pToValueAtTime_Callback"; | 647 void linearRampToValueAtTime(num value, num time) native "AudioParam_linearRam
pToValueAtTime_Callback"; |
| 655 | 648 |
| 656 @DomName('AudioParam.setTargetAtTime') | 649 @DomName('AudioParam.setTargetAtTime') |
| 657 @DocsEditable | 650 @DocsEditable |
| 658 void setTargetAtTime(num target, num time, num timeConstant) native "AudioPara
m_setTargetAtTime_Callback"; | 651 void setTargetAtTime(num target, num time, num timeConstant) native "AudioPara
m_setTargetAtTime_Callback"; |
| 659 | 652 |
| 660 @DomName('AudioParam.setTargetValueAtTime') | 653 @DomName('AudioParam.setTargetValueAtTime') |
| 661 @DocsEditable | 654 @DocsEditable |
| 662 @Experimental // untriaged | |
| 663 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native
"AudioParam_setTargetValueAtTime_Callback"; | 655 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native
"AudioParam_setTargetValueAtTime_Callback"; |
| 664 | 656 |
| 665 @DomName('AudioParam.setValueAtTime') | 657 @DomName('AudioParam.setValueAtTime') |
| 666 @DocsEditable | 658 @DocsEditable |
| 667 void setValueAtTime(num value, num time) native "AudioParam_setValueAtTime_Cal
lback"; | 659 void setValueAtTime(num value, num time) native "AudioParam_setValueAtTime_Cal
lback"; |
| 668 | 660 |
| 669 @DomName('AudioParam.setValueCurveAtTime') | 661 @DomName('AudioParam.setValueCurveAtTime') |
| 670 @DocsEditable | 662 @DocsEditable |
| 671 void setValueCurveAtTime(Float32List values, num time, num duration) native "A
udioParam_setValueCurveAtTime_Callback"; | 663 void setValueCurveAtTime(Float32List values, num time, num duration) native "A
udioParam_setValueCurveAtTime_Callback"; |
| 672 | 664 |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1098 @DomName('OscillatorNode.type') | 1090 @DomName('OscillatorNode.type') |
| 1099 @DocsEditable | 1091 @DocsEditable |
| 1100 String get type native "OscillatorNode_type_Getter"; | 1092 String get type native "OscillatorNode_type_Getter"; |
| 1101 | 1093 |
| 1102 @DomName('OscillatorNode.type') | 1094 @DomName('OscillatorNode.type') |
| 1103 @DocsEditable | 1095 @DocsEditable |
| 1104 void set type(String value) native "OscillatorNode_type_Setter"; | 1096 void set type(String value) native "OscillatorNode_type_Setter"; |
| 1105 | 1097 |
| 1106 @DomName('OscillatorNode.noteOff') | 1098 @DomName('OscillatorNode.noteOff') |
| 1107 @DocsEditable | 1099 @DocsEditable |
| 1108 @Experimental // untriaged | |
| 1109 void noteOff(num when) native "OscillatorNode_noteOff_Callback"; | 1100 void noteOff(num when) native "OscillatorNode_noteOff_Callback"; |
| 1110 | 1101 |
| 1111 @DomName('OscillatorNode.noteOn') | 1102 @DomName('OscillatorNode.noteOn') |
| 1112 @DocsEditable | 1103 @DocsEditable |
| 1113 @Experimental // untriaged | |
| 1114 void noteOn(num when) native "OscillatorNode_noteOn_Callback"; | 1104 void noteOn(num when) native "OscillatorNode_noteOn_Callback"; |
| 1115 | 1105 |
| 1116 @DomName('OscillatorNode.setWaveTable') | 1106 @DomName('OscillatorNode.setWaveTable') |
| 1117 @DocsEditable | 1107 @DocsEditable |
| 1118 void setWaveTable(WaveTable waveTable) native "OscillatorNode_setWaveTable_Cal
lback"; | 1108 void setWaveTable(WaveTable waveTable) native "OscillatorNode_setWaveTable_Cal
lback"; |
| 1119 | 1109 |
| 1120 @DomName('OscillatorNode.start') | 1110 @DomName('OscillatorNode.start') |
| 1121 @DocsEditable | 1111 @DocsEditable |
| 1122 void start(num when) native "OscillatorNode_start_Callback"; | 1112 void start(num when) native "OscillatorNode_start_Callback"; |
| 1123 | 1113 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1333 | 1323 |
| 1334 | 1324 |
| 1335 @DocsEditable | 1325 @DocsEditable |
| 1336 @DomName('WaveTable') | 1326 @DomName('WaveTable') |
| 1337 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section | 1327 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section |
| 1338 @Experimental | 1328 @Experimental |
| 1339 class WaveTable extends NativeFieldWrapperClass1 { | 1329 class WaveTable extends NativeFieldWrapperClass1 { |
| 1340 WaveTable.internal(); | 1330 WaveTable.internal(); |
| 1341 | 1331 |
| 1342 } | 1332 } |
| OLD | NEW |