| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 void set loopStart(num value) native "AudioBufferSourceNode_loopStart_Setter"; | 188 void set loopStart(num value) native "AudioBufferSourceNode_loopStart_Setter"; |
| 189 | 189 |
| 190 @DomName('AudioBufferSourceNode.playbackRate') | 190 @DomName('AudioBufferSourceNode.playbackRate') |
| 191 @DocsEditable | 191 @DocsEditable |
| 192 AudioParam get playbackRate native "AudioBufferSourceNode_playbackRate_Getter"
; | 192 AudioParam get playbackRate native "AudioBufferSourceNode_playbackRate_Getter"
; |
| 193 | 193 |
| 194 @DomName('AudioBufferSourceNode.playbackState') | 194 @DomName('AudioBufferSourceNode.playbackState') |
| 195 @DocsEditable | 195 @DocsEditable |
| 196 int get playbackState native "AudioBufferSourceNode_playbackState_Getter"; | 196 int get playbackState native "AudioBufferSourceNode_playbackState_Getter"; |
| 197 | 197 |
| 198 @DomName('AudioBufferSourceNode.noteGrainOn') | |
| 199 @DocsEditable | |
| 200 void noteGrainOn(num when, num grainOffset, num grainDuration) native "AudioBu
fferSourceNode_noteGrainOn_Callback"; | |
| 201 | |
| 202 @DomName('AudioBufferSourceNode.noteOff') | |
| 203 @DocsEditable | |
| 204 void noteOff(num when) native "AudioBufferSourceNode_noteOff_Callback"; | |
| 205 | |
| 206 @DomName('AudioBufferSourceNode.noteOn') | |
| 207 @DocsEditable | |
| 208 void noteOn(num when) native "AudioBufferSourceNode_noteOn_Callback"; | |
| 209 | |
| 210 void start(num when, [num grainOffset, num grainDuration]) { | 198 void start(num when, [num grainOffset, num grainDuration]) { |
| 211 if ((when is num || when == null) && !?grainOffset && !?grainDuration) { | 199 if ((when is num || when == null) && !?grainOffset && !?grainDuration) { |
| 212 _start_1(when); | 200 _start_1(when); |
| 213 return; | 201 return; |
| 214 } | 202 } |
| 215 if ((when is num || when == null) && (grainOffset is num || grainOffset == n
ull) && !?grainDuration) { | 203 if ((when is num || when == null) && (grainOffset is num || grainOffset == n
ull) && !?grainDuration) { |
| 216 _start_2(when, grainOffset); | 204 _start_2(when, grainOffset); |
| 217 return; | 205 return; |
| 218 } | 206 } |
| 219 if ((when is num || when == null) && (grainOffset is num || grainOffset == n
ull) && (grainDuration is num || grainDuration == null)) { | 207 if ((when is num || when == null) && (grainOffset is num || grainOffset == n
ull) && (grainDuration is num || grainDuration == null)) { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 if (?maxDelayTime) { | 318 if (?maxDelayTime) { |
| 331 return _createDelay_1(maxDelayTime); | 319 return _createDelay_1(maxDelayTime); |
| 332 } | 320 } |
| 333 return _createDelay_2(); | 321 return _createDelay_2(); |
| 334 } | 322 } |
| 335 | 323 |
| 336 DelayNode _createDelay_1(maxDelayTime) native "AudioContext__createDelay_1_Cal
lback"; | 324 DelayNode _createDelay_1(maxDelayTime) native "AudioContext__createDelay_1_Cal
lback"; |
| 337 | 325 |
| 338 DelayNode _createDelay_2() native "AudioContext__createDelay_2_Callback"; | 326 DelayNode _createDelay_2() native "AudioContext__createDelay_2_Callback"; |
| 339 | 327 |
| 340 DelayNode createDelayNode([num maxDelayTime]) { | |
| 341 if (?maxDelayTime) { | |
| 342 return _createDelayNode_1(maxDelayTime); | |
| 343 } | |
| 344 return _createDelayNode_2(); | |
| 345 } | |
| 346 | |
| 347 DelayNode _createDelayNode_1(maxDelayTime) native "AudioContext__createDelayNo
de_1_Callback"; | |
| 348 | |
| 349 DelayNode _createDelayNode_2() native "AudioContext__createDelayNode_2_Callbac
k"; | |
| 350 | |
| 351 @DomName('AudioContext.createDynamicsCompressor') | 328 @DomName('AudioContext.createDynamicsCompressor') |
| 352 @DocsEditable | 329 @DocsEditable |
| 353 DynamicsCompressorNode createDynamicsCompressor() native "AudioContext_createD
ynamicsCompressor_Callback"; | 330 DynamicsCompressorNode createDynamicsCompressor() native "AudioContext_createD
ynamicsCompressor_Callback"; |
| 354 | 331 |
| 355 @DomName('AudioContext.createGain') | 332 @DomName('AudioContext.createGain') |
| 356 @DocsEditable | 333 @DocsEditable |
| 357 GainNode createGain() native "AudioContext_createGain_Callback"; | 334 GainNode createGain() native "AudioContext_createGain_Callback"; |
| 358 | 335 |
| 359 @DomName('AudioContext.createGainNode') | |
| 360 @DocsEditable | |
| 361 GainNode createGainNode() native "AudioContext_createGainNode_Callback"; | |
| 362 | |
| 363 ScriptProcessorNode createJavaScriptNode(int bufferSize, [int numberOfInputCha
nnels, int numberOfOutputChannels]) { | |
| 364 if (?numberOfOutputChannels) { | |
| 365 return _createJavaScriptNode_1(bufferSize, numberOfInputChannels, numberOf
OutputChannels); | |
| 366 } | |
| 367 if (?numberOfInputChannels) { | |
| 368 return _createJavaScriptNode_2(bufferSize, numberOfInputChannels); | |
| 369 } | |
| 370 return _createJavaScriptNode_3(bufferSize); | |
| 371 } | |
| 372 | |
| 373 ScriptProcessorNode _createJavaScriptNode_1(bufferSize, numberOfInputChannels,
numberOfOutputChannels) native "AudioContext__createJavaScriptNode_1_Callback"; | |
| 374 | |
| 375 ScriptProcessorNode _createJavaScriptNode_2(bufferSize, numberOfInputChannels)
native "AudioContext__createJavaScriptNode_2_Callback"; | |
| 376 | |
| 377 ScriptProcessorNode _createJavaScriptNode_3(bufferSize) native "AudioContext__
createJavaScriptNode_3_Callback"; | |
| 378 | |
| 379 @DomName('AudioContext.createMediaElementSource') | 336 @DomName('AudioContext.createMediaElementSource') |
| 380 @DocsEditable | 337 @DocsEditable |
| 381 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native "AudioContext_createMediaElementSource_Callback"; | 338 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native "AudioContext_createMediaElementSource_Callback"; |
| 382 | 339 |
| 383 @DomName('AudioContext.createMediaStreamDestination') | 340 @DomName('AudioContext.createMediaStreamDestination') |
| 384 @DocsEditable | 341 @DocsEditable |
| 385 MediaStreamAudioDestinationNode createMediaStreamDestination() native "AudioCo
ntext_createMediaStreamDestination_Callback"; | 342 MediaStreamAudioDestinationNode createMediaStreamDestination() native "AudioCo
ntext_createMediaStreamDestination_Callback"; |
| 386 | 343 |
| 387 @DomName('AudioContext.createMediaStreamSource') | 344 @DomName('AudioContext.createMediaStreamSource') |
| 388 @DocsEditable | 345 @DocsEditable |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 void exponentialRampToValueAtTime(num value, num time) native "AudioParam_expo
nentialRampToValueAtTime_Callback"; | 566 void exponentialRampToValueAtTime(num value, num time) native "AudioParam_expo
nentialRampToValueAtTime_Callback"; |
| 610 | 567 |
| 611 @DomName('AudioParam.linearRampToValueAtTime') | 568 @DomName('AudioParam.linearRampToValueAtTime') |
| 612 @DocsEditable | 569 @DocsEditable |
| 613 void linearRampToValueAtTime(num value, num time) native "AudioParam_linearRam
pToValueAtTime_Callback"; | 570 void linearRampToValueAtTime(num value, num time) native "AudioParam_linearRam
pToValueAtTime_Callback"; |
| 614 | 571 |
| 615 @DomName('AudioParam.setTargetAtTime') | 572 @DomName('AudioParam.setTargetAtTime') |
| 616 @DocsEditable | 573 @DocsEditable |
| 617 void setTargetAtTime(num target, num time, num timeConstant) native "AudioPara
m_setTargetAtTime_Callback"; | 574 void setTargetAtTime(num target, num time, num timeConstant) native "AudioPara
m_setTargetAtTime_Callback"; |
| 618 | 575 |
| 619 @DomName('AudioParam.setTargetValueAtTime') | |
| 620 @DocsEditable | |
| 621 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native
"AudioParam_setTargetValueAtTime_Callback"; | |
| 622 | |
| 623 @DomName('AudioParam.setValueAtTime') | 576 @DomName('AudioParam.setValueAtTime') |
| 624 @DocsEditable | 577 @DocsEditable |
| 625 void setValueAtTime(num value, num time) native "AudioParam_setValueAtTime_Cal
lback"; | 578 void setValueAtTime(num value, num time) native "AudioParam_setValueAtTime_Cal
lback"; |
| 626 | 579 |
| 627 @DomName('AudioParam.setValueCurveAtTime') | 580 @DomName('AudioParam.setValueCurveAtTime') |
| 628 @DocsEditable | 581 @DocsEditable |
| 629 void setValueCurveAtTime(Float32List values, num time, num duration) native "A
udioParam_setValueCurveAtTime_Callback"; | 582 void setValueCurveAtTime(Float32List values, num time, num duration) native "A
udioParam_setValueCurveAtTime_Callback"; |
| 630 | 583 |
| 631 } | 584 } |
| 632 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 585 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 int get playbackState native "OscillatorNode_playbackState_Getter"; | 966 int get playbackState native "OscillatorNode_playbackState_Getter"; |
| 1014 | 967 |
| 1015 @DomName('OscillatorNode.type') | 968 @DomName('OscillatorNode.type') |
| 1016 @DocsEditable | 969 @DocsEditable |
| 1017 String get type native "OscillatorNode_type_Getter"; | 970 String get type native "OscillatorNode_type_Getter"; |
| 1018 | 971 |
| 1019 @DomName('OscillatorNode.type') | 972 @DomName('OscillatorNode.type') |
| 1020 @DocsEditable | 973 @DocsEditable |
| 1021 void set type(String value) native "OscillatorNode_type_Setter"; | 974 void set type(String value) native "OscillatorNode_type_Setter"; |
| 1022 | 975 |
| 1023 @DomName('OscillatorNode.noteOff') | |
| 1024 @DocsEditable | |
| 1025 void noteOff(num when) native "OscillatorNode_noteOff_Callback"; | |
| 1026 | |
| 1027 @DomName('OscillatorNode.noteOn') | |
| 1028 @DocsEditable | |
| 1029 void noteOn(num when) native "OscillatorNode_noteOn_Callback"; | |
| 1030 | |
| 1031 @DomName('OscillatorNode.setWaveTable') | 976 @DomName('OscillatorNode.setWaveTable') |
| 1032 @DocsEditable | 977 @DocsEditable |
| 1033 void setWaveTable(WaveTable waveTable) native "OscillatorNode_setWaveTable_Cal
lback"; | 978 void setWaveTable(WaveTable waveTable) native "OscillatorNode_setWaveTable_Cal
lback"; |
| 1034 | 979 |
| 1035 @DomName('OscillatorNode.start') | 980 @DomName('OscillatorNode.start') |
| 1036 @DocsEditable | 981 @DocsEditable |
| 1037 void start(num when) native "OscillatorNode_start_Callback"; | 982 void start(num when) native "OscillatorNode_start_Callback"; |
| 1038 | 983 |
| 1039 @DomName('OscillatorNode.stop') | 984 @DomName('OscillatorNode.stop') |
| 1040 @DocsEditable | 985 @DocsEditable |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1227 | 1172 |
| 1228 // WARNING: Do not edit - generated code. | 1173 // WARNING: Do not edit - generated code. |
| 1229 | 1174 |
| 1230 | 1175 |
| 1231 @DocsEditable | 1176 @DocsEditable |
| 1232 @DomName('WaveTable') | 1177 @DomName('WaveTable') |
| 1233 class WaveTable extends NativeFieldWrapperClass1 { | 1178 class WaveTable extends NativeFieldWrapperClass1 { |
| 1234 WaveTable.internal(); | 1179 WaveTable.internal(); |
| 1235 | 1180 |
| 1236 } | 1181 } |
| OLD | NEW |