| 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, Returns, convertDartClosureToJS; | 9 import 'dart:_js_helper' show Creates, Returns, convertDartClosureToJS; |
| 10 import 'dart:_foreign_helper' show JS; | 10 import 'dart:_foreign_helper' show JS; |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 num loopStart; | 173 num loopStart; |
| 174 | 174 |
| 175 @DomName('AudioBufferSourceNode.playbackRate') | 175 @DomName('AudioBufferSourceNode.playbackRate') |
| 176 @DocsEditable | 176 @DocsEditable |
| 177 final AudioParam playbackRate; | 177 final AudioParam playbackRate; |
| 178 | 178 |
| 179 @DomName('AudioBufferSourceNode.playbackState') | 179 @DomName('AudioBufferSourceNode.playbackState') |
| 180 @DocsEditable | 180 @DocsEditable |
| 181 final int playbackState; | 181 final int playbackState; |
| 182 | 182 |
| 183 @DomName('AudioBufferSourceNode.noteGrainOn') |
| 184 @DocsEditable |
| 185 void noteGrainOn(num when, num grainOffset, num grainDuration) native; |
| 186 |
| 187 @DomName('AudioBufferSourceNode.noteOff') |
| 188 @DocsEditable |
| 189 void noteOff(num when) native; |
| 190 |
| 191 @DomName('AudioBufferSourceNode.noteOn') |
| 192 @DocsEditable |
| 193 void noteOn(num when) native; |
| 194 |
| 183 } | 195 } |
| 184 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 196 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 185 // for details. All rights reserved. Use of this source code is governed by a | 197 // for details. All rights reserved. Use of this source code is governed by a |
| 186 // BSD-style license that can be found in the LICENSE file. | 198 // BSD-style license that can be found in the LICENSE file. |
| 187 | 199 |
| 188 | 200 |
| 189 @DomName('AudioContext') | 201 @DomName('AudioContext') |
| 190 class AudioContext extends EventTarget native "AudioContext" { | 202 class AudioContext extends EventTarget native "AudioContext" { |
| 191 | 203 |
| 192 @DomName('AudioContext.completeEvent') | 204 @DomName('AudioContext.completeEvent') |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native; | 253 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native; |
| 242 | 254 |
| 243 @DomName('AudioContext.createConvolver') | 255 @DomName('AudioContext.createConvolver') |
| 244 @DocsEditable | 256 @DocsEditable |
| 245 ConvolverNode createConvolver() native; | 257 ConvolverNode createConvolver() native; |
| 246 | 258 |
| 247 @DomName('AudioContext.createDelay') | 259 @DomName('AudioContext.createDelay') |
| 248 @DocsEditable | 260 @DocsEditable |
| 249 DelayNode createDelay([num maxDelayTime]) native; | 261 DelayNode createDelay([num maxDelayTime]) native; |
| 250 | 262 |
| 263 @DomName('AudioContext.createDelayNode') |
| 264 @DocsEditable |
| 265 DelayNode createDelayNode([num maxDelayTime]) native; |
| 266 |
| 251 @DomName('AudioContext.createDynamicsCompressor') | 267 @DomName('AudioContext.createDynamicsCompressor') |
| 252 @DocsEditable | 268 @DocsEditable |
| 253 DynamicsCompressorNode createDynamicsCompressor() native; | 269 DynamicsCompressorNode createDynamicsCompressor() native; |
| 254 | 270 |
| 271 @DomName('AudioContext.createGainNode') |
| 272 @DocsEditable |
| 273 GainNode createGainNode() native; |
| 274 |
| 275 @DomName('AudioContext.createJavaScriptNode') |
| 276 @DocsEditable |
| 277 ScriptProcessorNode createJavaScriptNode(int bufferSize, [int numberOfInputCha
nnels, int numberOfOutputChannels]) native; |
| 278 |
| 255 @DomName('AudioContext.createMediaElementSource') | 279 @DomName('AudioContext.createMediaElementSource') |
| 256 @DocsEditable | 280 @DocsEditable |
| 257 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native; | 281 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native; |
| 258 | 282 |
| 259 @DomName('AudioContext.createMediaStreamDestination') | 283 @DomName('AudioContext.createMediaStreamDestination') |
| 260 @DocsEditable | 284 @DocsEditable |
| 261 MediaStreamAudioDestinationNode createMediaStreamDestination() native; | 285 MediaStreamAudioDestinationNode createMediaStreamDestination() native; |
| 262 | 286 |
| 263 @DomName('AudioContext.createMediaStreamSource') | 287 @DomName('AudioContext.createMediaStreamSource') |
| 264 @DocsEditable | 288 @DocsEditable |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 void exponentialRampToValueAtTime(num value, num time) native; | 468 void exponentialRampToValueAtTime(num value, num time) native; |
| 445 | 469 |
| 446 @DomName('AudioParam.linearRampToValueAtTime') | 470 @DomName('AudioParam.linearRampToValueAtTime') |
| 447 @DocsEditable | 471 @DocsEditable |
| 448 void linearRampToValueAtTime(num value, num time) native; | 472 void linearRampToValueAtTime(num value, num time) native; |
| 449 | 473 |
| 450 @DomName('AudioParam.setTargetAtTime') | 474 @DomName('AudioParam.setTargetAtTime') |
| 451 @DocsEditable | 475 @DocsEditable |
| 452 void setTargetAtTime(num target, num time, num timeConstant) native; | 476 void setTargetAtTime(num target, num time, num timeConstant) native; |
| 453 | 477 |
| 478 @DomName('AudioParam.setTargetValueAtTime') |
| 479 @DocsEditable |
| 480 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native; |
| 481 |
| 454 @DomName('AudioParam.setValueAtTime') | 482 @DomName('AudioParam.setValueAtTime') |
| 455 @DocsEditable | 483 @DocsEditable |
| 456 void setValueAtTime(num value, num time) native; | 484 void setValueAtTime(num value, num time) native; |
| 457 | 485 |
| 458 @DomName('AudioParam.setValueCurveAtTime') | 486 @DomName('AudioParam.setValueCurveAtTime') |
| 459 @DocsEditable | 487 @DocsEditable |
| 460 void setValueCurveAtTime(Float32List values, num time, num duration) native; | 488 void setValueCurveAtTime(Float32List values, num time, num duration) native; |
| 461 } | 489 } |
| 462 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 490 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 463 // for details. All rights reserved. Use of this source code is governed by a | 491 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 final AudioParam frequency; | 794 final AudioParam frequency; |
| 767 | 795 |
| 768 @DomName('OscillatorNode.playbackState') | 796 @DomName('OscillatorNode.playbackState') |
| 769 @DocsEditable | 797 @DocsEditable |
| 770 final int playbackState; | 798 final int playbackState; |
| 771 | 799 |
| 772 @DomName('OscillatorNode.type') | 800 @DomName('OscillatorNode.type') |
| 773 @DocsEditable | 801 @DocsEditable |
| 774 String type; | 802 String type; |
| 775 | 803 |
| 804 @DomName('OscillatorNode.noteOff') |
| 805 @DocsEditable |
| 806 void noteOff(num when) native; |
| 807 |
| 808 @DomName('OscillatorNode.noteOn') |
| 809 @DocsEditable |
| 810 void noteOn(num when) native; |
| 811 |
| 776 @DomName('OscillatorNode.setWaveTable') | 812 @DomName('OscillatorNode.setWaveTable') |
| 777 @DocsEditable | 813 @DocsEditable |
| 778 void setWaveTable(WaveTable waveTable) native; | 814 void setWaveTable(WaveTable waveTable) native; |
| 779 | 815 |
| 780 @DomName('OscillatorNode.start') | 816 @DomName('OscillatorNode.start') |
| 781 @DocsEditable | 817 @DocsEditable |
| 782 void start(num when) native; | 818 void start(num when) native; |
| 783 | 819 |
| 784 @DomName('OscillatorNode.stop') | 820 @DomName('OscillatorNode.stop') |
| 785 @DocsEditable | 821 @DocsEditable |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 } | 958 } |
| 923 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 959 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 924 // for details. All rights reserved. Use of this source code is governed by a | 960 // for details. All rights reserved. Use of this source code is governed by a |
| 925 // BSD-style license that can be found in the LICENSE file. | 961 // BSD-style license that can be found in the LICENSE file. |
| 926 | 962 |
| 927 | 963 |
| 928 @DocsEditable | 964 @DocsEditable |
| 929 @DomName('WaveTable') | 965 @DomName('WaveTable') |
| 930 class WaveTable native "WaveTable" { | 966 class WaveTable native "WaveTable" { |
| 931 } | 967 } |
| OLD | NEW |