| 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 |
| 198 void start(num when, [num grainOffset, num grainDuration]) { | 210 void start(num when, [num grainOffset, num grainDuration]) { |
| 199 if ((when is num || when == null) && !?grainOffset && !?grainDuration) { | 211 if ((when is num || when == null) && !?grainOffset && !?grainDuration) { |
| 200 _start_1(when); | 212 _start_1(when); |
| 201 return; | 213 return; |
| 202 } | 214 } |
| 203 if ((when is num || when == null) && (grainOffset is num || grainOffset == n
ull) && !?grainDuration) { | 215 if ((when is num || when == null) && (grainOffset is num || grainOffset == n
ull) && !?grainDuration) { |
| 204 _start_2(when, grainOffset); | 216 _start_2(when, grainOffset); |
| 205 return; | 217 return; |
| 206 } | 218 } |
| 207 if ((when is num || when == null) && (grainOffset is num || grainOffset == n
ull) && (grainDuration is num || grainDuration == null)) { | 219 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... |
| 318 if (?maxDelayTime) { | 330 if (?maxDelayTime) { |
| 319 return _createDelay_1(maxDelayTime); | 331 return _createDelay_1(maxDelayTime); |
| 320 } | 332 } |
| 321 return _createDelay_2(); | 333 return _createDelay_2(); |
| 322 } | 334 } |
| 323 | 335 |
| 324 DelayNode _createDelay_1(maxDelayTime) native "AudioContext__createDelay_1_Cal
lback"; | 336 DelayNode _createDelay_1(maxDelayTime) native "AudioContext__createDelay_1_Cal
lback"; |
| 325 | 337 |
| 326 DelayNode _createDelay_2() native "AudioContext__createDelay_2_Callback"; | 338 DelayNode _createDelay_2() native "AudioContext__createDelay_2_Callback"; |
| 327 | 339 |
| 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 |
| 328 @DomName('AudioContext.createDynamicsCompressor') | 351 @DomName('AudioContext.createDynamicsCompressor') |
| 329 @DocsEditable | 352 @DocsEditable |
| 330 DynamicsCompressorNode createDynamicsCompressor() native "AudioContext_createD
ynamicsCompressor_Callback"; | 353 DynamicsCompressorNode createDynamicsCompressor() native "AudioContext_createD
ynamicsCompressor_Callback"; |
| 331 | 354 |
| 332 @DomName('AudioContext.createGain') | 355 @DomName('AudioContext.createGain') |
| 333 @DocsEditable | 356 @DocsEditable |
| 334 GainNode createGain() native "AudioContext_createGain_Callback"; | 357 GainNode createGain() native "AudioContext_createGain_Callback"; |
| 335 | 358 |
| 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 |
| 336 @DomName('AudioContext.createMediaElementSource') | 379 @DomName('AudioContext.createMediaElementSource') |
| 337 @DocsEditable | 380 @DocsEditable |
| 338 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native "AudioContext_createMediaElementSource_Callback"; | 381 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native "AudioContext_createMediaElementSource_Callback"; |
| 339 | 382 |
| 340 @DomName('AudioContext.createMediaStreamDestination') | 383 @DomName('AudioContext.createMediaStreamDestination') |
| 341 @DocsEditable | 384 @DocsEditable |
| 342 MediaStreamAudioDestinationNode createMediaStreamDestination() native "AudioCo
ntext_createMediaStreamDestination_Callback"; | 385 MediaStreamAudioDestinationNode createMediaStreamDestination() native "AudioCo
ntext_createMediaStreamDestination_Callback"; |
| 343 | 386 |
| 344 @DomName('AudioContext.createMediaStreamSource') | 387 @DomName('AudioContext.createMediaStreamSource') |
| 345 @DocsEditable | 388 @DocsEditable |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 void exponentialRampToValueAtTime(num value, num time) native "AudioParam_expo
nentialRampToValueAtTime_Callback"; | 609 void exponentialRampToValueAtTime(num value, num time) native "AudioParam_expo
nentialRampToValueAtTime_Callback"; |
| 567 | 610 |
| 568 @DomName('AudioParam.linearRampToValueAtTime') | 611 @DomName('AudioParam.linearRampToValueAtTime') |
| 569 @DocsEditable | 612 @DocsEditable |
| 570 void linearRampToValueAtTime(num value, num time) native "AudioParam_linearRam
pToValueAtTime_Callback"; | 613 void linearRampToValueAtTime(num value, num time) native "AudioParam_linearRam
pToValueAtTime_Callback"; |
| 571 | 614 |
| 572 @DomName('AudioParam.setTargetAtTime') | 615 @DomName('AudioParam.setTargetAtTime') |
| 573 @DocsEditable | 616 @DocsEditable |
| 574 void setTargetAtTime(num target, num time, num timeConstant) native "AudioPara
m_setTargetAtTime_Callback"; | 617 void setTargetAtTime(num target, num time, num timeConstant) native "AudioPara
m_setTargetAtTime_Callback"; |
| 575 | 618 |
| 619 @DomName('AudioParam.setTargetValueAtTime') |
| 620 @DocsEditable |
| 621 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native
"AudioParam_setTargetValueAtTime_Callback"; |
| 622 |
| 576 @DomName('AudioParam.setValueAtTime') | 623 @DomName('AudioParam.setValueAtTime') |
| 577 @DocsEditable | 624 @DocsEditable |
| 578 void setValueAtTime(num value, num time) native "AudioParam_setValueAtTime_Cal
lback"; | 625 void setValueAtTime(num value, num time) native "AudioParam_setValueAtTime_Cal
lback"; |
| 579 | 626 |
| 580 @DomName('AudioParam.setValueCurveAtTime') | 627 @DomName('AudioParam.setValueCurveAtTime') |
| 581 @DocsEditable | 628 @DocsEditable |
| 582 void setValueCurveAtTime(Float32List values, num time, num duration) native "A
udioParam_setValueCurveAtTime_Callback"; | 629 void setValueCurveAtTime(Float32List values, num time, num duration) native "A
udioParam_setValueCurveAtTime_Callback"; |
| 583 | 630 |
| 584 } | 631 } |
| 585 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 632 // 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... |
| 966 int get playbackState native "OscillatorNode_playbackState_Getter"; | 1013 int get playbackState native "OscillatorNode_playbackState_Getter"; |
| 967 | 1014 |
| 968 @DomName('OscillatorNode.type') | 1015 @DomName('OscillatorNode.type') |
| 969 @DocsEditable | 1016 @DocsEditable |
| 970 String get type native "OscillatorNode_type_Getter"; | 1017 String get type native "OscillatorNode_type_Getter"; |
| 971 | 1018 |
| 972 @DomName('OscillatorNode.type') | 1019 @DomName('OscillatorNode.type') |
| 973 @DocsEditable | 1020 @DocsEditable |
| 974 void set type(String value) native "OscillatorNode_type_Setter"; | 1021 void set type(String value) native "OscillatorNode_type_Setter"; |
| 975 | 1022 |
| 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 |
| 976 @DomName('OscillatorNode.setWaveTable') | 1031 @DomName('OscillatorNode.setWaveTable') |
| 977 @DocsEditable | 1032 @DocsEditable |
| 978 void setWaveTable(WaveTable waveTable) native "OscillatorNode_setWaveTable_Cal
lback"; | 1033 void setWaveTable(WaveTable waveTable) native "OscillatorNode_setWaveTable_Cal
lback"; |
| 979 | 1034 |
| 980 @DomName('OscillatorNode.start') | 1035 @DomName('OscillatorNode.start') |
| 981 @DocsEditable | 1036 @DocsEditable |
| 982 void start(num when) native "OscillatorNode_start_Callback"; | 1037 void start(num when) native "OscillatorNode_start_Callback"; |
| 983 | 1038 |
| 984 @DomName('OscillatorNode.stop') | 1039 @DomName('OscillatorNode.stop') |
| 985 @DocsEditable | 1040 @DocsEditable |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1172 | 1227 |
| 1173 // WARNING: Do not edit - generated code. | 1228 // WARNING: Do not edit - generated code. |
| 1174 | 1229 |
| 1175 | 1230 |
| 1176 @DocsEditable | 1231 @DocsEditable |
| 1177 @DomName('WaveTable') | 1232 @DomName('WaveTable') |
| 1178 class WaveTable extends NativeFieldWrapperClass1 { | 1233 class WaveTable extends NativeFieldWrapperClass1 { |
| 1179 WaveTable.internal(); | 1234 WaveTable.internal(); |
| 1180 | 1235 |
| 1181 } | 1236 } |
| OLD | NEW |