| 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:nativewrappers'; | 8 import 'dart:nativewrappers'; |
| 9 import 'dart:typed_data'; | 9 import 'dart:typed_data'; |
| 10 // DO NOT EDIT | 10 // DO NOT EDIT |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 @DomName('AnalyserNode.smoothingTimeConstant') | 56 @DomName('AnalyserNode.smoothingTimeConstant') |
| 57 @DocsEditable | 57 @DocsEditable |
| 58 num get smoothingTimeConstant native "AnalyserNode_smoothingTimeConstant_Gette
r"; | 58 num get smoothingTimeConstant native "AnalyserNode_smoothingTimeConstant_Gette
r"; |
| 59 | 59 |
| 60 @DomName('AnalyserNode.smoothingTimeConstant') | 60 @DomName('AnalyserNode.smoothingTimeConstant') |
| 61 @DocsEditable | 61 @DocsEditable |
| 62 void set smoothingTimeConstant(num value) native "AnalyserNode_smoothingTimeCo
nstant_Setter"; | 62 void set smoothingTimeConstant(num value) native "AnalyserNode_smoothingTimeCo
nstant_Setter"; |
| 63 | 63 |
| 64 @DomName('AnalyserNode.getByteFrequencyData') | 64 @DomName('AnalyserNode.getByteFrequencyData') |
| 65 @DocsEditable | 65 @DocsEditable |
| 66 void getByteFrequencyData(List<int> array) native "AnalyserNode_getByteFrequen
cyData_Callback"; | 66 void getByteFrequencyData(Uint8List array) native "AnalyserNode_getByteFrequen
cyData_Callback"; |
| 67 | 67 |
| 68 @DomName('AnalyserNode.getByteTimeDomainData') | 68 @DomName('AnalyserNode.getByteTimeDomainData') |
| 69 @DocsEditable | 69 @DocsEditable |
| 70 void getByteTimeDomainData(List<int> array) native "AnalyserNode_getByteTimeDo
mainData_Callback"; | 70 void getByteTimeDomainData(Uint8List array) native "AnalyserNode_getByteTimeDo
mainData_Callback"; |
| 71 | 71 |
| 72 @DomName('AnalyserNode.getFloatFrequencyData') | 72 @DomName('AnalyserNode.getFloatFrequencyData') |
| 73 @DocsEditable | 73 @DocsEditable |
| 74 void getFloatFrequencyData(List<double> array) native "AnalyserNode_getFloatFr
equencyData_Callback"; | 74 void getFloatFrequencyData(Float32List array) native "AnalyserNode_getFloatFre
quencyData_Callback"; |
| 75 | 75 |
| 76 } | 76 } |
| 77 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 77 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 78 // for details. All rights reserved. Use of this source code is governed by a | 78 // for details. All rights reserved. Use of this source code is governed by a |
| 79 // BSD-style license that can be found in the LICENSE file. | 79 // BSD-style license that can be found in the LICENSE file. |
| 80 | 80 |
| 81 // WARNING: Do not edit - generated code. | 81 // WARNING: Do not edit - generated code. |
| 82 | 82 |
| 83 | 83 |
| 84 @DocsEditable | 84 @DocsEditable |
| (...skipping 20 matching lines...) Expand all Loading... |
| 105 @DomName('AudioBuffer.numberOfChannels') | 105 @DomName('AudioBuffer.numberOfChannels') |
| 106 @DocsEditable | 106 @DocsEditable |
| 107 int get numberOfChannels native "AudioBuffer_numberOfChannels_Getter"; | 107 int get numberOfChannels native "AudioBuffer_numberOfChannels_Getter"; |
| 108 | 108 |
| 109 @DomName('AudioBuffer.sampleRate') | 109 @DomName('AudioBuffer.sampleRate') |
| 110 @DocsEditable | 110 @DocsEditable |
| 111 num get sampleRate native "AudioBuffer_sampleRate_Getter"; | 111 num get sampleRate native "AudioBuffer_sampleRate_Getter"; |
| 112 | 112 |
| 113 @DomName('AudioBuffer.getChannelData') | 113 @DomName('AudioBuffer.getChannelData') |
| 114 @DocsEditable | 114 @DocsEditable |
| 115 List<double> getChannelData(int channelIndex) native "AudioBuffer_getChannelDa
ta_Callback"; | 115 Float32List getChannelData(int channelIndex) native "AudioBuffer_getChannelDat
a_Callback"; |
| 116 | 116 |
| 117 } | 117 } |
| 118 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 118 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 119 // for details. All rights reserved. Use of this source code is governed by a | 119 // for details. All rights reserved. Use of this source code is governed by a |
| 120 // BSD-style license that can be found in the LICENSE file. | 120 // BSD-style license that can be found in the LICENSE file. |
| 121 | 121 |
| 122 // WARNING: Do not edit - generated code. | 122 // WARNING: Do not edit - generated code. |
| 123 | 123 |
| 124 | 124 |
| 125 typedef void AudioBufferCallback(AudioBuffer audioBuffer); | 125 typedef void AudioBufferCallback(AudioBuffer audioBuffer); |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 ScriptProcessorNode _createScriptProcessor_2(bufferSize, numberOfInputChannels
) native "AudioContext__createScriptProcessor_2_Callback"; | 360 ScriptProcessorNode _createScriptProcessor_2(bufferSize, numberOfInputChannels
) native "AudioContext__createScriptProcessor_2_Callback"; |
| 361 | 361 |
| 362 ScriptProcessorNode _createScriptProcessor_3(bufferSize) native "AudioContext_
_createScriptProcessor_3_Callback"; | 362 ScriptProcessorNode _createScriptProcessor_3(bufferSize) native "AudioContext_
_createScriptProcessor_3_Callback"; |
| 363 | 363 |
| 364 @DomName('AudioContext.createWaveShaper') | 364 @DomName('AudioContext.createWaveShaper') |
| 365 @DocsEditable | 365 @DocsEditable |
| 366 WaveShaperNode createWaveShaper() native "AudioContext_createWaveShaper_Callba
ck"; | 366 WaveShaperNode createWaveShaper() native "AudioContext_createWaveShaper_Callba
ck"; |
| 367 | 367 |
| 368 @DomName('AudioContext.createWaveTable') | 368 @DomName('AudioContext.createWaveTable') |
| 369 @DocsEditable | 369 @DocsEditable |
| 370 WaveTable createWaveTable(List<double> real, List<double> imag) native "AudioC
ontext_createWaveTable_Callback"; | 370 WaveTable createWaveTable(Float32List real, Float32List imag) native "AudioCon
text_createWaveTable_Callback"; |
| 371 | 371 |
| 372 @DomName('AudioContext.decodeAudioData') | 372 @DomName('AudioContext.decodeAudioData') |
| 373 @DocsEditable | 373 @DocsEditable |
| 374 void decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallback
, [AudioBufferCallback errorCallback]) native "AudioContext_decodeAudioData_Call
back"; | 374 void decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallback
, [AudioBufferCallback errorCallback]) native "AudioContext_decodeAudioData_Call
back"; |
| 375 | 375 |
| 376 @DomName('AudioContext.startRendering') | 376 @DomName('AudioContext.startRendering') |
| 377 @DocsEditable | 377 @DocsEditable |
| 378 void startRendering() native "AudioContext_startRendering_Callback"; | 378 void startRendering() native "AudioContext_startRendering_Callback"; |
| 379 | 379 |
| 380 @DomName('AudioContext.oncomplete') | 380 @DomName('AudioContext.oncomplete') |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 @DomName('AudioParam.setTargetAtTime') | 564 @DomName('AudioParam.setTargetAtTime') |
| 565 @DocsEditable | 565 @DocsEditable |
| 566 void setTargetAtTime(num target, num time, num timeConstant) native "AudioPara
m_setTargetAtTime_Callback"; | 566 void setTargetAtTime(num target, num time, num timeConstant) native "AudioPara
m_setTargetAtTime_Callback"; |
| 567 | 567 |
| 568 @DomName('AudioParam.setValueAtTime') | 568 @DomName('AudioParam.setValueAtTime') |
| 569 @DocsEditable | 569 @DocsEditable |
| 570 void setValueAtTime(num value, num time) native "AudioParam_setValueAtTime_Cal
lback"; | 570 void setValueAtTime(num value, num time) native "AudioParam_setValueAtTime_Cal
lback"; |
| 571 | 571 |
| 572 @DomName('AudioParam.setValueCurveAtTime') | 572 @DomName('AudioParam.setValueCurveAtTime') |
| 573 @DocsEditable | 573 @DocsEditable |
| 574 void setValueCurveAtTime(List<double> values, num time, num duration) native "
AudioParam_setValueCurveAtTime_Callback"; | 574 void setValueCurveAtTime(Float32List values, num time, num duration) native "A
udioParam_setValueCurveAtTime_Callback"; |
| 575 | 575 |
| 576 } | 576 } |
| 577 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 577 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 578 // for details. All rights reserved. Use of this source code is governed by a | 578 // for details. All rights reserved. Use of this source code is governed by a |
| 579 // BSD-style license that can be found in the LICENSE file. | 579 // BSD-style license that can be found in the LICENSE file. |
| 580 | 580 |
| 581 // WARNING: Do not edit - generated code. | 581 // WARNING: Do not edit - generated code. |
| 582 | 582 |
| 583 | 583 |
| 584 @DocsEditable | 584 @DocsEditable |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 @DomName('BiquadFilterNode.type') | 655 @DomName('BiquadFilterNode.type') |
| 656 @DocsEditable | 656 @DocsEditable |
| 657 String get type native "BiquadFilterNode_type_Getter"; | 657 String get type native "BiquadFilterNode_type_Getter"; |
| 658 | 658 |
| 659 @DomName('BiquadFilterNode.type') | 659 @DomName('BiquadFilterNode.type') |
| 660 @DocsEditable | 660 @DocsEditable |
| 661 void set type(String value) native "BiquadFilterNode_type_Setter"; | 661 void set type(String value) native "BiquadFilterNode_type_Setter"; |
| 662 | 662 |
| 663 @DomName('BiquadFilterNode.getFrequencyResponse') | 663 @DomName('BiquadFilterNode.getFrequencyResponse') |
| 664 @DocsEditable | 664 @DocsEditable |
| 665 void getFrequencyResponse(List<double> frequencyHz, List<double> magResponse,
List<double> phaseResponse) native "BiquadFilterNode_getFrequencyResponse_Callba
ck"; | 665 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl
oat32List phaseResponse) native "BiquadFilterNode_getFrequencyResponse_Callback"
; |
| 666 | 666 |
| 667 } | 667 } |
| 668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 668 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 669 // for details. All rights reserved. Use of this source code is governed by a | 669 // for details. All rights reserved. Use of this source code is governed by a |
| 670 // BSD-style license that can be found in the LICENSE file. | 670 // BSD-style license that can be found in the LICENSE file. |
| 671 | 671 |
| 672 // WARNING: Do not edit - generated code. | 672 // WARNING: Do not edit - generated code. |
| 673 | 673 |
| 674 | 674 |
| 675 @DocsEditable | 675 @DocsEditable |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1098 // WARNING: Do not edit - generated code. | 1098 // WARNING: Do not edit - generated code. |
| 1099 | 1099 |
| 1100 | 1100 |
| 1101 @DocsEditable | 1101 @DocsEditable |
| 1102 @DomName('WaveShaperNode') | 1102 @DomName('WaveShaperNode') |
| 1103 class WaveShaperNode extends AudioNode { | 1103 class WaveShaperNode extends AudioNode { |
| 1104 WaveShaperNode.internal() : super.internal(); | 1104 WaveShaperNode.internal() : super.internal(); |
| 1105 | 1105 |
| 1106 @DomName('WaveShaperNode.curve') | 1106 @DomName('WaveShaperNode.curve') |
| 1107 @DocsEditable | 1107 @DocsEditable |
| 1108 List<double> get curve native "WaveShaperNode_curve_Getter"; | 1108 Float32List get curve native "WaveShaperNode_curve_Getter"; |
| 1109 | 1109 |
| 1110 @DomName('WaveShaperNode.curve') | 1110 @DomName('WaveShaperNode.curve') |
| 1111 @DocsEditable | 1111 @DocsEditable |
| 1112 void set curve(List<double> value) native "WaveShaperNode_curve_Setter"; | 1112 void set curve(Float32List value) native "WaveShaperNode_curve_Setter"; |
| 1113 | 1113 |
| 1114 } | 1114 } |
| 1115 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1115 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1116 // for details. All rights reserved. Use of this source code is governed by a | 1116 // for details. All rights reserved. Use of this source code is governed by a |
| 1117 // BSD-style license that can be found in the LICENSE file. | 1117 // BSD-style license that can be found in the LICENSE file. |
| 1118 | 1118 |
| 1119 // WARNING: Do not edit - generated code. | 1119 // WARNING: Do not edit - generated code. |
| 1120 | 1120 |
| 1121 | 1121 |
| 1122 @DocsEditable | 1122 @DocsEditable |
| 1123 @DomName('WaveTable') | 1123 @DomName('WaveTable') |
| 1124 class WaveTable extends NativeFieldWrapperClass1 { | 1124 class WaveTable extends NativeFieldWrapperClass1 { |
| 1125 WaveTable.internal(); | 1125 WaveTable.internal(); |
| 1126 | 1126 |
| 1127 } | 1127 } |
| OLD | NEW |