Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(389)

Side by Side Diff: sdk/lib/audio/dartium/audio_dartium.dart

Issue 11280103: Splitting out the Audio library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Syncing. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 library audio;
2
3 import 'dart:html';
4 import 'dart:nativewrappers';
5 // DO NOT EDIT
6 // Auto-generated dart:audio library.
7
8
9
10
11 // 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 // BSD-style license that can be found in the LICENSE file.
14
15 // WARNING: Do not edit - generated code.
16
17
18 /// @domName AnalyserNode
19 class AnalyserNode extends AudioNode {
20 AnalyserNode.internal(): super.internal();
21
22
23 /** @domName AnalyserNode.fftSize */
24 int get fftSize native "AnalyserNode_fftSize_Getter";
25
26
27 /** @domName AnalyserNode.fftSize */
28 void set fftSize(int value) native "AnalyserNode_fftSize_Setter";
29
30
31 /** @domName AnalyserNode.frequencyBinCount */
32 int get frequencyBinCount native "AnalyserNode_frequencyBinCount_Getter";
33
34
35 /** @domName AnalyserNode.maxDecibels */
36 num get maxDecibels native "AnalyserNode_maxDecibels_Getter";
37
38
39 /** @domName AnalyserNode.maxDecibels */
40 void set maxDecibels(num value) native "AnalyserNode_maxDecibels_Setter";
41
42
43 /** @domName AnalyserNode.minDecibels */
44 num get minDecibels native "AnalyserNode_minDecibels_Getter";
45
46
47 /** @domName AnalyserNode.minDecibels */
48 void set minDecibels(num value) native "AnalyserNode_minDecibels_Setter";
49
50
51 /** @domName AnalyserNode.smoothingTimeConstant */
52 num get smoothingTimeConstant native "AnalyserNode_smoothingTimeConstant_Gette r";
53
54
55 /** @domName AnalyserNode.smoothingTimeConstant */
56 void set smoothingTimeConstant(num value) native "AnalyserNode_smoothingTimeCo nstant_Setter";
57
58
59 /** @domName AnalyserNode.getByteFrequencyData */
60 void getByteFrequencyData(Uint8Array array) native "AnalyserNode_getByteFreque ncyData_Callback";
61
62
63 /** @domName AnalyserNode.getByteTimeDomainData */
64 void getByteTimeDomainData(Uint8Array array) native "AnalyserNode_getByteTimeD omainData_Callback";
65
66
67 /** @domName AnalyserNode.getFloatFrequencyData */
68 void getFloatFrequencyData(Float32Array array) native "AnalyserNode_getFloatFr equencyData_Callback";
69
70 }
71 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
72 // for details. All rights reserved. Use of this source code is governed by a
73 // BSD-style license that can be found in the LICENSE file.
74
75 // WARNING: Do not edit - generated code.
76
77
78 /// @domName AudioBuffer
79 class AudioBuffer extends NativeFieldWrapperClass1 {
80 AudioBuffer.internal();
81
82
83 /** @domName AudioBuffer.duration */
84 num get duration native "AudioBuffer_duration_Getter";
85
86
87 /** @domName AudioBuffer.gain */
88 num get gain native "AudioBuffer_gain_Getter";
89
90
91 /** @domName AudioBuffer.gain */
92 void set gain(num value) native "AudioBuffer_gain_Setter";
93
94
95 /** @domName AudioBuffer.length */
96 int get length native "AudioBuffer_length_Getter";
97
98
99 /** @domName AudioBuffer.numberOfChannels */
100 int get numberOfChannels native "AudioBuffer_numberOfChannels_Getter";
101
102
103 /** @domName AudioBuffer.sampleRate */
104 num get sampleRate native "AudioBuffer_sampleRate_Getter";
105
106
107 /** @domName AudioBuffer.getChannelData */
108 Float32Array getChannelData(int channelIndex) native "AudioBuffer_getChannelDa ta_Callback";
109
110 }
111 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
112 // for details. All rights reserved. Use of this source code is governed by a
113 // BSD-style license that can be found in the LICENSE file.
114
115 // WARNING: Do not edit - generated code.
116
117
118 typedef void AudioBufferCallback(AudioBuffer audioBuffer);
119 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
120 // for details. All rights reserved. Use of this source code is governed by a
121 // BSD-style license that can be found in the LICENSE file.
122
123 // WARNING: Do not edit - generated code.
124
125
126 /// @domName AudioBufferSourceNode
127 class AudioBufferSourceNode extends AudioSourceNode {
128 AudioBufferSourceNode.internal(): super.internal();
129
130 static const int FINISHED_STATE = 3;
131
132 static const int PLAYING_STATE = 2;
133
134 static const int SCHEDULED_STATE = 1;
135
136 static const int UNSCHEDULED_STATE = 0;
137
138
139 /** @domName AudioBufferSourceNode.buffer */
140 AudioBuffer get buffer native "AudioBufferSourceNode_buffer_Getter";
141
142
143 /** @domName AudioBufferSourceNode.buffer */
144 void set buffer(AudioBuffer value) native "AudioBufferSourceNode_buffer_Setter ";
145
146
147 /** @domName AudioBufferSourceNode.gain */
148 AudioGain get gain native "AudioBufferSourceNode_gain_Getter";
149
150
151 /** @domName AudioBufferSourceNode.loop */
152 bool get loop native "AudioBufferSourceNode_loop_Getter";
153
154
155 /** @domName AudioBufferSourceNode.loop */
156 void set loop(bool value) native "AudioBufferSourceNode_loop_Setter";
157
158
159 /** @domName AudioBufferSourceNode.loopEnd */
160 num get loopEnd native "AudioBufferSourceNode_loopEnd_Getter";
161
162
163 /** @domName AudioBufferSourceNode.loopEnd */
164 void set loopEnd(num value) native "AudioBufferSourceNode_loopEnd_Setter";
165
166
167 /** @domName AudioBufferSourceNode.loopStart */
168 num get loopStart native "AudioBufferSourceNode_loopStart_Getter";
169
170
171 /** @domName AudioBufferSourceNode.loopStart */
172 void set loopStart(num value) native "AudioBufferSourceNode_loopStart_Setter";
173
174
175 /** @domName AudioBufferSourceNode.playbackRate */
176 AudioParam get playbackRate native "AudioBufferSourceNode_playbackRate_Getter" ;
177
178
179 /** @domName AudioBufferSourceNode.playbackState */
180 int get playbackState native "AudioBufferSourceNode_playbackState_Getter";
181
182 void start(/*double*/ when, [/*double*/ grainOffset, /*double*/ grainDuration] ) {
183 if ((when is num || when == null) && !?grainOffset && !?grainDuration) {
184 _start_1(when);
185 return;
186 }
187 if ((when is num || when == null) && (grainOffset is num || grainOffset == n ull) && (grainDuration is num || grainDuration == null)) {
188 _start_2(when, grainOffset, grainDuration);
189 return;
190 }
191 throw "Incorrect number or type of arguments";
192 }
193
194
195 /** @domName AudioBufferSourceNode.start_1 */
196 void _start_1(when) native "AudioBufferSourceNode_start_1_Callback";
197
198
199 /** @domName AudioBufferSourceNode.start_2 */
200 void _start_2(when, grainOffset, grainDuration) native "AudioBufferSourceNode_ start_2_Callback";
201
202
203 /** @domName AudioBufferSourceNode.stop */
204 void stop(num when) native "AudioBufferSourceNode_stop_Callback";
205
206 }
207 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
208 // for details. All rights reserved. Use of this source code is governed by a
209 // BSD-style license that can be found in the LICENSE file.
210
211
212 class AudioContext extends EventTarget {
213 factory AudioContext() => _createAudioContext();
214
215 static _createAudioContext([int numberOfChannels,
216 int numberOfFrames,
217 int sampleRate])
218 native "AudioContext_constructor_Callback";
219
220 AudioContext.internal(): super.internal();
221
222 /**
223 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
224 */
225 AudioContextEvents get on =>
226 new AudioContextEvents(this);
227
228
229 /** @domName AudioContext.activeSourceCount */
230 int get activeSourceCount native "AudioContext_activeSourceCount_Getter";
231
232
233 /** @domName AudioContext.currentTime */
234 num get currentTime native "AudioContext_currentTime_Getter";
235
236
237 /** @domName AudioContext.destination */
238 AudioDestinationNode get destination native "AudioContext_destination_Getter";
239
240
241 /** @domName AudioContext.listener */
242 AudioListener get listener native "AudioContext_listener_Getter";
243
244
245 /** @domName AudioContext.sampleRate */
246 num get sampleRate native "AudioContext_sampleRate_Getter";
247
248
249 /** @domName AudioContext.createAnalyser */
250 AnalyserNode createAnalyser() native "AudioContext_createAnalyser_Callback";
251
252
253 /** @domName AudioContext.createBiquadFilter */
254 BiquadFilterNode createBiquadFilter() native "AudioContext_createBiquadFilter_ Callback";
255
256 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram es, [/*float*/ sampleRate]) {
257 if ((buffer_OR_numberOfChannels is int || buffer_OR_numberOfChannels == null ) && (mixToMono_OR_numberOfFrames is int || mixToMono_OR_numberOfFrames == null) && (sampleRate is num || sampleRate == null)) {
258 return _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr ames, sampleRate);
259 }
260 if ((buffer_OR_numberOfChannels is ArrayBuffer || buffer_OR_numberOfChannels == null) && (mixToMono_OR_numberOfFrames is bool || mixToMono_OR_numberOfFrames == null) && !?sampleRate) {
261 return _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr ames);
262 }
263 throw "Incorrect number or type of arguments";
264 }
265
266
267 /** @domName AudioContext.createBuffer_1 */
268 AudioBuffer _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF rames, sampleRate) native "AudioContext_createBuffer_1_Callback";
269
270
271 /** @domName AudioContext.createBuffer_2 */
272 AudioBuffer _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF rames) native "AudioContext_createBuffer_2_Callback";
273
274
275 /** @domName AudioContext.createBufferSource */
276 AudioBufferSourceNode createBufferSource() native "AudioContext_createBufferSo urce_Callback";
277
278 ChannelMergerNode createChannelMerger([/*unsigned long*/ numberOfInputs]) {
279 if (?numberOfInputs) {
280 return _createChannelMerger_1(numberOfInputs);
281 }
282 return _createChannelMerger_2();
283 }
284
285
286 /** @domName AudioContext.createChannelMerger_1 */
287 ChannelMergerNode _createChannelMerger_1(numberOfInputs) native "AudioContext_ createChannelMerger_1_Callback";
288
289
290 /** @domName AudioContext.createChannelMerger_2 */
291 ChannelMergerNode _createChannelMerger_2() native "AudioContext_createChannelM erger_2_Callback";
292
293 ChannelSplitterNode createChannelSplitter([/*unsigned long*/ numberOfOutputs]) {
294 if (?numberOfOutputs) {
295 return _createChannelSplitter_1(numberOfOutputs);
296 }
297 return _createChannelSplitter_2();
298 }
299
300
301 /** @domName AudioContext.createChannelSplitter_1 */
302 ChannelSplitterNode _createChannelSplitter_1(numberOfOutputs) native "AudioCon text_createChannelSplitter_1_Callback";
303
304
305 /** @domName AudioContext.createChannelSplitter_2 */
306 ChannelSplitterNode _createChannelSplitter_2() native "AudioContext_createChan nelSplitter_2_Callback";
307
308
309 /** @domName AudioContext.createConvolver */
310 ConvolverNode createConvolver() native "AudioContext_createConvolver_Callback" ;
311
312 DelayNode createDelay([/*double*/ maxDelayTime]) {
313 if (?maxDelayTime) {
314 return _createDelay_1(maxDelayTime);
315 }
316 return _createDelay_2();
317 }
318
319
320 /** @domName AudioContext.createDelay_1 */
321 DelayNode _createDelay_1(maxDelayTime) native "AudioContext_createDelay_1_Call back";
322
323
324 /** @domName AudioContext.createDelay_2 */
325 DelayNode _createDelay_2() native "AudioContext_createDelay_2_Callback";
326
327
328 /** @domName AudioContext.createDynamicsCompressor */
329 DynamicsCompressorNode createDynamicsCompressor() native "AudioContext_createD ynamicsCompressor_Callback";
330
331
332 /** @domName AudioContext.createGain */
333 GainNode createGain() native "AudioContext_createGain_Callback";
334
335
336 /** @domName AudioContext.createMediaElementSource */
337 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement ) native "AudioContext_createMediaElementSource_Callback";
338
339
340 /** @domName AudioContext.createMediaStreamSource */
341 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na tive "AudioContext_createMediaStreamSource_Callback";
342
343
344 /** @domName AudioContext.createOscillator */
345 OscillatorNode createOscillator() native "AudioContext_createOscillator_Callba ck";
346
347
348 /** @domName AudioContext.createPanner */
349 PannerNode createPanner() native "AudioContext_createPanner_Callback";
350
351 ScriptProcessorNode createScriptProcessor(/*unsigned long*/ bufferSize, [/*uns igned long*/ numberOfInputChannels, /*unsigned long*/ numberOfOutputChannels]) {
352 if (?numberOfOutputChannels) {
353 return _createScriptProcessor_1(bufferSize, numberOfInputChannels, numberO fOutputChannels);
354 }
355 if (?numberOfInputChannels) {
356 return _createScriptProcessor_2(bufferSize, numberOfInputChannels);
357 }
358 return _createScriptProcessor_3(bufferSize);
359 }
360
361
362 /** @domName AudioContext.createScriptProcessor_1 */
363 ScriptProcessorNode _createScriptProcessor_1(bufferSize, numberOfInputChannels , numberOfOutputChannels) native "AudioContext_createScriptProcessor_1_Callback" ;
364
365
366 /** @domName AudioContext.createScriptProcessor_2 */
367 ScriptProcessorNode _createScriptProcessor_2(bufferSize, numberOfInputChannels ) native "AudioContext_createScriptProcessor_2_Callback";
368
369
370 /** @domName AudioContext.createScriptProcessor_3 */
371 ScriptProcessorNode _createScriptProcessor_3(bufferSize) native "AudioContext_ createScriptProcessor_3_Callback";
372
373
374 /** @domName AudioContext.createWaveShaper */
375 WaveShaperNode createWaveShaper() native "AudioContext_createWaveShaper_Callba ck";
376
377
378 /** @domName AudioContext.createWaveTable */
379 WaveTable createWaveTable(Float32Array real, Float32Array imag) native "AudioC ontext_createWaveTable_Callback";
380
381
382 /** @domName AudioContext.decodeAudioData */
383 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac k, [AudioBufferCallback errorCallback]) native "AudioContext_decodeAudioData_Cal lback";
384
385
386 /** @domName AudioContext.startRendering */
387 void startRendering() native "AudioContext_startRendering_Callback";
388
389 }
390
391 class AudioContextEvents extends Events {
392 AudioContextEvents(EventTarget _ptr) : super(_ptr);
393
394 EventListenerList get complete => this['complete'];
395 }
396 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
397 // for details. All rights reserved. Use of this source code is governed by a
398 // BSD-style license that can be found in the LICENSE file.
399
400 // WARNING: Do not edit - generated code.
401
402
403 /// @domName AudioDestinationNode
404 class AudioDestinationNode extends AudioNode {
405 AudioDestinationNode.internal(): super.internal();
406
407
408 /** @domName AudioDestinationNode.numberOfChannels */
409 int get numberOfChannels native "AudioDestinationNode_numberOfChannels_Getter" ;
410
411 }
412 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
413 // for details. All rights reserved. Use of this source code is governed by a
414 // BSD-style license that can be found in the LICENSE file.
415
416 // WARNING: Do not edit - generated code.
417
418
419 /// @domName HTMLAudioElement
420 class AudioElement extends MediaElement {
421
422 factory AudioElement([String src]) {
423 if (!?src) {
424 return _AudioElementFactoryProvider.createAudioElement();
425 }
426 return _AudioElementFactoryProvider.createAudioElement(src);
427 }
428 AudioElement.internal(): super.internal();
429
430 }
431 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
432 // for details. All rights reserved. Use of this source code is governed by a
433 // BSD-style license that can be found in the LICENSE file.
434
435 // WARNING: Do not edit - generated code.
436
437
438 /// @domName AudioGain
439 class AudioGain extends AudioParam {
440 AudioGain.internal(): super.internal();
441
442 }
443 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
444 // for details. All rights reserved. Use of this source code is governed by a
445 // BSD-style license that can be found in the LICENSE file.
446
447 // WARNING: Do not edit - generated code.
448
449
450 /// @domName AudioListener
451 class AudioListener extends NativeFieldWrapperClass1 {
452 AudioListener.internal();
453
454
455 /** @domName AudioListener.dopplerFactor */
456 num get dopplerFactor native "AudioListener_dopplerFactor_Getter";
457
458
459 /** @domName AudioListener.dopplerFactor */
460 void set dopplerFactor(num value) native "AudioListener_dopplerFactor_Setter";
461
462
463 /** @domName AudioListener.speedOfSound */
464 num get speedOfSound native "AudioListener_speedOfSound_Getter";
465
466
467 /** @domName AudioListener.speedOfSound */
468 void set speedOfSound(num value) native "AudioListener_speedOfSound_Setter";
469
470
471 /** @domName AudioListener.setOrientation */
472 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native "Au dioListener_setOrientation_Callback";
473
474
475 /** @domName AudioListener.setPosition */
476 void setPosition(num x, num y, num z) native "AudioListener_setPosition_Callba ck";
477
478
479 /** @domName AudioListener.setVelocity */
480 void setVelocity(num x, num y, num z) native "AudioListener_setVelocity_Callba ck";
481
482 }
483 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
484 // for details. All rights reserved. Use of this source code is governed by a
485 // BSD-style license that can be found in the LICENSE file.
486
487 // WARNING: Do not edit - generated code.
488
489
490 /// @domName AudioNode
491 class AudioNode extends NativeFieldWrapperClass1 {
492 AudioNode.internal();
493
494
495 /** @domName AudioNode.context */
496 AudioContext get context native "AudioNode_context_Getter";
497
498
499 /** @domName AudioNode.numberOfInputs */
500 int get numberOfInputs native "AudioNode_numberOfInputs_Getter";
501
502
503 /** @domName AudioNode.numberOfOutputs */
504 int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter";
505
506 void connect(destination, /*unsigned long*/ output, [/*unsigned long*/ input]) {
507 if ((destination is AudioNode || destination == null) && (output is int || o utput == null) && (input is int || input == null)) {
508 _connect_1(destination, output, input);
509 return;
510 }
511 if ((destination is AudioParam || destination == null) && (output is int || output == null) && !?input) {
512 _connect_2(destination, output);
513 return;
514 }
515 throw "Incorrect number or type of arguments";
516 }
517
518
519 /** @domName AudioNode.connect_1 */
520 void _connect_1(destination, output, input) native "AudioNode_connect_1_Callba ck";
521
522
523 /** @domName AudioNode.connect_2 */
524 void _connect_2(destination, output) native "AudioNode_connect_2_Callback";
525
526
527 /** @domName AudioNode.disconnect */
528 void disconnect(int output) native "AudioNode_disconnect_Callback";
529
530 }
531 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
532 // for details. All rights reserved. Use of this source code is governed by a
533 // BSD-style license that can be found in the LICENSE file.
534
535 // WARNING: Do not edit - generated code.
536
537
538 /// @domName AudioParam
539 class AudioParam extends NativeFieldWrapperClass1 {
540 AudioParam.internal();
541
542
543 /** @domName AudioParam.defaultValue */
544 num get defaultValue native "AudioParam_defaultValue_Getter";
545
546
547 /** @domName AudioParam.maxValue */
548 num get maxValue native "AudioParam_maxValue_Getter";
549
550
551 /** @domName AudioParam.minValue */
552 num get minValue native "AudioParam_minValue_Getter";
553
554
555 /** @domName AudioParam.name */
556 String get name native "AudioParam_name_Getter";
557
558
559 /** @domName AudioParam.units */
560 int get units native "AudioParam_units_Getter";
561
562
563 /** @domName AudioParam.value */
564 num get value native "AudioParam_value_Getter";
565
566
567 /** @domName AudioParam.value */
568 void set value(num value) native "AudioParam_value_Setter";
569
570
571 /** @domName AudioParam.cancelScheduledValues */
572 void cancelScheduledValues(num startTime) native "AudioParam_cancelScheduledVa lues_Callback";
573
574
575 /** @domName AudioParam.exponentialRampToValueAtTime */
576 void exponentialRampToValueAtTime(num value, num time) native "AudioParam_expo nentialRampToValueAtTime_Callback";
577
578
579 /** @domName AudioParam.linearRampToValueAtTime */
580 void linearRampToValueAtTime(num value, num time) native "AudioParam_linearRam pToValueAtTime_Callback";
581
582
583 /** @domName AudioParam.setTargetAtTime */
584 void setTargetAtTime(num target, num time, num timeConstant) native "AudioPara m_setTargetAtTime_Callback";
585
586
587 /** @domName AudioParam.setValueAtTime */
588 void setValueAtTime(num value, num time) native "AudioParam_setValueAtTime_Cal lback";
589
590
591 /** @domName AudioParam.setValueCurveAtTime */
592 void setValueCurveAtTime(Float32Array values, num time, num duration) native " AudioParam_setValueCurveAtTime_Callback";
593
594 }
595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
596 // for details. All rights reserved. Use of this source code is governed by a
597 // BSD-style license that can be found in the LICENSE file.
598
599 // WARNING: Do not edit - generated code.
600
601
602 /// @domName AudioProcessingEvent
603 class AudioProcessingEvent extends Event {
604 AudioProcessingEvent.internal(): super.internal();
605
606
607 /** @domName AudioProcessingEvent.inputBuffer */
608 AudioBuffer get inputBuffer native "AudioProcessingEvent_inputBuffer_Getter";
609
610
611 /** @domName AudioProcessingEvent.outputBuffer */
612 AudioBuffer get outputBuffer native "AudioProcessingEvent_outputBuffer_Getter" ;
613
614 }
615 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
616 // for details. All rights reserved. Use of this source code is governed by a
617 // BSD-style license that can be found in the LICENSE file.
618
619 // WARNING: Do not edit - generated code.
620
621
622 /// @domName AudioSourceNode
623 class AudioSourceNode extends AudioNode {
624 AudioSourceNode.internal(): super.internal();
625
626 }
627 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
628 // for details. All rights reserved. Use of this source code is governed by a
629 // BSD-style license that can be found in the LICENSE file.
630
631 // WARNING: Do not edit - generated code.
632
633
634 /// @domName BiquadFilterNode
635 class BiquadFilterNode extends AudioNode {
636 BiquadFilterNode.internal(): super.internal();
637
638 static const int ALLPASS = 7;
639
640 static const int BANDPASS = 2;
641
642 static const int HIGHPASS = 1;
643
644 static const int HIGHSHELF = 4;
645
646 static const int LOWPASS = 0;
647
648 static const int LOWSHELF = 3;
649
650 static const int NOTCH = 6;
651
652 static const int PEAKING = 5;
653
654
655 /** @domName BiquadFilterNode.Q */
656 AudioParam get Q native "BiquadFilterNode_Q_Getter";
657
658
659 /** @domName BiquadFilterNode.frequency */
660 AudioParam get frequency native "BiquadFilterNode_frequency_Getter";
661
662
663 /** @domName BiquadFilterNode.gain */
664 AudioParam get gain native "BiquadFilterNode_gain_Getter";
665
666
667 /** @domName BiquadFilterNode.type */
668 int get type native "BiquadFilterNode_type_Getter";
669
670
671 /** @domName BiquadFilterNode.type */
672 void set type(int value) native "BiquadFilterNode_type_Setter";
673
674
675 /** @domName BiquadFilterNode.getFrequencyResponse */
676 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse) native "BiquadFilterNode_getFrequencyResponse_Callba ck";
677
678 }
679 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
680 // for details. All rights reserved. Use of this source code is governed by a
681 // BSD-style license that can be found in the LICENSE file.
682
683 // WARNING: Do not edit - generated code.
684
685
686 /// @domName ChannelMergerNode
687 class ChannelMergerNode extends AudioNode {
688 ChannelMergerNode.internal(): super.internal();
689
690 }
691 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
692 // for details. All rights reserved. Use of this source code is governed by a
693 // BSD-style license that can be found in the LICENSE file.
694
695 // WARNING: Do not edit - generated code.
696
697
698 /// @domName ChannelSplitterNode
699 class ChannelSplitterNode extends AudioNode {
700 ChannelSplitterNode.internal(): super.internal();
701
702 }
703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
704 // for details. All rights reserved. Use of this source code is governed by a
705 // BSD-style license that can be found in the LICENSE file.
706
707 // WARNING: Do not edit - generated code.
708
709
710 /// @domName ConvolverNode
711 class ConvolverNode extends AudioNode {
712 ConvolverNode.internal(): super.internal();
713
714
715 /** @domName ConvolverNode.buffer */
716 AudioBuffer get buffer native "ConvolverNode_buffer_Getter";
717
718
719 /** @domName ConvolverNode.buffer */
720 void set buffer(AudioBuffer value) native "ConvolverNode_buffer_Setter";
721
722
723 /** @domName ConvolverNode.normalize */
724 bool get normalize native "ConvolverNode_normalize_Getter";
725
726
727 /** @domName ConvolverNode.normalize */
728 void set normalize(bool value) native "ConvolverNode_normalize_Setter";
729
730 }
731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
732 // for details. All rights reserved. Use of this source code is governed by a
733 // BSD-style license that can be found in the LICENSE file.
734
735 // WARNING: Do not edit - generated code.
736
737
738 /// @domName DelayNode
739 class DelayNode extends AudioNode {
740 DelayNode.internal(): super.internal();
741
742
743 /** @domName DelayNode.delayTime */
744 AudioParam get delayTime native "DelayNode_delayTime_Getter";
745
746 }
747 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
748 // for details. All rights reserved. Use of this source code is governed by a
749 // BSD-style license that can be found in the LICENSE file.
750
751 // WARNING: Do not edit - generated code.
752
753
754 /// @domName DynamicsCompressorNode
755 class DynamicsCompressorNode extends AudioNode {
756 DynamicsCompressorNode.internal(): super.internal();
757
758
759 /** @domName DynamicsCompressorNode.attack */
760 AudioParam get attack native "DynamicsCompressorNode_attack_Getter";
761
762
763 /** @domName DynamicsCompressorNode.knee */
764 AudioParam get knee native "DynamicsCompressorNode_knee_Getter";
765
766
767 /** @domName DynamicsCompressorNode.ratio */
768 AudioParam get ratio native "DynamicsCompressorNode_ratio_Getter";
769
770
771 /** @domName DynamicsCompressorNode.reduction */
772 AudioParam get reduction native "DynamicsCompressorNode_reduction_Getter";
773
774
775 /** @domName DynamicsCompressorNode.release */
776 AudioParam get release native "DynamicsCompressorNode_release_Getter";
777
778
779 /** @domName DynamicsCompressorNode.threshold */
780 AudioParam get threshold native "DynamicsCompressorNode_threshold_Getter";
781
782 }
783 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
784 // for details. All rights reserved. Use of this source code is governed by a
785 // BSD-style license that can be found in the LICENSE file.
786
787 // WARNING: Do not edit - generated code.
788
789
790 /// @domName GainNode
791 class GainNode extends AudioNode {
792 GainNode.internal(): super.internal();
793
794
795 /** @domName GainNode.gain */
796 AudioGain get gain native "GainNode_gain_Getter";
797
798 }
799 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
800 // for details. All rights reserved. Use of this source code is governed by a
801 // BSD-style license that can be found in the LICENSE file.
802
803 // WARNING: Do not edit - generated code.
804
805
806 /// @domName MediaElementAudioSourceNode
807 class MediaElementAudioSourceNode extends AudioSourceNode {
808 MediaElementAudioSourceNode.internal(): super.internal();
809
810
811 /** @domName MediaElementAudioSourceNode.mediaElement */
812 MediaElement get mediaElement native "MediaElementAudioSourceNode_mediaElement _Getter";
813
814 }
815 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
816 // for details. All rights reserved. Use of this source code is governed by a
817 // BSD-style license that can be found in the LICENSE file.
818
819 // WARNING: Do not edit - generated code.
820
821
822 /// @domName MediaStreamAudioSourceNode
823 class MediaStreamAudioSourceNode extends AudioSourceNode {
824 MediaStreamAudioSourceNode.internal(): super.internal();
825
826
827 /** @domName MediaStreamAudioSourceNode.mediaStream */
828 MediaStream get mediaStream native "MediaStreamAudioSourceNode_mediaStream_Get ter";
829
830 }
831 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
832 // for details. All rights reserved. Use of this source code is governed by a
833 // BSD-style license that can be found in the LICENSE file.
834
835 // WARNING: Do not edit - generated code.
836
837
838 /// @domName OfflineAudioCompletionEvent
839 class OfflineAudioCompletionEvent extends Event {
840 OfflineAudioCompletionEvent.internal(): super.internal();
841
842
843 /** @domName OfflineAudioCompletionEvent.renderedBuffer */
844 AudioBuffer get renderedBuffer native "OfflineAudioCompletionEvent_renderedBuf fer_Getter";
845
846 }
847 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
848 // for details. All rights reserved. Use of this source code is governed by a
849 // BSD-style license that can be found in the LICENSE file.
850
851 // WARNING: Do not edit - generated code.
852
853
854 /// @domName OscillatorNode
855 class OscillatorNode extends AudioSourceNode {
856 OscillatorNode.internal(): super.internal();
857
858 static const int CUSTOM = 4;
859
860 static const int FINISHED_STATE = 3;
861
862 static const int PLAYING_STATE = 2;
863
864 static const int SAWTOOTH = 2;
865
866 static const int SCHEDULED_STATE = 1;
867
868 static const int SINE = 0;
869
870 static const int SQUARE = 1;
871
872 static const int TRIANGLE = 3;
873
874 static const int UNSCHEDULED_STATE = 0;
875
876
877 /** @domName OscillatorNode.detune */
878 AudioParam get detune native "OscillatorNode_detune_Getter";
879
880
881 /** @domName OscillatorNode.frequency */
882 AudioParam get frequency native "OscillatorNode_frequency_Getter";
883
884
885 /** @domName OscillatorNode.playbackState */
886 int get playbackState native "OscillatorNode_playbackState_Getter";
887
888
889 /** @domName OscillatorNode.type */
890 int get type native "OscillatorNode_type_Getter";
891
892
893 /** @domName OscillatorNode.type */
894 void set type(int value) native "OscillatorNode_type_Setter";
895
896
897 /** @domName OscillatorNode.setWaveTable */
898 void setWaveTable(WaveTable waveTable) native "OscillatorNode_setWaveTable_Cal lback";
899
900
901 /** @domName OscillatorNode.start */
902 void start(num when) native "OscillatorNode_start_Callback";
903
904
905 /** @domName OscillatorNode.stop */
906 void stop(num when) native "OscillatorNode_stop_Callback";
907
908 }
909 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
910 // for details. All rights reserved. Use of this source code is governed by a
911 // BSD-style license that can be found in the LICENSE file.
912
913 // WARNING: Do not edit - generated code.
914
915
916 /// @domName PannerNode
917 class PannerNode extends AudioNode {
918 PannerNode.internal(): super.internal();
919
920 static const int EQUALPOWER = 0;
921
922 static const int EXPONENTIAL_DISTANCE = 2;
923
924 static const int HRTF = 1;
925
926 static const int INVERSE_DISTANCE = 1;
927
928 static const int LINEAR_DISTANCE = 0;
929
930 static const int SOUNDFIELD = 2;
931
932
933 /** @domName PannerNode.coneGain */
934 AudioGain get coneGain native "PannerNode_coneGain_Getter";
935
936
937 /** @domName PannerNode.coneInnerAngle */
938 num get coneInnerAngle native "PannerNode_coneInnerAngle_Getter";
939
940
941 /** @domName PannerNode.coneInnerAngle */
942 void set coneInnerAngle(num value) native "PannerNode_coneInnerAngle_Setter";
943
944
945 /** @domName PannerNode.coneOuterAngle */
946 num get coneOuterAngle native "PannerNode_coneOuterAngle_Getter";
947
948
949 /** @domName PannerNode.coneOuterAngle */
950 void set coneOuterAngle(num value) native "PannerNode_coneOuterAngle_Setter";
951
952
953 /** @domName PannerNode.coneOuterGain */
954 num get coneOuterGain native "PannerNode_coneOuterGain_Getter";
955
956
957 /** @domName PannerNode.coneOuterGain */
958 void set coneOuterGain(num value) native "PannerNode_coneOuterGain_Setter";
959
960
961 /** @domName PannerNode.distanceGain */
962 AudioGain get distanceGain native "PannerNode_distanceGain_Getter";
963
964
965 /** @domName PannerNode.distanceModel */
966 int get distanceModel native "PannerNode_distanceModel_Getter";
967
968
969 /** @domName PannerNode.distanceModel */
970 void set distanceModel(int value) native "PannerNode_distanceModel_Setter";
971
972
973 /** @domName PannerNode.maxDistance */
974 num get maxDistance native "PannerNode_maxDistance_Getter";
975
976
977 /** @domName PannerNode.maxDistance */
978 void set maxDistance(num value) native "PannerNode_maxDistance_Setter";
979
980
981 /** @domName PannerNode.panningModel */
982 int get panningModel native "PannerNode_panningModel_Getter";
983
984
985 /** @domName PannerNode.panningModel */
986 void set panningModel(int value) native "PannerNode_panningModel_Setter";
987
988
989 /** @domName PannerNode.refDistance */
990 num get refDistance native "PannerNode_refDistance_Getter";
991
992
993 /** @domName PannerNode.refDistance */
994 void set refDistance(num value) native "PannerNode_refDistance_Setter";
995
996
997 /** @domName PannerNode.rolloffFactor */
998 num get rolloffFactor native "PannerNode_rolloffFactor_Getter";
999
1000
1001 /** @domName PannerNode.rolloffFactor */
1002 void set rolloffFactor(num value) native "PannerNode_rolloffFactor_Setter";
1003
1004
1005 /** @domName PannerNode.setOrientation */
1006 void setOrientation(num x, num y, num z) native "PannerNode_setOrientation_Cal lback";
1007
1008
1009 /** @domName PannerNode.setPosition */
1010 void setPosition(num x, num y, num z) native "PannerNode_setPosition_Callback" ;
1011
1012
1013 /** @domName PannerNode.setVelocity */
1014 void setVelocity(num x, num y, num z) native "PannerNode_setVelocity_Callback" ;
1015
1016 }
1017 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1018 // for details. All rights reserved. Use of this source code is governed by a
1019 // BSD-style license that can be found in the LICENSE file.
1020
1021 // WARNING: Do not edit - generated code.
1022
1023
1024 /// @domName ScriptProcessorNode
1025 class ScriptProcessorNode extends AudioNode implements EventTarget {
1026 ScriptProcessorNode.internal(): super.internal();
1027
1028 /**
1029 * @domName EventTarget.addEventListener, EventTarget.removeEventListener, Eve ntTarget.dispatchEvent; @docsEditable true
1030 */
1031 ScriptProcessorNodeEvents get on =>
1032 new ScriptProcessorNodeEvents(this);
1033
1034
1035 /** @domName ScriptProcessorNode.bufferSize */
1036 int get bufferSize native "ScriptProcessorNode_bufferSize_Getter";
1037
1038 }
1039
1040 class ScriptProcessorNodeEvents extends Events {
1041 ScriptProcessorNodeEvents(EventTarget _ptr) : super(_ptr);
1042
1043 EventListenerList get audioProcess => this['audioprocess'];
1044 }
1045 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1046 // for details. All rights reserved. Use of this source code is governed by a
1047 // BSD-style license that can be found in the LICENSE file.
1048
1049 // WARNING: Do not edit - generated code.
1050
1051
1052 /// @domName WaveShaperNode
1053 class WaveShaperNode extends AudioNode {
1054 WaveShaperNode.internal(): super.internal();
1055
1056
1057 /** @domName WaveShaperNode.curve */
1058 Float32Array get curve native "WaveShaperNode_curve_Getter";
1059
1060
1061 /** @domName WaveShaperNode.curve */
1062 void set curve(Float32Array value) native "WaveShaperNode_curve_Setter";
1063
1064 }
1065 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1066 // for details. All rights reserved. Use of this source code is governed by a
1067 // BSD-style license that can be found in the LICENSE file.
1068
1069
1070 class _AudioElementFactoryProvider {
1071 static AudioElement createAudioElement([String src]) native "HTMLAudioElement_ constructor_Callback";
1072 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698