| OLD | NEW |
| 1 library web_audio; | 1 library web_audio; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:html'; | 4 import 'dart:html'; |
| 5 import 'dart:html_common'; | 5 import 'dart:html_common'; |
| 6 // DO NOT EDIT | 6 // DO NOT EDIT |
| 7 // Auto-generated dart:audio library. | 7 // Auto-generated dart:audio library. |
| 8 | 8 |
| 9 | 9 |
| 10 | 10 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 } | 171 } |
| 172 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 172 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 173 // for details. All rights reserved. Use of this source code is governed by a | 173 // for details. All rights reserved. Use of this source code is governed by a |
| 174 // BSD-style license that can be found in the LICENSE file. | 174 // BSD-style license that can be found in the LICENSE file. |
| 175 | 175 |
| 176 | 176 |
| 177 @DocsEditable | 177 @DocsEditable |
| 178 @DomName('AudioContext') | 178 @DomName('AudioContext') |
| 179 class AudioContext extends EventTarget native "*AudioContext" { | 179 class AudioContext extends EventTarget native "*AudioContext" { |
| 180 | 180 |
| 181 @DocsEditable |
| 182 @DomName('AudioContext.complete') |
| 181 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); | 183 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); |
| 182 | 184 |
| 183 @DocsEditable | 185 @DocsEditable |
| 184 factory AudioContext() => AudioContext._create(); | 186 factory AudioContext() => AudioContext._create(); |
| 185 | 187 |
| 186 @DocsEditable | 188 @DocsEditable |
| 187 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') | 189 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') |
| 188 AudioContextEvents get on => | 190 AudioContextEvents get on => |
| 189 new AudioContextEvents(this); | 191 new AudioContextEvents(this); |
| 190 | 192 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 WaveTable createWaveTable(Float32Array real, Float32Array imag) native; | 275 WaveTable createWaveTable(Float32Array real, Float32Array imag) native; |
| 274 | 276 |
| 275 @DocsEditable | 277 @DocsEditable |
| 276 @DomName('AudioContext.decodeAudioData') | 278 @DomName('AudioContext.decodeAudioData') |
| 277 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) native; | 279 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) native; |
| 278 | 280 |
| 279 @DocsEditable | 281 @DocsEditable |
| 280 @DomName('AudioContext.startRendering') | 282 @DomName('AudioContext.startRendering') |
| 281 void startRendering() native; | 283 void startRendering() native; |
| 282 | 284 |
| 285 @DocsEditable |
| 286 @DomName('AudioContext.complete') |
| 283 Stream<Event> get onComplete => completeEvent.forTarget(this); | 287 Stream<Event> get onComplete => completeEvent.forTarget(this); |
| 284 | 288 |
| 285 static AudioContext _create() => JS('AudioContext', | 289 static AudioContext _create() => JS('AudioContext', |
| 286 'new (window.AudioContext || window.webkitAudioContext)()'); | 290 'new (window.AudioContext || window.webkitAudioContext)()'); |
| 287 | 291 |
| 288 GainNode createGain() { | 292 GainNode createGain() { |
| 289 if (JS('bool', '#.createGain !== undefined', this)) { | 293 if (JS('bool', '#.createGain !== undefined', this)) { |
| 290 return JS('GainNode', '#.createGain()', this); | 294 return JS('GainNode', '#.createGain()', this); |
| 291 } else { | 295 } else { |
| 292 return JS('GainNode', '#.createGainNode()', this); | 296 return JS('GainNode', '#.createGainNode()', this); |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 865 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 862 // for details. All rights reserved. Use of this source code is governed by a | 866 // for details. All rights reserved. Use of this source code is governed by a |
| 863 // BSD-style license that can be found in the LICENSE file. | 867 // BSD-style license that can be found in the LICENSE file. |
| 864 | 868 |
| 865 | 869 |
| 866 | 870 |
| 867 @DocsEditable | 871 @DocsEditable |
| 868 @DomName('WaveTable') | 872 @DomName('WaveTable') |
| 869 class WaveTable native "*WaveTable" { | 873 class WaveTable native "*WaveTable" { |
| 870 } | 874 } |
| OLD | NEW |