| 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; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 @DomName('AudioBufferSourceNode.playbackRate') | 184 @DomName('AudioBufferSourceNode.playbackRate') |
| 185 @DocsEditable | 185 @DocsEditable |
| 186 final AudioParam playbackRate; | 186 final AudioParam playbackRate; |
| 187 | 187 |
| 188 @DomName('AudioBufferSourceNode.playbackState') | 188 @DomName('AudioBufferSourceNode.playbackState') |
| 189 @DocsEditable | 189 @DocsEditable |
| 190 final int playbackState; | 190 final int playbackState; |
| 191 | 191 |
| 192 @DomName('AudioBufferSourceNode.noteGrainOn') | 192 @DomName('AudioBufferSourceNode.noteGrainOn') |
| 193 @DocsEditable | 193 @DocsEditable |
| 194 @Experimental // untriaged | |
| 195 void noteGrainOn(num when, num grainOffset, num grainDuration) native; | 194 void noteGrainOn(num when, num grainOffset, num grainDuration) native; |
| 196 | 195 |
| 197 @DomName('AudioBufferSourceNode.noteOff') | 196 @DomName('AudioBufferSourceNode.noteOff') |
| 198 @DocsEditable | 197 @DocsEditable |
| 199 @Experimental // untriaged | |
| 200 void noteOff(num when) native; | 198 void noteOff(num when) native; |
| 201 | 199 |
| 202 @DomName('AudioBufferSourceNode.noteOn') | 200 @DomName('AudioBufferSourceNode.noteOn') |
| 203 @DocsEditable | 201 @DocsEditable |
| 204 @Experimental // untriaged | |
| 205 void noteOn(num when) native; | 202 void noteOn(num when) native; |
| 206 | 203 |
| 207 } | 204 } |
| 208 // 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 |
| 209 // 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 |
| 210 // BSD-style license that can be found in the LICENSE file. | 207 // BSD-style license that can be found in the LICENSE file. |
| 211 | 208 |
| 212 | 209 |
| 213 @DomName('AudioContext') | 210 @DomName('AudioContext') |
| 214 // 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 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 @DomName('AudioContext.createConvolver') | 266 @DomName('AudioContext.createConvolver') |
| 270 @DocsEditable | 267 @DocsEditable |
| 271 ConvolverNode createConvolver() native; | 268 ConvolverNode createConvolver() native; |
| 272 | 269 |
| 273 @DomName('AudioContext.createDelay') | 270 @DomName('AudioContext.createDelay') |
| 274 @DocsEditable | 271 @DocsEditable |
| 275 DelayNode createDelay([num maxDelayTime]) native; | 272 DelayNode createDelay([num maxDelayTime]) native; |
| 276 | 273 |
| 277 @DomName('AudioContext.createDelayNode') | 274 @DomName('AudioContext.createDelayNode') |
| 278 @DocsEditable | 275 @DocsEditable |
| 279 @Experimental // untriaged | |
| 280 DelayNode createDelayNode([num maxDelayTime]) native; | 276 DelayNode createDelayNode([num maxDelayTime]) native; |
| 281 | 277 |
| 282 @DomName('AudioContext.createDynamicsCompressor') | 278 @DomName('AudioContext.createDynamicsCompressor') |
| 283 @DocsEditable | 279 @DocsEditable |
| 284 DynamicsCompressorNode createDynamicsCompressor() native; | 280 DynamicsCompressorNode createDynamicsCompressor() native; |
| 285 | 281 |
| 286 @DomName('AudioContext.createGainNode') | 282 @DomName('AudioContext.createGainNode') |
| 287 @DocsEditable | 283 @DocsEditable |
| 288 @Experimental // untriaged | |
| 289 GainNode createGainNode() native; | 284 GainNode createGainNode() native; |
| 290 | 285 |
| 291 @DomName('AudioContext.createJavaScriptNode') | 286 @DomName('AudioContext.createJavaScriptNode') |
| 292 @DocsEditable | 287 @DocsEditable |
| 293 @Experimental // untriaged | |
| 294 ScriptProcessorNode createJavaScriptNode(int bufferSize, [int numberOfInputCha
nnels, int numberOfOutputChannels]) native; | 288 ScriptProcessorNode createJavaScriptNode(int bufferSize, [int numberOfInputCha
nnels, int numberOfOutputChannels]) native; |
| 295 | 289 |
| 296 @DomName('AudioContext.createMediaElementSource') | 290 @DomName('AudioContext.createMediaElementSource') |
| 297 @DocsEditable | 291 @DocsEditable |
| 298 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native; | 292 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native; |
| 299 | 293 |
| 300 @DomName('AudioContext.createMediaStreamDestination') | 294 @DomName('AudioContext.createMediaStreamDestination') |
| 301 @DocsEditable | 295 @DocsEditable |
| 302 MediaStreamAudioDestinationNode createMediaStreamDestination() native; | 296 MediaStreamAudioDestinationNode createMediaStreamDestination() native; |
| 303 | 297 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 @DocsEditable | 431 @DocsEditable |
| 438 final int numberOfInputs; | 432 final int numberOfInputs; |
| 439 | 433 |
| 440 @DomName('AudioNode.numberOfOutputs') | 434 @DomName('AudioNode.numberOfOutputs') |
| 441 @DocsEditable | 435 @DocsEditable |
| 442 final int numberOfOutputs; | 436 final int numberOfOutputs; |
| 443 | 437 |
| 444 @JSName('addEventListener') | 438 @JSName('addEventListener') |
| 445 @DomName('AudioNode.addEventListener') | 439 @DomName('AudioNode.addEventListener') |
| 446 @DocsEditable | 440 @DocsEditable |
| 447 @Experimental // untriaged | |
| 448 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 441 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 449 | 442 |
| 450 @DomName('AudioNode.connect') | 443 @DomName('AudioNode.connect') |
| 451 @DocsEditable | 444 @DocsEditable |
| 452 void connect(destination, int output, [int input]) native; | 445 void connect(destination, int output, [int input]) native; |
| 453 | 446 |
| 454 @DomName('AudioNode.disconnect') | 447 @DomName('AudioNode.disconnect') |
| 455 @DocsEditable | 448 @DocsEditable |
| 456 void disconnect(int output) native; | 449 void disconnect(int output) native; |
| 457 | 450 |
| 458 @DomName('AudioNode.dispatchEvent') | 451 @DomName('AudioNode.dispatchEvent') |
| 459 @DocsEditable | 452 @DocsEditable |
| 460 @Experimental // untriaged | |
| 461 bool dispatchEvent(Event event) native; | 453 bool dispatchEvent(Event event) native; |
| 462 | 454 |
| 463 @JSName('removeEventListener') | 455 @JSName('removeEventListener') |
| 464 @DomName('AudioNode.removeEventListener') | 456 @DomName('AudioNode.removeEventListener') |
| 465 @DocsEditable | 457 @DocsEditable |
| 466 @Experimental // untriaged | |
| 467 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 458 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 468 } | 459 } |
| 469 // 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 |
| 470 // 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 |
| 471 // BSD-style license that can be found in the LICENSE file. | 462 // BSD-style license that can be found in the LICENSE file. |
| 472 | 463 |
| 473 | 464 |
| 474 @DocsEditable | 465 @DocsEditable |
| 475 @DomName('AudioParam') | 466 @DomName('AudioParam') |
| 476 // 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 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 @DomName('AudioParam.linearRampToValueAtTime') | 503 @DomName('AudioParam.linearRampToValueAtTime') |
| 513 @DocsEditable | 504 @DocsEditable |
| 514 void linearRampToValueAtTime(num value, num time) native; | 505 void linearRampToValueAtTime(num value, num time) native; |
| 515 | 506 |
| 516 @DomName('AudioParam.setTargetAtTime') | 507 @DomName('AudioParam.setTargetAtTime') |
| 517 @DocsEditable | 508 @DocsEditable |
| 518 void setTargetAtTime(num target, num time, num timeConstant) native; | 509 void setTargetAtTime(num target, num time, num timeConstant) native; |
| 519 | 510 |
| 520 @DomName('AudioParam.setTargetValueAtTime') | 511 @DomName('AudioParam.setTargetValueAtTime') |
| 521 @DocsEditable | 512 @DocsEditable |
| 522 @Experimental // untriaged | |
| 523 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native; | 513 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native; |
| 524 | 514 |
| 525 @DomName('AudioParam.setValueAtTime') | 515 @DomName('AudioParam.setValueAtTime') |
| 526 @DocsEditable | 516 @DocsEditable |
| 527 void setValueAtTime(num value, num time) native; | 517 void setValueAtTime(num value, num time) native; |
| 528 | 518 |
| 529 @DomName('AudioParam.setValueCurveAtTime') | 519 @DomName('AudioParam.setValueCurveAtTime') |
| 530 @DocsEditable | 520 @DocsEditable |
| 531 void setValueCurveAtTime(Float32List values, num time, num duration) native; | 521 void setValueCurveAtTime(Float32List values, num time, num duration) native; |
| 532 } | 522 } |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 @DomName('OscillatorNode.playbackState') | 870 @DomName('OscillatorNode.playbackState') |
| 881 @DocsEditable | 871 @DocsEditable |
| 882 final int playbackState; | 872 final int playbackState; |
| 883 | 873 |
| 884 @DomName('OscillatorNode.type') | 874 @DomName('OscillatorNode.type') |
| 885 @DocsEditable | 875 @DocsEditable |
| 886 String type; | 876 String type; |
| 887 | 877 |
| 888 @DomName('OscillatorNode.noteOff') | 878 @DomName('OscillatorNode.noteOff') |
| 889 @DocsEditable | 879 @DocsEditable |
| 890 @Experimental // untriaged | |
| 891 void noteOff(num when) native; | 880 void noteOff(num when) native; |
| 892 | 881 |
| 893 @DomName('OscillatorNode.noteOn') | 882 @DomName('OscillatorNode.noteOn') |
| 894 @DocsEditable | 883 @DocsEditable |
| 895 @Experimental // untriaged | |
| 896 void noteOn(num when) native; | 884 void noteOn(num when) native; |
| 897 | 885 |
| 898 @DomName('OscillatorNode.setWaveTable') | 886 @DomName('OscillatorNode.setWaveTable') |
| 899 @DocsEditable | 887 @DocsEditable |
| 900 void setWaveTable(WaveTable waveTable) native; | 888 void setWaveTable(WaveTable waveTable) native; |
| 901 | 889 |
| 902 @DomName('OscillatorNode.start') | 890 @DomName('OscillatorNode.start') |
| 903 @DocsEditable | 891 @DocsEditable |
| 904 void start(num when) native; | 892 void start(num when) native; |
| 905 | 893 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 // for details. All rights reserved. Use of this source code is governed by a | 1052 // for details. All rights reserved. Use of this source code is governed by a |
| 1065 // BSD-style license that can be found in the LICENSE file. | 1053 // BSD-style license that can be found in the LICENSE file. |
| 1066 | 1054 |
| 1067 | 1055 |
| 1068 @DocsEditable | 1056 @DocsEditable |
| 1069 @DomName('WaveTable') | 1057 @DomName('WaveTable') |
| 1070 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section | 1058 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section |
| 1071 @Experimental | 1059 @Experimental |
| 1072 class WaveTable native "WaveTable" { | 1060 class WaveTable native "WaveTable" { |
| 1073 } | 1061 } |
| OLD | NEW |