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