| OLD | NEW |
| 1 library web_audio; | 1 library 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 // DO NOT EDIT | 8 // DO NOT EDIT |
| 9 // Auto-generated dart:audio library. | 9 // Auto-generated dart:audio library. |
| 10 | 10 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 174 |
| 175 | 175 |
| 176 @DomName('AudioContext') | 176 @DomName('AudioContext') |
| 177 class AudioContext extends EventTarget native "*AudioContext" { | 177 class AudioContext extends EventTarget native "*AudioContext" { |
| 178 | 178 |
| 179 @DomName('AudioContext.complete') | 179 @DomName('AudioContext.complete') |
| 180 @DocsEditable | 180 @DocsEditable |
| 181 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); | 181 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); |
| 182 | 182 |
| 183 @DocsEditable | 183 @DocsEditable |
| 184 factory AudioContext() => AudioContext._create(); | |
| 185 | |
| 186 @DocsEditable | |
| 187 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') | 184 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') |
| 188 @deprecated | 185 @deprecated |
| 189 AudioContextEvents get on => | 186 AudioContextEvents get on => |
| 190 new AudioContextEvents(this); | 187 new AudioContextEvents(this); |
| 191 | 188 |
| 192 @DomName('AudioContext.activeSourceCount') | 189 @DomName('AudioContext.activeSourceCount') |
| 193 @DocsEditable | 190 @DocsEditable |
| 194 final int activeSourceCount; | 191 final int activeSourceCount; |
| 195 | 192 |
| 196 @DomName('AudioContext.currentTime') | 193 @DomName('AudioContext.currentTime') |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) native; | 275 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) native; |
| 279 | 276 |
| 280 @DomName('AudioContext.startRendering') | 277 @DomName('AudioContext.startRendering') |
| 281 @DocsEditable | 278 @DocsEditable |
| 282 void startRendering() native; | 279 void startRendering() native; |
| 283 | 280 |
| 284 @DomName('AudioContext.complete') | 281 @DomName('AudioContext.complete') |
| 285 @DocsEditable | 282 @DocsEditable |
| 286 Stream<Event> get onComplete => completeEvent.forTarget(this); | 283 Stream<Event> get onComplete => completeEvent.forTarget(this); |
| 287 | 284 |
| 288 static AudioContext _create() => JS('AudioContext', | 285 factory AudioContext() => JS('AudioContext', |
| 289 'new (window.AudioContext || window.webkitAudioContext)()'); | 286 'new (window.AudioContext || window.webkitAudioContext)()'); |
| 290 | 287 |
| 291 GainNode createGain() { | 288 GainNode createGain() { |
| 292 if (JS('bool', '#.createGain !== undefined', this)) { | 289 if (JS('bool', '#.createGain !== undefined', this)) { |
| 293 return JS('GainNode', '#.createGain()', this); | 290 return JS('GainNode', '#.createGain()', this); |
| 294 } else { | 291 } else { |
| 295 return JS('GainNode', '#.createGainNode()', this); | 292 return JS('GainNode', '#.createGainNode()', this); |
| 296 } | 293 } |
| 297 } | 294 } |
| 298 | 295 |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 680 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 684 // for details. All rights reserved. Use of this source code is governed by a | 681 // for details. All rights reserved. Use of this source code is governed by a |
| 685 // BSD-style license that can be found in the LICENSE file. | 682 // BSD-style license that can be found in the LICENSE file. |
| 686 | 683 |
| 687 | 684 |
| 688 @DocsEditable | 685 @DocsEditable |
| 689 @DomName('OfflineAudioContext') | 686 @DomName('OfflineAudioContext') |
| 690 class OfflineAudioContext extends AudioContext implements EventTarget native "*O
fflineAudioContext" { | 687 class OfflineAudioContext extends AudioContext implements EventTarget native "*O
fflineAudioContext" { |
| 691 | 688 |
| 692 @DocsEditable | 689 @DocsEditable |
| 693 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp
leRate) => OfflineAudioContext._create(numberOfChannels, numberOfFrames, sampleR
ate); | 690 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp
leRate) { |
| 694 static OfflineAudioContext _create(int numberOfChannels, int numberOfFrames, n
um sampleRate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', nu
mberOfChannels, numberOfFrames, sampleRate); | 691 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl
eRate); |
| 692 } |
| 693 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR
ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan
nels, numberOfFrames, sampleRate); |
| 695 } | 694 } |
| 696 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 695 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 697 // for details. All rights reserved. Use of this source code is governed by a | 696 // for details. All rights reserved. Use of this source code is governed by a |
| 698 // BSD-style license that can be found in the LICENSE file. | 697 // BSD-style license that can be found in the LICENSE file. |
| 699 | 698 |
| 700 | 699 |
| 701 @DocsEditable | 700 @DocsEditable |
| 702 @DomName('OscillatorNode') | 701 @DomName('OscillatorNode') |
| 703 class OscillatorNode extends AudioSourceNode native "*OscillatorNode" { | 702 class OscillatorNode extends AudioSourceNode native "*OscillatorNode" { |
| 704 | 703 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 } | 840 } |
| 842 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 841 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 843 // for details. All rights reserved. Use of this source code is governed by a | 842 // for details. All rights reserved. Use of this source code is governed by a |
| 844 // BSD-style license that can be found in the LICENSE file. | 843 // BSD-style license that can be found in the LICENSE file. |
| 845 | 844 |
| 846 | 845 |
| 847 @DocsEditable | 846 @DocsEditable |
| 848 @DomName('WaveTable') | 847 @DomName('WaveTable') |
| 849 class WaveTable native "*WaveTable" { | 848 class WaveTable native "*WaveTable" { |
| 850 } | 849 } |
| OLD | NEW |