OLD | NEW |
1 library web_audio; | 1 library web_audio; |
2 | 2 |
| 3 import 'dart:async'; |
3 import 'dart:html'; | 4 import 'dart:html'; |
4 import 'dart:nativewrappers'; | 5 import 'dart:nativewrappers'; |
5 // DO NOT EDIT | 6 // DO NOT EDIT |
6 // Auto-generated dart:audio library. | 7 // Auto-generated dart:audio library. |
7 | 8 |
8 | 9 |
9 | 10 |
10 | 11 |
11 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
12 // for details. All rights reserved. Use of this source code is governed by a | 13 // for details. All rights reserved. Use of this source code is governed by a |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 } | 215 } |
215 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 216 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
216 // for details. All rights reserved. Use of this source code is governed by a | 217 // for details. All rights reserved. Use of this source code is governed by a |
217 // BSD-style license that can be found in the LICENSE file. | 218 // BSD-style license that can be found in the LICENSE file. |
218 | 219 |
219 | 220 |
220 /// @domName AudioContext | 221 /// @domName AudioContext |
221 class AudioContext extends EventTarget { | 222 class AudioContext extends EventTarget { |
222 AudioContext.internal() : super.internal(); | 223 AudioContext.internal() : super.internal(); |
223 | 224 |
| 225 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); |
| 226 |
224 ///@docsEditable true | 227 ///@docsEditable true |
225 factory AudioContext() => AudioContext._create(); | 228 factory AudioContext() => AudioContext._create(); |
226 static AudioContext _create() native "AudioContext_constructor_Callback"; | 229 static AudioContext _create() native "AudioContext_constructor_Callback"; |
227 | 230 |
228 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 231 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true |
229 AudioContextEvents get on => | 232 AudioContextEvents get on => |
230 new AudioContextEvents(this); | 233 new AudioContextEvents(this); |
231 | 234 |
232 | 235 |
233 /** @domName AudioContext.activeSourceCount */ | 236 /** @domName AudioContext.activeSourceCount */ |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 WaveTable createWaveTable(Float32Array real, Float32Array imag) native "AudioC
ontext_createWaveTable_Callback"; | 390 WaveTable createWaveTable(Float32Array real, Float32Array imag) native "AudioC
ontext_createWaveTable_Callback"; |
388 | 391 |
389 | 392 |
390 /** @domName AudioContext.decodeAudioData */ | 393 /** @domName AudioContext.decodeAudioData */ |
391 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) native "AudioContext_decodeAudioData_Cal
lback"; | 394 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) native "AudioContext_decodeAudioData_Cal
lback"; |
392 | 395 |
393 | 396 |
394 /** @domName AudioContext.startRendering */ | 397 /** @domName AudioContext.startRendering */ |
395 void startRendering() native "AudioContext_startRendering_Callback"; | 398 void startRendering() native "AudioContext_startRendering_Callback"; |
396 | 399 |
| 400 Stream<Event> get onComplete => completeEvent.forTarget(this); |
| 401 |
397 } | 402 } |
398 | 403 |
399 /// @docsEditable true | 404 /// @docsEditable true |
400 class AudioContextEvents extends Events { | 405 class AudioContextEvents extends Events { |
401 /// @docsEditable true | 406 /// @docsEditable true |
402 AudioContextEvents(EventTarget _ptr) : super(_ptr); | 407 AudioContextEvents(EventTarget _ptr) : super(_ptr); |
403 | 408 |
404 /// @docsEditable true | 409 /// @docsEditable true |
405 EventListenerList get complete => this['complete']; | 410 EventListenerList get complete => this['complete']; |
406 } | 411 } |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1075 // BSD-style license that can be found in the LICENSE file. | 1080 // BSD-style license that can be found in the LICENSE file. |
1076 | 1081 |
1077 // WARNING: Do not edit - generated code. | 1082 // WARNING: Do not edit - generated code. |
1078 | 1083 |
1079 | 1084 |
1080 /// @domName WaveTable | 1085 /// @domName WaveTable |
1081 class WaveTable extends NativeFieldWrapperClass1 { | 1086 class WaveTable extends NativeFieldWrapperClass1 { |
1082 WaveTable.internal(); | 1087 WaveTable.internal(); |
1083 | 1088 |
1084 } | 1089 } |
OLD | NEW |