| 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:_internal' hide deprecated; | 5 import 'dart:_internal' hide deprecated; |
| 6 import 'dart:html'; | 6 import 'dart:html'; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:nativewrappers'; | 8 import 'dart:nativewrappers'; |
| 9 import 'dart:typed_data'; | 9 import 'dart:typed_data'; |
| 10 import 'dart:_blink' as _blink; | 10 import 'dart:_blink' as _blink; |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 WaveShaperNode createWaveShaper() => _blink.Native_AudioContext_createWaveShap
er_Callback(this); | 400 WaveShaperNode createWaveShaper() => _blink.Native_AudioContext_createWaveShap
er_Callback(this); |
| 401 | 401 |
| 402 @DomName('AudioContext.decodeAudioData') | 402 @DomName('AudioContext.decodeAudioData') |
| 403 @DocsEditable() | 403 @DocsEditable() |
| 404 void _decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) => _blink.Native_AudioContext_decodeAudi
oData_Callback(this, audioData, successCallback, errorCallback); | 404 void _decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) => _blink.Native_AudioContext_decodeAudi
oData_Callback(this, audioData, successCallback, errorCallback); |
| 405 | 405 |
| 406 @DomName('AudioContext.startRendering') | 406 @DomName('AudioContext.startRendering') |
| 407 @DocsEditable() | 407 @DocsEditable() |
| 408 void startRendering() => _blink.Native_AudioContext_startRendering_Callback(th
is); | 408 void startRendering() => _blink.Native_AudioContext_startRendering_Callback(th
is); |
| 409 | 409 |
| 410 @DomName('AudioContext.addEventListener') | |
| 411 @DocsEditable() | |
| 412 @Experimental() // untriaged | |
| 413 void addEventListener(String type, EventListener listener, [bool useCapture])
=> _blink.Native_AudioContext_addEventListener_Callback(this, type, listener, us
eCapture); | |
| 414 | |
| 415 @DomName('AudioContext.dispatchEvent') | |
| 416 @DocsEditable() | |
| 417 @Experimental() // untriaged | |
| 418 bool dispatchEvent(Event event) => _blink.Native_AudioContext_dispatchEvent_Ca
llback(this, event); | |
| 419 | |
| 420 @DomName('AudioContext.removeEventListener') | |
| 421 @DocsEditable() | |
| 422 @Experimental() // untriaged | |
| 423 void removeEventListener(String type, EventListener listener, [bool useCapture
]) => _blink.Native_AudioContext_removeEventListener_Callback(this, type, listen
er, useCapture); | |
| 424 | |
| 425 /// Stream of `complete` events handled by this [AudioContext]. | 410 /// Stream of `complete` events handled by this [AudioContext]. |
| 426 @DomName('AudioContext.oncomplete') | 411 @DomName('AudioContext.oncomplete') |
| 427 @DocsEditable() | 412 @DocsEditable() |
| 428 Stream<Event> get onComplete => completeEvent.forTarget(this); | 413 Stream<Event> get onComplete => completeEvent.forTarget(this); |
| 429 | 414 |
| 430 @DomName('AudioContext.decodeAudioData') | 415 @DomName('AudioContext.decodeAudioData') |
| 431 Future<AudioBuffer> decodeAudioData(ByteBuffer audioData) { | 416 Future<AudioBuffer> decodeAudioData(ByteBuffer audioData) { |
| 432 var completer = new Completer<AudioBuffer>(); | 417 var completer = new Completer<AudioBuffer>(); |
| 433 _decodeAudioData(audioData, | 418 _decodeAudioData(audioData, |
| 434 (value) { completer.complete(value); }, | 419 (value) { completer.complete(value); }, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 @DomName('AudioNode.numberOfOutputs') | 538 @DomName('AudioNode.numberOfOutputs') |
| 554 @DocsEditable() | 539 @DocsEditable() |
| 555 int get numberOfOutputs => _blink.Native_AudioNode_numberOfOutputs_Getter(this
); | 540 int get numberOfOutputs => _blink.Native_AudioNode_numberOfOutputs_Getter(this
); |
| 556 | 541 |
| 557 void _connect(destination, int output, [int input]) => _blink.Native_AudioNode
__connect(this, destination, output, input); | 542 void _connect(destination, int output, [int input]) => _blink.Native_AudioNode
__connect(this, destination, output, input); |
| 558 | 543 |
| 559 @DomName('AudioNode.disconnect') | 544 @DomName('AudioNode.disconnect') |
| 560 @DocsEditable() | 545 @DocsEditable() |
| 561 void disconnect(int output) => _blink.Native_AudioNode_disconnect_Callback(thi
s, output); | 546 void disconnect(int output) => _blink.Native_AudioNode_disconnect_Callback(thi
s, output); |
| 562 | 547 |
| 563 @DomName('AudioNode.addEventListener') | |
| 564 @DocsEditable() | |
| 565 void addEventListener(String type, EventListener listener, [bool useCapture])
=> _blink.Native_AudioNode_addEventListener_Callback(this, type, listener, useCa
pture); | |
| 566 | |
| 567 @DomName('AudioNode.dispatchEvent') | |
| 568 @DocsEditable() | |
| 569 bool dispatchEvent(Event event) => _blink.Native_AudioNode_dispatchEvent_Callb
ack(this, event); | |
| 570 | |
| 571 @DomName('AudioNode.removeEventListener') | |
| 572 @DocsEditable() | |
| 573 void removeEventListener(String type, EventListener listener, [bool useCapture
]) => _blink.Native_AudioNode_removeEventListener_Callback(this, type, listener,
useCapture); | |
| 574 | |
| 575 @DomName('AudioNode.connect') | 548 @DomName('AudioNode.connect') |
| 576 void connectNode(AudioNode destination, [int output = 0, int input = 0]) => | 549 void connectNode(AudioNode destination, [int output = 0, int input = 0]) => |
| 577 _connect(destination, output, input); | 550 _connect(destination, output, input); |
| 578 | 551 |
| 579 @DomName('AudioNode.connect') | 552 @DomName('AudioNode.connect') |
| 580 void connectParam(AudioParam destination, [int output = 0]) => | 553 void connectParam(AudioParam destination, [int output = 0]) => |
| 581 _connect(destination, output); | 554 _connect(destination, output); |
| 582 } | 555 } |
| 583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 556 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 584 // for details. All rights reserved. Use of this source code is governed by a | 557 // for details. All rights reserved. Use of this source code is governed by a |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1280 | 1253 |
| 1281 @DomName('WaveShaperNode.oversample') | 1254 @DomName('WaveShaperNode.oversample') |
| 1282 @DocsEditable() | 1255 @DocsEditable() |
| 1283 String get oversample => _blink.Native_WaveShaperNode_oversample_Getter(this); | 1256 String get oversample => _blink.Native_WaveShaperNode_oversample_Getter(this); |
| 1284 | 1257 |
| 1285 @DomName('WaveShaperNode.oversample') | 1258 @DomName('WaveShaperNode.oversample') |
| 1286 @DocsEditable() | 1259 @DocsEditable() |
| 1287 void set oversample(String value) => _blink.Native_WaveShaperNode_oversample_S
etter(this, value); | 1260 void set oversample(String value) => _blink.Native_WaveShaperNode_oversample_S
etter(this, value); |
| 1288 | 1261 |
| 1289 } | 1262 } |
| OLD | NEW |