OLD | NEW |
| (Empty) |
1 /** | |
2 * High-fidelity audio programming in the browser. | |
3 */ | |
4 library dart.dom.web_audio; | |
5 | |
6 import 'dart:async'; | |
7 import 'dart:collection' hide LinkedList, LinkedListEntry; | |
8 import 'dart:_internal'; | |
9 import 'dart:html'; | |
10 import 'dart:html_common'; | |
11 import 'dart:nativewrappers'; | |
12 import 'dart:typed_data'; | |
13 import 'dart:_blink' as _blink; | |
14 import 'dart:js' as js; | |
15 // DO NOT EDIT | |
16 // Auto-generated dart:audio library. | |
17 | |
18 // FIXME: Can we make this private? | |
19 @Deprecated("Internal Use Only") | |
20 final web_audioBlinkMap = { | |
21 'AnalyserNode': () => AnalyserNode.instanceRuntimeType, | |
22 'AudioBuffer': () => AudioBuffer.instanceRuntimeType, | |
23 'AudioBufferSourceNode': () => AudioBufferSourceNode.instanceRuntimeType, | |
24 'AudioContext': () => AudioContext.instanceRuntimeType, | |
25 'AudioDestinationNode': () => AudioDestinationNode.instanceRuntimeType, | |
26 'AudioListener': () => AudioListener.instanceRuntimeType, | |
27 'AudioNode': () => AudioNode.instanceRuntimeType, | |
28 'AudioParam': () => AudioParam.instanceRuntimeType, | |
29 'AudioProcessingEvent': () => AudioProcessingEvent.instanceRuntimeType, | |
30 'AudioSourceNode': () => AudioSourceNode.instanceRuntimeType, | |
31 'BiquadFilterNode': () => BiquadFilterNode.instanceRuntimeType, | |
32 'ChannelMergerNode': () => ChannelMergerNode.instanceRuntimeType, | |
33 'ChannelSplitterNode': () => ChannelSplitterNode.instanceRuntimeType, | |
34 'ConvolverNode': () => ConvolverNode.instanceRuntimeType, | |
35 'DelayNode': () => DelayNode.instanceRuntimeType, | |
36 'DynamicsCompressorNode': () => DynamicsCompressorNode.instanceRuntimeType, | |
37 'GainNode': () => GainNode.instanceRuntimeType, | |
38 'IIRFilterNode': () => IirFilterNode.instanceRuntimeType, | |
39 'MediaElementAudioSourceNode': () => | |
40 MediaElementAudioSourceNode.instanceRuntimeType, | |
41 'MediaStreamAudioDestinationNode': () => | |
42 MediaStreamAudioDestinationNode.instanceRuntimeType, | |
43 'MediaStreamAudioSourceNode': () => | |
44 MediaStreamAudioSourceNode.instanceRuntimeType, | |
45 'OfflineAudioCompletionEvent': () => | |
46 OfflineAudioCompletionEvent.instanceRuntimeType, | |
47 'OfflineAudioContext': () => OfflineAudioContext.instanceRuntimeType, | |
48 'OscillatorNode': () => OscillatorNode.instanceRuntimeType, | |
49 'PannerNode': () => PannerNode.instanceRuntimeType, | |
50 'PeriodicWave': () => PeriodicWave.instanceRuntimeType, | |
51 'ScriptProcessorNode': () => ScriptProcessorNode.instanceRuntimeType, | |
52 'StereoPannerNode': () => StereoPannerNode.instanceRuntimeType, | |
53 'WaveShaperNode': () => WaveShaperNode.instanceRuntimeType, | |
54 }; | |
55 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
56 // for details. All rights reserved. Use of this source code is governed by a | |
57 // BSD-style license that can be found in the LICENSE file. | |
58 | |
59 // WARNING: Do not edit - generated code. | |
60 | |
61 @DocsEditable() | |
62 @DomName('AnalyserNode') | |
63 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Analyse
rNode | |
64 @Experimental() | |
65 class AnalyserNode extends AudioNode { | |
66 // To suppress missing implicit constructor warnings. | |
67 factory AnalyserNode._() { | |
68 throw new UnsupportedError("Not supported"); | |
69 } | |
70 | |
71 @Deprecated("Internal Use Only") | |
72 external static Type get instanceRuntimeType; | |
73 | |
74 @Deprecated("Internal Use Only") | |
75 AnalyserNode.internal_() : super.internal_(); | |
76 | |
77 @DomName('AnalyserNode.fftSize') | |
78 @DocsEditable() | |
79 int get fftSize => _blink.BlinkAnalyserNode.instance.fftSize_Getter_(this); | |
80 | |
81 @DomName('AnalyserNode.fftSize') | |
82 @DocsEditable() | |
83 set fftSize(int value) => | |
84 _blink.BlinkAnalyserNode.instance.fftSize_Setter_(this, value); | |
85 | |
86 @DomName('AnalyserNode.frequencyBinCount') | |
87 @DocsEditable() | |
88 int get frequencyBinCount => | |
89 _blink.BlinkAnalyserNode.instance.frequencyBinCount_Getter_(this); | |
90 | |
91 @DomName('AnalyserNode.maxDecibels') | |
92 @DocsEditable() | |
93 num get maxDecibels => | |
94 _blink.BlinkAnalyserNode.instance.maxDecibels_Getter_(this); | |
95 | |
96 @DomName('AnalyserNode.maxDecibels') | |
97 @DocsEditable() | |
98 set maxDecibels(num value) => | |
99 _blink.BlinkAnalyserNode.instance.maxDecibels_Setter_(this, value); | |
100 | |
101 @DomName('AnalyserNode.minDecibels') | |
102 @DocsEditable() | |
103 num get minDecibels => | |
104 _blink.BlinkAnalyserNode.instance.minDecibels_Getter_(this); | |
105 | |
106 @DomName('AnalyserNode.minDecibels') | |
107 @DocsEditable() | |
108 set minDecibels(num value) => | |
109 _blink.BlinkAnalyserNode.instance.minDecibels_Setter_(this, value); | |
110 | |
111 @DomName('AnalyserNode.smoothingTimeConstant') | |
112 @DocsEditable() | |
113 num get smoothingTimeConstant => | |
114 _blink.BlinkAnalyserNode.instance.smoothingTimeConstant_Getter_(this); | |
115 | |
116 @DomName('AnalyserNode.smoothingTimeConstant') | |
117 @DocsEditable() | |
118 set smoothingTimeConstant(num value) => _blink.BlinkAnalyserNode.instance | |
119 .smoothingTimeConstant_Setter_(this, value); | |
120 | |
121 @DomName('AnalyserNode.getByteFrequencyData') | |
122 @DocsEditable() | |
123 void getByteFrequencyData(Uint8List array) => | |
124 _blink.BlinkAnalyserNode.instance | |
125 .getByteFrequencyData_Callback_1_(this, array); | |
126 | |
127 @DomName('AnalyserNode.getByteTimeDomainData') | |
128 @DocsEditable() | |
129 void getByteTimeDomainData(Uint8List array) => | |
130 _blink.BlinkAnalyserNode.instance | |
131 .getByteTimeDomainData_Callback_1_(this, array); | |
132 | |
133 @DomName('AnalyserNode.getFloatFrequencyData') | |
134 @DocsEditable() | |
135 void getFloatFrequencyData(Float32List array) => | |
136 _blink.BlinkAnalyserNode.instance | |
137 .getFloatFrequencyData_Callback_1_(this, array); | |
138 | |
139 @DomName('AnalyserNode.getFloatTimeDomainData') | |
140 @DocsEditable() | |
141 @Experimental() // untriaged | |
142 void getFloatTimeDomainData(Float32List array) => | |
143 _blink.BlinkAnalyserNode.instance | |
144 .getFloatTimeDomainData_Callback_1_(this, array); | |
145 } | |
146 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
147 // for details. All rights reserved. Use of this source code is governed by a | |
148 // BSD-style license that can be found in the LICENSE file. | |
149 | |
150 // WARNING: Do not edit - generated code. | |
151 | |
152 @DocsEditable() | |
153 @DomName('AudioBuffer') | |
154 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section | |
155 @Experimental() | |
156 class AudioBuffer extends DartHtmlDomObject { | |
157 // To suppress missing implicit constructor warnings. | |
158 factory AudioBuffer._() { | |
159 throw new UnsupportedError("Not supported"); | |
160 } | |
161 | |
162 @Deprecated("Internal Use Only") | |
163 external static Type get instanceRuntimeType; | |
164 | |
165 @Deprecated("Internal Use Only") | |
166 AudioBuffer.internal_() {} | |
167 | |
168 @DomName('AudioBuffer.duration') | |
169 @DocsEditable() | |
170 num get duration => _blink.BlinkAudioBuffer.instance.duration_Getter_(this); | |
171 | |
172 @DomName('AudioBuffer.length') | |
173 @DocsEditable() | |
174 int get length => _blink.BlinkAudioBuffer.instance.length_Getter_(this); | |
175 | |
176 @DomName('AudioBuffer.numberOfChannels') | |
177 @DocsEditable() | |
178 int get numberOfChannels => | |
179 _blink.BlinkAudioBuffer.instance.numberOfChannels_Getter_(this); | |
180 | |
181 @DomName('AudioBuffer.sampleRate') | |
182 @DocsEditable() | |
183 num get sampleRate => | |
184 _blink.BlinkAudioBuffer.instance.sampleRate_Getter_(this); | |
185 | |
186 void copyFromChannel(Float32List destination, int channelNumber, | |
187 [int startInChannel]) { | |
188 if (startInChannel != null) { | |
189 _blink.BlinkAudioBuffer.instance.copyFromChannel_Callback_3_( | |
190 this, destination, channelNumber, startInChannel); | |
191 return; | |
192 } | |
193 _blink.BlinkAudioBuffer.instance | |
194 .copyFromChannel_Callback_2_(this, destination, channelNumber); | |
195 return; | |
196 } | |
197 | |
198 void copyToChannel(Float32List source, int channelNumber, | |
199 [int startInChannel]) { | |
200 if (startInChannel != null) { | |
201 _blink.BlinkAudioBuffer.instance.copyToChannel_Callback_3_( | |
202 this, source, channelNumber, startInChannel); | |
203 return; | |
204 } | |
205 _blink.BlinkAudioBuffer.instance | |
206 .copyToChannel_Callback_2_(this, source, channelNumber); | |
207 return; | |
208 } | |
209 | |
210 @DomName('AudioBuffer.getChannelData') | |
211 @DocsEditable() | |
212 Float32List getChannelData(int channelIndex) => | |
213 _blink.BlinkAudioBuffer.instance | |
214 .getChannelData_Callback_1_(this, channelIndex); | |
215 } | |
216 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
217 // for details. All rights reserved. Use of this source code is governed by a | |
218 // BSD-style license that can be found in the LICENSE file. | |
219 | |
220 // WARNING: Do not edit - generated code. | |
221 | |
222 @DomName('AudioBufferCallback') | |
223 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section | |
224 @Experimental() | |
225 typedef void AudioBufferCallback(audioBuffer_OR_exception); | |
226 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
227 // for details. All rights reserved. Use of this source code is governed by a | |
228 // BSD-style license that can be found in the LICENSE file. | |
229 | |
230 // WARNING: Do not edit - generated code. | |
231 | |
232 @DocsEditable() | |
233 @DomName('AudioBufferSourceNode') | |
234 @SupportedBrowser(SupportedBrowser.CHROME) | |
235 @SupportedBrowser(SupportedBrowser.FIREFOX) | |
236 @Experimental() | |
237 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
fferSourceNode-section | |
238 class AudioBufferSourceNode extends AudioSourceNode { | |
239 // To suppress missing implicit constructor warnings. | |
240 factory AudioBufferSourceNode._() { | |
241 throw new UnsupportedError("Not supported"); | |
242 } | |
243 | |
244 /** | |
245 * Static factory designed to expose `ended` events to event | |
246 * handlers that are not necessarily instances of [AudioBufferSourceNode]. | |
247 * | |
248 * See [EventStreamProvider] for usage information. | |
249 */ | |
250 @DomName('AudioBufferSourceNode.endedEvent') | |
251 @DocsEditable() | |
252 @Experimental() // untriaged | |
253 static const EventStreamProvider<Event> endedEvent = | |
254 const EventStreamProvider<Event>('ended'); | |
255 | |
256 @Deprecated("Internal Use Only") | |
257 external static Type get instanceRuntimeType; | |
258 | |
259 @Deprecated("Internal Use Only") | |
260 AudioBufferSourceNode.internal_() : super.internal_(); | |
261 | |
262 @DomName('AudioBufferSourceNode.buffer') | |
263 @DocsEditable() | |
264 AudioBuffer get buffer => | |
265 _blink.BlinkAudioBufferSourceNode.instance.buffer_Getter_(this); | |
266 | |
267 @DomName('AudioBufferSourceNode.buffer') | |
268 @DocsEditable() | |
269 set buffer(AudioBuffer value) => | |
270 _blink.BlinkAudioBufferSourceNode.instance.buffer_Setter_(this, value); | |
271 | |
272 @DomName('AudioBufferSourceNode.detune') | |
273 @DocsEditable() | |
274 @Experimental() // untriaged | |
275 AudioParam get detune => | |
276 _blink.BlinkAudioBufferSourceNode.instance.detune_Getter_(this); | |
277 | |
278 @DomName('AudioBufferSourceNode.loop') | |
279 @DocsEditable() | |
280 bool get loop => | |
281 _blink.BlinkAudioBufferSourceNode.instance.loop_Getter_(this); | |
282 | |
283 @DomName('AudioBufferSourceNode.loop') | |
284 @DocsEditable() | |
285 set loop(bool value) => | |
286 _blink.BlinkAudioBufferSourceNode.instance.loop_Setter_(this, value); | |
287 | |
288 @DomName('AudioBufferSourceNode.loopEnd') | |
289 @DocsEditable() | |
290 num get loopEnd => | |
291 _blink.BlinkAudioBufferSourceNode.instance.loopEnd_Getter_(this); | |
292 | |
293 @DomName('AudioBufferSourceNode.loopEnd') | |
294 @DocsEditable() | |
295 set loopEnd(num value) => | |
296 _blink.BlinkAudioBufferSourceNode.instance.loopEnd_Setter_(this, value); | |
297 | |
298 @DomName('AudioBufferSourceNode.loopStart') | |
299 @DocsEditable() | |
300 num get loopStart => | |
301 _blink.BlinkAudioBufferSourceNode.instance.loopStart_Getter_(this); | |
302 | |
303 @DomName('AudioBufferSourceNode.loopStart') | |
304 @DocsEditable() | |
305 set loopStart(num value) => | |
306 _blink.BlinkAudioBufferSourceNode.instance.loopStart_Setter_(this, value); | |
307 | |
308 @DomName('AudioBufferSourceNode.playbackRate') | |
309 @DocsEditable() | |
310 AudioParam get playbackRate => | |
311 _blink.BlinkAudioBufferSourceNode.instance.playbackRate_Getter_(this); | |
312 | |
313 void start([num when, num grainOffset, num grainDuration]) { | |
314 if (grainDuration != null) { | |
315 _blink.BlinkAudioBufferSourceNode.instance | |
316 .start_Callback_3_(this, when, grainOffset, grainDuration); | |
317 return; | |
318 } | |
319 if (grainOffset != null) { | |
320 _blink.BlinkAudioBufferSourceNode.instance | |
321 .start_Callback_2_(this, when, grainOffset); | |
322 return; | |
323 } | |
324 if (when != null) { | |
325 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_1_(this, when); | |
326 return; | |
327 } | |
328 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_0_(this); | |
329 return; | |
330 } | |
331 | |
332 void stop([num when]) { | |
333 if (when != null) { | |
334 _blink.BlinkAudioBufferSourceNode.instance.stop_Callback_1_(this, when); | |
335 return; | |
336 } | |
337 _blink.BlinkAudioBufferSourceNode.instance.stop_Callback_0_(this); | |
338 return; | |
339 } | |
340 | |
341 /// Stream of `ended` events handled by this [AudioBufferSourceNode]. | |
342 @DomName('AudioBufferSourceNode.onended') | |
343 @DocsEditable() | |
344 @Experimental() // untriaged | |
345 Stream<Event> get onEnded => endedEvent.forTarget(this); | |
346 } | |
347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
348 // for details. All rights reserved. Use of this source code is governed by a | |
349 // BSD-style license that can be found in the LICENSE file. | |
350 | |
351 @DomName('AudioContext') | |
352 @SupportedBrowser(SupportedBrowser.CHROME) | |
353 @SupportedBrowser(SupportedBrowser.FIREFOX) | |
354 @Experimental() | |
355 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo
ntext-section | |
356 class AudioContext extends EventTarget { | |
357 // To suppress missing implicit constructor warnings. | |
358 factory AudioContext._() { | |
359 throw new UnsupportedError("Not supported"); | |
360 } | |
361 | |
362 @DomName('AudioContext.AudioContext') | |
363 @DocsEditable() | |
364 factory AudioContext() { | |
365 return _blink.BlinkAudioContext.instance.constructorCallback_0_(); | |
366 } | |
367 | |
368 @Deprecated("Internal Use Only") | |
369 external static Type get instanceRuntimeType; | |
370 | |
371 @Deprecated("Internal Use Only") | |
372 AudioContext.internal_() : super.internal_(); | |
373 | |
374 /// Checks if this type is supported on the current platform. | |
375 static bool get supported => true; | |
376 | |
377 @DomName('AudioContext.currentTime') | |
378 @DocsEditable() | |
379 num get currentTime => | |
380 _blink.BlinkAudioContext.instance.currentTime_Getter_(this); | |
381 | |
382 @DomName('AudioContext.destination') | |
383 @DocsEditable() | |
384 AudioDestinationNode get destination => | |
385 _blink.BlinkAudioContext.instance.destination_Getter_(this); | |
386 | |
387 @DomName('AudioContext.listener') | |
388 @DocsEditable() | |
389 AudioListener get listener => | |
390 _blink.BlinkAudioContext.instance.listener_Getter_(this); | |
391 | |
392 @DomName('AudioContext.sampleRate') | |
393 @DocsEditable() | |
394 num get sampleRate => | |
395 _blink.BlinkAudioContext.instance.sampleRate_Getter_(this); | |
396 | |
397 @DomName('AudioContext.state') | |
398 @DocsEditable() | |
399 @Experimental() // untriaged | |
400 String get state => _blink.BlinkAudioContext.instance.state_Getter_(this); | |
401 | |
402 @DomName('AudioContext.close') | |
403 @DocsEditable() | |
404 @Experimental() // untriaged | |
405 Future close() => convertNativePromiseToDartFuture( | |
406 _blink.BlinkAudioContext.instance.close_Callback_0_(this)); | |
407 | |
408 @DomName('AudioContext.createAnalyser') | |
409 @DocsEditable() | |
410 AnalyserNode createAnalyser() => | |
411 _blink.BlinkAudioContext.instance.createAnalyser_Callback_0_(this); | |
412 | |
413 @DomName('AudioContext.createBiquadFilter') | |
414 @DocsEditable() | |
415 BiquadFilterNode createBiquadFilter() => | |
416 _blink.BlinkAudioContext.instance.createBiquadFilter_Callback_0_(this); | |
417 | |
418 @DomName('AudioContext.createBuffer') | |
419 @DocsEditable() | |
420 AudioBuffer createBuffer( | |
421 int numberOfChannels, int numberOfFrames, num sampleRate) => | |
422 _blink.BlinkAudioContext.instance.createBuffer_Callback_3_( | |
423 this, numberOfChannels, numberOfFrames, sampleRate); | |
424 | |
425 @DomName('AudioContext.createBufferSource') | |
426 @DocsEditable() | |
427 AudioBufferSourceNode createBufferSource() => | |
428 _blink.BlinkAudioContext.instance.createBufferSource_Callback_0_(this); | |
429 | |
430 ChannelMergerNode createChannelMerger([int numberOfInputs]) { | |
431 if (numberOfInputs != null) { | |
432 return _blink.BlinkAudioContext.instance | |
433 .createChannelMerger_Callback_1_(this, numberOfInputs); | |
434 } | |
435 return _blink.BlinkAudioContext.instance | |
436 .createChannelMerger_Callback_0_(this); | |
437 } | |
438 | |
439 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) { | |
440 if (numberOfOutputs != null) { | |
441 return _blink.BlinkAudioContext.instance | |
442 .createChannelSplitter_Callback_1_(this, numberOfOutputs); | |
443 } | |
444 return _blink.BlinkAudioContext.instance | |
445 .createChannelSplitter_Callback_0_(this); | |
446 } | |
447 | |
448 @DomName('AudioContext.createConvolver') | |
449 @DocsEditable() | |
450 ConvolverNode createConvolver() => | |
451 _blink.BlinkAudioContext.instance.createConvolver_Callback_0_(this); | |
452 | |
453 DelayNode createDelay([num maxDelayTime]) { | |
454 if (maxDelayTime != null) { | |
455 return _blink.BlinkAudioContext.instance | |
456 .createDelay_Callback_1_(this, maxDelayTime); | |
457 } | |
458 return _blink.BlinkAudioContext.instance.createDelay_Callback_0_(this); | |
459 } | |
460 | |
461 @DomName('AudioContext.createDynamicsCompressor') | |
462 @DocsEditable() | |
463 DynamicsCompressorNode createDynamicsCompressor() => | |
464 _blink.BlinkAudioContext.instance | |
465 .createDynamicsCompressor_Callback_0_(this); | |
466 | |
467 @DomName('AudioContext.createGain') | |
468 @DocsEditable() | |
469 GainNode createGain() => | |
470 _blink.BlinkAudioContext.instance.createGain_Callback_0_(this); | |
471 | |
472 @DomName('AudioContext.createIIRFilter') | |
473 @DocsEditable() | |
474 @Experimental() // untriaged | |
475 IirFilterNode createIirFilter(List<num> feedForward, List<num> feedBack) => | |
476 _blink.BlinkAudioContext.instance | |
477 .createIIRFilter_Callback_2_(this, feedForward, feedBack); | |
478 | |
479 @DomName('AudioContext.createMediaElementSource') | |
480 @DocsEditable() | |
481 MediaElementAudioSourceNode createMediaElementSource( | |
482 MediaElement mediaElement) => | |
483 _blink.BlinkAudioContext.instance | |
484 .createMediaElementSource_Callback_1_(this, mediaElement); | |
485 | |
486 @DomName('AudioContext.createMediaStreamDestination') | |
487 @DocsEditable() | |
488 MediaStreamAudioDestinationNode createMediaStreamDestination() => | |
489 _blink.BlinkAudioContext.instance | |
490 .createMediaStreamDestination_Callback_0_(this); | |
491 | |
492 @DomName('AudioContext.createMediaStreamSource') | |
493 @DocsEditable() | |
494 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) => | |
495 _blink.BlinkAudioContext.instance | |
496 .createMediaStreamSource_Callback_1_(this, mediaStream); | |
497 | |
498 @DomName('AudioContext.createOscillator') | |
499 @DocsEditable() | |
500 OscillatorNode createOscillator() => | |
501 _blink.BlinkAudioContext.instance.createOscillator_Callback_0_(this); | |
502 | |
503 @DomName('AudioContext.createPanner') | |
504 @DocsEditable() | |
505 PannerNode createPanner() => | |
506 _blink.BlinkAudioContext.instance.createPanner_Callback_0_(this); | |
507 | |
508 PeriodicWave createPeriodicWave(Float32List real, Float32List imag, | |
509 [Map options]) { | |
510 if (options != null) { | |
511 return _blink.BlinkAudioContext.instance.createPeriodicWave_Callback_3_( | |
512 this, real, imag, convertDartToNative_Dictionary(options)); | |
513 } | |
514 return _blink.BlinkAudioContext.instance | |
515 .createPeriodicWave_Callback_2_(this, real, imag); | |
516 } | |
517 | |
518 ScriptProcessorNode createScriptProcessor( | |
519 [int bufferSize, int numberOfInputChannels, int numberOfOutputChannels]) { | |
520 if (numberOfOutputChannels != null) { | |
521 return _blink.BlinkAudioContext.instance | |
522 .createScriptProcessor_Callback_3_( | |
523 this, bufferSize, numberOfInputChannels, numberOfOutputChannels); | |
524 } | |
525 if (numberOfInputChannels != null) { | |
526 return _blink.BlinkAudioContext.instance | |
527 .createScriptProcessor_Callback_2_( | |
528 this, bufferSize, numberOfInputChannels); | |
529 } | |
530 if (bufferSize != null) { | |
531 return _blink.BlinkAudioContext.instance | |
532 .createScriptProcessor_Callback_1_(this, bufferSize); | |
533 } | |
534 return _blink.BlinkAudioContext.instance | |
535 .createScriptProcessor_Callback_0_(this); | |
536 } | |
537 | |
538 @DomName('AudioContext.createStereoPanner') | |
539 @DocsEditable() | |
540 @Experimental() // untriaged | |
541 StereoPannerNode createStereoPanner() => | |
542 _blink.BlinkAudioContext.instance.createStereoPanner_Callback_0_(this); | |
543 | |
544 @DomName('AudioContext.createWaveShaper') | |
545 @DocsEditable() | |
546 WaveShaperNode createWaveShaper() => | |
547 _blink.BlinkAudioContext.instance.createWaveShaper_Callback_0_(this); | |
548 | |
549 @DomName('AudioContext.resume') | |
550 @DocsEditable() | |
551 @Experimental() // untriaged | |
552 Future resume() => convertNativePromiseToDartFuture( | |
553 _blink.BlinkAudioContext.instance.resume_Callback_0_(this)); | |
554 | |
555 @DomName('AudioContext.suspend') | |
556 @DocsEditable() | |
557 @Experimental() // untriaged | |
558 Future suspend() => convertNativePromiseToDartFuture( | |
559 _blink.BlinkAudioContext.instance.suspend_Callback_0_(this)); | |
560 | |
561 @DomName('AudioContext.decodeAudioData') | |
562 Future<AudioBuffer> decodeAudioData(ByteBuffer audioData, | |
563 [AudioBufferCallback successCallback, | |
564 AudioBufferCallback errorCallback]) { | |
565 if (errorCallback != null) { | |
566 return convertNativePromiseToDartFuture(_blink.BlinkAudioContext.instance | |
567 .decodeAudioData_Callback_3_( | |
568 this, audioData, successCallback, errorCallback)); | |
569 } | |
570 if (successCallback != null) { | |
571 return convertNativePromiseToDartFuture(_blink.BlinkAudioContext.instance | |
572 .decodeAudioData_Callback_2_(this, audioData, successCallback)); | |
573 } | |
574 return convertNativePromiseToDartFuture(_blink.BlinkAudioContext.instance | |
575 .decodeAudioData_Callback_1_(this, audioData)); | |
576 } | |
577 } | |
578 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
579 // for details. All rights reserved. Use of this source code is governed by a | |
580 // BSD-style license that can be found in the LICENSE file. | |
581 | |
582 // WARNING: Do not edit - generated code. | |
583 | |
584 @DocsEditable() | |
585 @DomName('AudioDestinationNode') | |
586 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe
stinationNode-section | |
587 @Experimental() | |
588 class AudioDestinationNode extends AudioNode { | |
589 // To suppress missing implicit constructor warnings. | |
590 factory AudioDestinationNode._() { | |
591 throw new UnsupportedError("Not supported"); | |
592 } | |
593 | |
594 @Deprecated("Internal Use Only") | |
595 external static Type get instanceRuntimeType; | |
596 | |
597 @Deprecated("Internal Use Only") | |
598 AudioDestinationNode.internal_() : super.internal_(); | |
599 | |
600 @DomName('AudioDestinationNode.maxChannelCount') | |
601 @DocsEditable() | |
602 int get maxChannelCount => | |
603 _blink.BlinkAudioDestinationNode.instance.maxChannelCount_Getter_(this); | |
604 } | |
605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
606 // for details. All rights reserved. Use of this source code is governed by a | |
607 // BSD-style license that can be found in the LICENSE file. | |
608 | |
609 // WARNING: Do not edit - generated code. | |
610 | |
611 @DocsEditable() | |
612 @DomName('AudioListener') | |
613 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi
stener-section | |
614 @Experimental() | |
615 class AudioListener extends DartHtmlDomObject { | |
616 // To suppress missing implicit constructor warnings. | |
617 factory AudioListener._() { | |
618 throw new UnsupportedError("Not supported"); | |
619 } | |
620 | |
621 @Deprecated("Internal Use Only") | |
622 external static Type get instanceRuntimeType; | |
623 | |
624 @Deprecated("Internal Use Only") | |
625 AudioListener.internal_() {} | |
626 | |
627 @DomName('AudioListener.dopplerFactor') | |
628 @DocsEditable() | |
629 num get dopplerFactor => | |
630 _blink.BlinkAudioListener.instance.dopplerFactor_Getter_(this); | |
631 | |
632 @DomName('AudioListener.dopplerFactor') | |
633 @DocsEditable() | |
634 set dopplerFactor(num value) => | |
635 _blink.BlinkAudioListener.instance.dopplerFactor_Setter_(this, value); | |
636 | |
637 @DomName('AudioListener.speedOfSound') | |
638 @DocsEditable() | |
639 num get speedOfSound => | |
640 _blink.BlinkAudioListener.instance.speedOfSound_Getter_(this); | |
641 | |
642 @DomName('AudioListener.speedOfSound') | |
643 @DocsEditable() | |
644 set speedOfSound(num value) => | |
645 _blink.BlinkAudioListener.instance.speedOfSound_Setter_(this, value); | |
646 | |
647 @DomName('AudioListener.setOrientation') | |
648 @DocsEditable() | |
649 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) => | |
650 _blink.BlinkAudioListener.instance | |
651 .setOrientation_Callback_6_(this, x, y, z, xUp, yUp, zUp); | |
652 | |
653 @DomName('AudioListener.setPosition') | |
654 @DocsEditable() | |
655 void setPosition(num x, num y, num z) => | |
656 _blink.BlinkAudioListener.instance.setPosition_Callback_3_(this, x, y, z); | |
657 | |
658 @DomName('AudioListener.setVelocity') | |
659 @DocsEditable() | |
660 void setVelocity(num x, num y, num z) => | |
661 _blink.BlinkAudioListener.instance.setVelocity_Callback_3_(this, x, y, z); | |
662 } | |
663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
664 // for details. All rights reserved. Use of this source code is governed by a | |
665 // BSD-style license that can be found in the LICENSE file. | |
666 | |
667 @DomName('AudioNode') | |
668 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo
de-section | |
669 @Experimental() | |
670 class AudioNode extends EventTarget { | |
671 // To suppress missing implicit constructor warnings. | |
672 factory AudioNode._() { | |
673 throw new UnsupportedError("Not supported"); | |
674 } | |
675 | |
676 @Deprecated("Internal Use Only") | |
677 external static Type get instanceRuntimeType; | |
678 | |
679 @Deprecated("Internal Use Only") | |
680 AudioNode.internal_() : super.internal_(); | |
681 | |
682 @DomName('AudioNode.channelCount') | |
683 @DocsEditable() | |
684 int get channelCount => | |
685 _blink.BlinkAudioNode.instance.channelCount_Getter_(this); | |
686 | |
687 @DomName('AudioNode.channelCount') | |
688 @DocsEditable() | |
689 set channelCount(int value) => | |
690 _blink.BlinkAudioNode.instance.channelCount_Setter_(this, value); | |
691 | |
692 @DomName('AudioNode.channelCountMode') | |
693 @DocsEditable() | |
694 String get channelCountMode => | |
695 _blink.BlinkAudioNode.instance.channelCountMode_Getter_(this); | |
696 | |
697 @DomName('AudioNode.channelCountMode') | |
698 @DocsEditable() | |
699 set channelCountMode(String value) => | |
700 _blink.BlinkAudioNode.instance.channelCountMode_Setter_(this, value); | |
701 | |
702 @DomName('AudioNode.channelInterpretation') | |
703 @DocsEditable() | |
704 String get channelInterpretation => | |
705 _blink.BlinkAudioNode.instance.channelInterpretation_Getter_(this); | |
706 | |
707 @DomName('AudioNode.channelInterpretation') | |
708 @DocsEditable() | |
709 set channelInterpretation(String value) => | |
710 _blink.BlinkAudioNode.instance.channelInterpretation_Setter_(this, value); | |
711 | |
712 @DomName('AudioNode.context') | |
713 @DocsEditable() | |
714 AudioContext get context => | |
715 _blink.BlinkAudioNode.instance.context_Getter_(this); | |
716 | |
717 @DomName('AudioNode.numberOfInputs') | |
718 @DocsEditable() | |
719 int get numberOfInputs => | |
720 _blink.BlinkAudioNode.instance.numberOfInputs_Getter_(this); | |
721 | |
722 @DomName('AudioNode.numberOfOutputs') | |
723 @DocsEditable() | |
724 int get numberOfOutputs => | |
725 _blink.BlinkAudioNode.instance.numberOfOutputs_Getter_(this); | |
726 | |
727 AudioNode _connect(destination, [int output, int input]) { | |
728 if ((destination is AudioNode) && output == null && input == null) { | |
729 return _blink.BlinkAudioNode.instance | |
730 .connect_Callback_1_(this, destination); | |
731 } | |
732 if ((output is int || output == null) && | |
733 (destination is AudioNode) && | |
734 input == null) { | |
735 return _blink.BlinkAudioNode.instance | |
736 .connect_Callback_2_(this, destination, output); | |
737 } | |
738 if ((input is int || input == null) && | |
739 (output is int || output == null) && | |
740 (destination is AudioNode)) { | |
741 return _blink.BlinkAudioNode.instance | |
742 .connect_Callback_3_(this, destination, output, input); | |
743 } | |
744 if ((destination is AudioParam) && output == null && input == null) { | |
745 return _blink.BlinkAudioNode.instance | |
746 .connect_Callback_1_(this, destination); | |
747 } | |
748 if ((output is int || output == null) && | |
749 (destination is AudioParam) && | |
750 input == null) { | |
751 return _blink.BlinkAudioNode.instance | |
752 .connect_Callback_2_(this, destination, output); | |
753 } | |
754 throw new ArgumentError("Incorrect number or type of arguments"); | |
755 } | |
756 | |
757 void disconnect([destination_OR_output, int output, int input]) { | |
758 if (destination_OR_output == null && output == null && input == null) { | |
759 _blink.BlinkAudioNode.instance.disconnect_Callback_0_(this); | |
760 return; | |
761 } | |
762 if ((destination_OR_output is int) && output == null && input == null) { | |
763 _blink.BlinkAudioNode.instance | |
764 .disconnect_Callback_1_(this, destination_OR_output); | |
765 return; | |
766 } | |
767 if ((destination_OR_output is AudioNode) && | |
768 output == null && | |
769 input == null) { | |
770 _blink.BlinkAudioNode.instance | |
771 .disconnect_Callback_1_(this, destination_OR_output); | |
772 return; | |
773 } | |
774 if ((output is int) && | |
775 (destination_OR_output is AudioNode) && | |
776 input == null) { | |
777 _blink.BlinkAudioNode.instance | |
778 .disconnect_Callback_2_(this, destination_OR_output, output); | |
779 return; | |
780 } | |
781 if ((input is int) && | |
782 (output is int) && | |
783 (destination_OR_output is AudioNode)) { | |
784 _blink.BlinkAudioNode.instance | |
785 .disconnect_Callback_3_(this, destination_OR_output, output, input); | |
786 return; | |
787 } | |
788 if ((destination_OR_output is AudioParam) && | |
789 output == null && | |
790 input == null) { | |
791 _blink.BlinkAudioNode.instance | |
792 .disconnect_Callback_1_(this, destination_OR_output); | |
793 return; | |
794 } | |
795 if ((output is int) && | |
796 (destination_OR_output is AudioParam) && | |
797 input == null) { | |
798 _blink.BlinkAudioNode.instance | |
799 .disconnect_Callback_2_(this, destination_OR_output, output); | |
800 return; | |
801 } | |
802 throw new ArgumentError("Incorrect number or type of arguments"); | |
803 } | |
804 | |
805 @DomName('AudioNode.connect') | |
806 void connectNode(AudioNode destination, [int output = 0, int input = 0]) { | |
807 _connect(destination, output, input); | |
808 } | |
809 | |
810 @DomName('AudioNode.connect') | |
811 void connectParam(AudioParam destination, [int output = 0]) { | |
812 _connect(destination, output); | |
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 @DocsEditable() | |
822 @DomName('AudioParam') | |
823 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa
ram | |
824 @Experimental() | |
825 class AudioParam extends DartHtmlDomObject { | |
826 // To suppress missing implicit constructor warnings. | |
827 factory AudioParam._() { | |
828 throw new UnsupportedError("Not supported"); | |
829 } | |
830 | |
831 @Deprecated("Internal Use Only") | |
832 external static Type get instanceRuntimeType; | |
833 | |
834 @Deprecated("Internal Use Only") | |
835 AudioParam.internal_() {} | |
836 | |
837 @DomName('AudioParam.defaultValue') | |
838 @DocsEditable() | |
839 num get defaultValue => | |
840 _blink.BlinkAudioParam.instance.defaultValue_Getter_(this); | |
841 | |
842 @DomName('AudioParam.value') | |
843 @DocsEditable() | |
844 num get value => _blink.BlinkAudioParam.instance.value_Getter_(this); | |
845 | |
846 @DomName('AudioParam.value') | |
847 @DocsEditable() | |
848 set value(num value) => | |
849 _blink.BlinkAudioParam.instance.value_Setter_(this, value); | |
850 | |
851 @DomName('AudioParam.cancelScheduledValues') | |
852 @DocsEditable() | |
853 AudioParam cancelScheduledValues(num startTime) => | |
854 _blink.BlinkAudioParam.instance | |
855 .cancelScheduledValues_Callback_1_(this, startTime); | |
856 | |
857 @DomName('AudioParam.exponentialRampToValueAtTime') | |
858 @DocsEditable() | |
859 AudioParam exponentialRampToValueAtTime(num value, num time) => | |
860 _blink.BlinkAudioParam.instance | |
861 .exponentialRampToValueAtTime_Callback_2_(this, value, time); | |
862 | |
863 @DomName('AudioParam.linearRampToValueAtTime') | |
864 @DocsEditable() | |
865 AudioParam linearRampToValueAtTime(num value, num time) => | |
866 _blink.BlinkAudioParam.instance | |
867 .linearRampToValueAtTime_Callback_2_(this, value, time); | |
868 | |
869 AudioParam setTargetAtTime(num target, num time, num timeConstant) { | |
870 if ((timeConstant is num) && (time is num) && (target is num)) { | |
871 return _blink.BlinkAudioParam.instance | |
872 .setTargetAtTime_Callback_3_(this, target, time, timeConstant); | |
873 } | |
874 if ((timeConstant is num) && (time is num) && (target is num)) { | |
875 return _blink.BlinkAudioParam.instance | |
876 .setTargetAtTime_Callback_3_(this, target, time, timeConstant); | |
877 } | |
878 throw new ArgumentError("Incorrect number or type of arguments"); | |
879 } | |
880 | |
881 @DomName('AudioParam.setValueAtTime') | |
882 @DocsEditable() | |
883 AudioParam setValueAtTime(num value, num time) => | |
884 _blink.BlinkAudioParam.instance | |
885 .setValueAtTime_Callback_2_(this, value, time); | |
886 | |
887 @DomName('AudioParam.setValueCurveAtTime') | |
888 @DocsEditable() | |
889 AudioParam setValueCurveAtTime(Float32List values, num time, num duration) => | |
890 _blink.BlinkAudioParam.instance | |
891 .setValueCurveAtTime_Callback_3_(this, values, time, duration); | |
892 } | |
893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
894 // for details. All rights reserved. Use of this source code is governed by a | |
895 // BSD-style license that can be found in the LICENSE file. | |
896 | |
897 // WARNING: Do not edit - generated code. | |
898 | |
899 @DocsEditable() | |
900 @DomName('AudioProcessingEvent') | |
901 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr
ocessingEvent-section | |
902 @Experimental() | |
903 class AudioProcessingEvent extends Event { | |
904 // To suppress missing implicit constructor warnings. | |
905 factory AudioProcessingEvent._() { | |
906 throw new UnsupportedError("Not supported"); | |
907 } | |
908 | |
909 @Deprecated("Internal Use Only") | |
910 external static Type get instanceRuntimeType; | |
911 | |
912 @Deprecated("Internal Use Only") | |
913 AudioProcessingEvent.internal_() : super.internal_(); | |
914 | |
915 @DomName('AudioProcessingEvent.inputBuffer') | |
916 @DocsEditable() | |
917 AudioBuffer get inputBuffer => | |
918 _blink.BlinkAudioProcessingEvent.instance.inputBuffer_Getter_(this); | |
919 | |
920 @DomName('AudioProcessingEvent.outputBuffer') | |
921 @DocsEditable() | |
922 AudioBuffer get outputBuffer => | |
923 _blink.BlinkAudioProcessingEvent.instance.outputBuffer_Getter_(this); | |
924 | |
925 @DomName('AudioProcessingEvent.playbackTime') | |
926 @DocsEditable() | |
927 @Experimental() // untriaged | |
928 num get playbackTime => | |
929 _blink.BlinkAudioProcessingEvent.instance.playbackTime_Getter_(this); | |
930 } | |
931 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
932 // for details. All rights reserved. Use of this source code is governed by a | |
933 // BSD-style license that can be found in the LICENSE file. | |
934 | |
935 // WARNING: Do not edit - generated code. | |
936 | |
937 @DocsEditable() | |
938 @DomName('AudioSourceNode') | |
939 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html | |
940 @Experimental() | |
941 class AudioSourceNode extends AudioNode { | |
942 // To suppress missing implicit constructor warnings. | |
943 factory AudioSourceNode._() { | |
944 throw new UnsupportedError("Not supported"); | |
945 } | |
946 | |
947 @Deprecated("Internal Use Only") | |
948 external static Type get instanceRuntimeType; | |
949 | |
950 @Deprecated("Internal Use Only") | |
951 AudioSourceNode.internal_() : super.internal_(); | |
952 } | |
953 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
954 // for details. All rights reserved. Use of this source code is governed by a | |
955 // BSD-style license that can be found in the LICENSE file. | |
956 | |
957 // WARNING: Do not edit - generated code. | |
958 | |
959 @DocsEditable() | |
960 @DomName('BiquadFilterNode') | |
961 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF
ilterNode-section | |
962 @Experimental() | |
963 class BiquadFilterNode extends AudioNode { | |
964 // To suppress missing implicit constructor warnings. | |
965 factory BiquadFilterNode._() { | |
966 throw new UnsupportedError("Not supported"); | |
967 } | |
968 | |
969 @Deprecated("Internal Use Only") | |
970 external static Type get instanceRuntimeType; | |
971 | |
972 @Deprecated("Internal Use Only") | |
973 BiquadFilterNode.internal_() : super.internal_(); | |
974 | |
975 @DomName('BiquadFilterNode.Q') | |
976 @DocsEditable() | |
977 AudioParam get Q => _blink.BlinkBiquadFilterNode.instance.Q_Getter_(this); | |
978 | |
979 @DomName('BiquadFilterNode.detune') | |
980 @DocsEditable() | |
981 AudioParam get detune => | |
982 _blink.BlinkBiquadFilterNode.instance.detune_Getter_(this); | |
983 | |
984 @DomName('BiquadFilterNode.frequency') | |
985 @DocsEditable() | |
986 AudioParam get frequency => | |
987 _blink.BlinkBiquadFilterNode.instance.frequency_Getter_(this); | |
988 | |
989 @DomName('BiquadFilterNode.gain') | |
990 @DocsEditable() | |
991 AudioParam get gain => | |
992 _blink.BlinkBiquadFilterNode.instance.gain_Getter_(this); | |
993 | |
994 @DomName('BiquadFilterNode.type') | |
995 @DocsEditable() | |
996 String get type => _blink.BlinkBiquadFilterNode.instance.type_Getter_(this); | |
997 | |
998 @DomName('BiquadFilterNode.type') | |
999 @DocsEditable() | |
1000 set type(String value) => | |
1001 _blink.BlinkBiquadFilterNode.instance.type_Setter_(this, value); | |
1002 | |
1003 @DomName('BiquadFilterNode.getFrequencyResponse') | |
1004 @DocsEditable() | |
1005 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, | |
1006 Float32List phaseResponse) => | |
1007 _blink.BlinkBiquadFilterNode.instance.getFrequencyResponse_Callback_3_( | |
1008 this, frequencyHz, magResponse, phaseResponse); | |
1009 } | |
1010 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1011 // for details. All rights reserved. Use of this source code is governed by a | |
1012 // BSD-style license that can be found in the LICENSE file. | |
1013 | |
1014 // WARNING: Do not edit - generated code. | |
1015 | |
1016 @DocsEditable() | |
1017 @DomName('ChannelMergerNode') | |
1018 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
MergerNode-section | |
1019 @Experimental() | |
1020 class ChannelMergerNode extends AudioNode { | |
1021 // To suppress missing implicit constructor warnings. | |
1022 factory ChannelMergerNode._() { | |
1023 throw new UnsupportedError("Not supported"); | |
1024 } | |
1025 | |
1026 @Deprecated("Internal Use Only") | |
1027 external static Type get instanceRuntimeType; | |
1028 | |
1029 @Deprecated("Internal Use Only") | |
1030 ChannelMergerNode.internal_() : super.internal_(); | |
1031 } | |
1032 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1033 // for details. All rights reserved. Use of this source code is governed by a | |
1034 // BSD-style license that can be found in the LICENSE file. | |
1035 | |
1036 // WARNING: Do not edit - generated code. | |
1037 | |
1038 @DocsEditable() | |
1039 @DomName('ChannelSplitterNode') | |
1040 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
SplitterNode-section | |
1041 @Experimental() | |
1042 class ChannelSplitterNode extends AudioNode { | |
1043 // To suppress missing implicit constructor warnings. | |
1044 factory ChannelSplitterNode._() { | |
1045 throw new UnsupportedError("Not supported"); | |
1046 } | |
1047 | |
1048 @Deprecated("Internal Use Only") | |
1049 external static Type get instanceRuntimeType; | |
1050 | |
1051 @Deprecated("Internal Use Only") | |
1052 ChannelSplitterNode.internal_() : super.internal_(); | |
1053 } | |
1054 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1055 // for details. All rights reserved. Use of this source code is governed by a | |
1056 // BSD-style license that can be found in the LICENSE file. | |
1057 | |
1058 // WARNING: Do not edit - generated code. | |
1059 | |
1060 @DocsEditable() | |
1061 @DomName('ConvolverNode') | |
1062 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv
erNode | |
1063 @Experimental() | |
1064 class ConvolverNode extends AudioNode { | |
1065 // To suppress missing implicit constructor warnings. | |
1066 factory ConvolverNode._() { | |
1067 throw new UnsupportedError("Not supported"); | |
1068 } | |
1069 | |
1070 @Deprecated("Internal Use Only") | |
1071 external static Type get instanceRuntimeType; | |
1072 | |
1073 @Deprecated("Internal Use Only") | |
1074 ConvolverNode.internal_() : super.internal_(); | |
1075 | |
1076 @DomName('ConvolverNode.buffer') | |
1077 @DocsEditable() | |
1078 AudioBuffer get buffer => | |
1079 _blink.BlinkConvolverNode.instance.buffer_Getter_(this); | |
1080 | |
1081 @DomName('ConvolverNode.buffer') | |
1082 @DocsEditable() | |
1083 set buffer(AudioBuffer value) => | |
1084 _blink.BlinkConvolverNode.instance.buffer_Setter_(this, value); | |
1085 | |
1086 @DomName('ConvolverNode.normalize') | |
1087 @DocsEditable() | |
1088 bool get normalize => | |
1089 _blink.BlinkConvolverNode.instance.normalize_Getter_(this); | |
1090 | |
1091 @DomName('ConvolverNode.normalize') | |
1092 @DocsEditable() | |
1093 set normalize(bool value) => | |
1094 _blink.BlinkConvolverNode.instance.normalize_Setter_(this, value); | |
1095 } | |
1096 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1097 // for details. All rights reserved. Use of this source code is governed by a | |
1098 // BSD-style license that can be found in the LICENSE file. | |
1099 | |
1100 // WARNING: Do not edit - generated code. | |
1101 | |
1102 @DocsEditable() | |
1103 @DomName('DelayNode') | |
1104 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo
de | |
1105 @Experimental() | |
1106 class DelayNode extends AudioNode { | |
1107 // To suppress missing implicit constructor warnings. | |
1108 factory DelayNode._() { | |
1109 throw new UnsupportedError("Not supported"); | |
1110 } | |
1111 | |
1112 @Deprecated("Internal Use Only") | |
1113 external static Type get instanceRuntimeType; | |
1114 | |
1115 @Deprecated("Internal Use Only") | |
1116 DelayNode.internal_() : super.internal_(); | |
1117 | |
1118 @DomName('DelayNode.delayTime') | |
1119 @DocsEditable() | |
1120 AudioParam get delayTime => | |
1121 _blink.BlinkDelayNode.instance.delayTime_Getter_(this); | |
1122 } | |
1123 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1124 // for details. All rights reserved. Use of this source code is governed by a | |
1125 // BSD-style license that can be found in the LICENSE file. | |
1126 | |
1127 // WARNING: Do not edit - generated code. | |
1128 | |
1129 @DocsEditable() | |
1130 @DomName('DynamicsCompressorNode') | |
1131 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic
sCompressorNode | |
1132 @Experimental() | |
1133 class DynamicsCompressorNode extends AudioNode { | |
1134 // To suppress missing implicit constructor warnings. | |
1135 factory DynamicsCompressorNode._() { | |
1136 throw new UnsupportedError("Not supported"); | |
1137 } | |
1138 | |
1139 @Deprecated("Internal Use Only") | |
1140 external static Type get instanceRuntimeType; | |
1141 | |
1142 @Deprecated("Internal Use Only") | |
1143 DynamicsCompressorNode.internal_() : super.internal_(); | |
1144 | |
1145 @DomName('DynamicsCompressorNode.attack') | |
1146 @DocsEditable() | |
1147 AudioParam get attack => | |
1148 _blink.BlinkDynamicsCompressorNode.instance.attack_Getter_(this); | |
1149 | |
1150 @DomName('DynamicsCompressorNode.knee') | |
1151 @DocsEditable() | |
1152 AudioParam get knee => | |
1153 _blink.BlinkDynamicsCompressorNode.instance.knee_Getter_(this); | |
1154 | |
1155 @DomName('DynamicsCompressorNode.ratio') | |
1156 @DocsEditable() | |
1157 AudioParam get ratio => | |
1158 _blink.BlinkDynamicsCompressorNode.instance.ratio_Getter_(this); | |
1159 | |
1160 @DomName('DynamicsCompressorNode.reduction') | |
1161 @DocsEditable() | |
1162 AudioParam get reduction => | |
1163 _blink.BlinkDynamicsCompressorNode.instance.reduction_Getter_(this); | |
1164 | |
1165 @DomName('DynamicsCompressorNode.release') | |
1166 @DocsEditable() | |
1167 AudioParam get release => | |
1168 _blink.BlinkDynamicsCompressorNode.instance.release_Getter_(this); | |
1169 | |
1170 @DomName('DynamicsCompressorNode.threshold') | |
1171 @DocsEditable() | |
1172 AudioParam get threshold => | |
1173 _blink.BlinkDynamicsCompressorNode.instance.threshold_Getter_(this); | |
1174 } | |
1175 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1176 // for details. All rights reserved. Use of this source code is governed by a | |
1177 // BSD-style license that can be found in the LICENSE file. | |
1178 | |
1179 // WARNING: Do not edit - generated code. | |
1180 | |
1181 @DocsEditable() | |
1182 @DomName('GainNode') | |
1183 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod
e | |
1184 @Experimental() | |
1185 class GainNode extends AudioNode { | |
1186 // To suppress missing implicit constructor warnings. | |
1187 factory GainNode._() { | |
1188 throw new UnsupportedError("Not supported"); | |
1189 } | |
1190 | |
1191 @Deprecated("Internal Use Only") | |
1192 external static Type get instanceRuntimeType; | |
1193 | |
1194 @Deprecated("Internal Use Only") | |
1195 GainNode.internal_() : super.internal_(); | |
1196 | |
1197 @DomName('GainNode.gain') | |
1198 @DocsEditable() | |
1199 AudioParam get gain => _blink.BlinkGainNode.instance.gain_Getter_(this); | |
1200 } | |
1201 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1202 // for details. All rights reserved. Use of this source code is governed by a | |
1203 // BSD-style license that can be found in the LICENSE file. | |
1204 | |
1205 // WARNING: Do not edit - generated code. | |
1206 | |
1207 @DocsEditable() | |
1208 @DomName('IIRFilterNode') | |
1209 @Experimental() // untriaged | |
1210 class IirFilterNode extends AudioNode { | |
1211 // To suppress missing implicit constructor warnings. | |
1212 factory IirFilterNode._() { | |
1213 throw new UnsupportedError("Not supported"); | |
1214 } | |
1215 | |
1216 @Deprecated("Internal Use Only") | |
1217 external static Type get instanceRuntimeType; | |
1218 | |
1219 @Deprecated("Internal Use Only") | |
1220 IirFilterNode.internal_() : super.internal_(); | |
1221 | |
1222 @DomName('IIRFilterNode.getFrequencyResponse') | |
1223 @DocsEditable() | |
1224 @Experimental() // untriaged | |
1225 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, | |
1226 Float32List phaseResponse) => | |
1227 _blink.BlinkIIRFilterNode.instance.getFrequencyResponse_Callback_3_( | |
1228 this, frequencyHz, magResponse, phaseResponse); | |
1229 } | |
1230 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1231 // for details. All rights reserved. Use of this source code is governed by a | |
1232 // BSD-style license that can be found in the LICENSE file. | |
1233 | |
1234 // WARNING: Do not edit - generated code. | |
1235 | |
1236 @DocsEditable() | |
1237 @DomName('MediaElementAudioSourceNode') | |
1238 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl
ementAudioSourceNode | |
1239 @Experimental() | |
1240 class MediaElementAudioSourceNode extends AudioSourceNode { | |
1241 // To suppress missing implicit constructor warnings. | |
1242 factory MediaElementAudioSourceNode._() { | |
1243 throw new UnsupportedError("Not supported"); | |
1244 } | |
1245 | |
1246 @Deprecated("Internal Use Only") | |
1247 external static Type get instanceRuntimeType; | |
1248 | |
1249 @Deprecated("Internal Use Only") | |
1250 MediaElementAudioSourceNode.internal_() : super.internal_(); | |
1251 | |
1252 @DomName('MediaElementAudioSourceNode.mediaElement') | |
1253 @DocsEditable() | |
1254 @Experimental() // non-standard | |
1255 MediaElement get mediaElement => | |
1256 _blink.BlinkMediaElementAudioSourceNode.instance | |
1257 .mediaElement_Getter_(this); | |
1258 } | |
1259 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1260 // for details. All rights reserved. Use of this source code is governed by a | |
1261 // BSD-style license that can be found in the LICENSE file. | |
1262 | |
1263 // WARNING: Do not edit - generated code. | |
1264 | |
1265 @DocsEditable() | |
1266 @DomName('MediaStreamAudioDestinationNode') | |
1267 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioDestinationNode | |
1268 @Experimental() | |
1269 class MediaStreamAudioDestinationNode extends AudioNode { | |
1270 // To suppress missing implicit constructor warnings. | |
1271 factory MediaStreamAudioDestinationNode._() { | |
1272 throw new UnsupportedError("Not supported"); | |
1273 } | |
1274 | |
1275 @Deprecated("Internal Use Only") | |
1276 external static Type get instanceRuntimeType; | |
1277 | |
1278 @Deprecated("Internal Use Only") | |
1279 MediaStreamAudioDestinationNode.internal_() : super.internal_(); | |
1280 | |
1281 @DomName('MediaStreamAudioDestinationNode.stream') | |
1282 @DocsEditable() | |
1283 MediaStream get stream => | |
1284 _blink.BlinkMediaStreamAudioDestinationNode.instance.stream_Getter_(this); | |
1285 } | |
1286 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1287 // for details. All rights reserved. Use of this source code is governed by a | |
1288 // BSD-style license that can be found in the LICENSE file. | |
1289 | |
1290 // WARNING: Do not edit - generated code. | |
1291 | |
1292 @DocsEditable() | |
1293 @DomName('MediaStreamAudioSourceNode') | |
1294 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioSourceNode | |
1295 @Experimental() | |
1296 class MediaStreamAudioSourceNode extends AudioSourceNode { | |
1297 // To suppress missing implicit constructor warnings. | |
1298 factory MediaStreamAudioSourceNode._() { | |
1299 throw new UnsupportedError("Not supported"); | |
1300 } | |
1301 | |
1302 @Deprecated("Internal Use Only") | |
1303 external static Type get instanceRuntimeType; | |
1304 | |
1305 @Deprecated("Internal Use Only") | |
1306 MediaStreamAudioSourceNode.internal_() : super.internal_(); | |
1307 | |
1308 @DomName('MediaStreamAudioSourceNode.mediaStream') | |
1309 @DocsEditable() | |
1310 MediaStream get mediaStream => | |
1311 _blink.BlinkMediaStreamAudioSourceNode.instance.mediaStream_Getter_(this); | |
1312 } | |
1313 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1314 // for details. All rights reserved. Use of this source code is governed by a | |
1315 // BSD-style license that can be found in the LICENSE file. | |
1316 | |
1317 // WARNING: Do not edit - generated code. | |
1318 | |
1319 @DocsEditable() | |
1320 @DomName('OfflineAudioCompletionEvent') | |
1321 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioCompletionEvent-section | |
1322 @Experimental() | |
1323 class OfflineAudioCompletionEvent extends Event { | |
1324 // To suppress missing implicit constructor warnings. | |
1325 factory OfflineAudioCompletionEvent._() { | |
1326 throw new UnsupportedError("Not supported"); | |
1327 } | |
1328 | |
1329 @Deprecated("Internal Use Only") | |
1330 external static Type get instanceRuntimeType; | |
1331 | |
1332 @Deprecated("Internal Use Only") | |
1333 OfflineAudioCompletionEvent.internal_() : super.internal_(); | |
1334 | |
1335 @DomName('OfflineAudioCompletionEvent.renderedBuffer') | |
1336 @DocsEditable() | |
1337 AudioBuffer get renderedBuffer => | |
1338 _blink.BlinkOfflineAudioCompletionEvent.instance | |
1339 .renderedBuffer_Getter_(this); | |
1340 } | |
1341 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1342 // for details. All rights reserved. Use of this source code is governed by a | |
1343 // BSD-style license that can be found in the LICENSE file. | |
1344 | |
1345 // WARNING: Do not edit - generated code. | |
1346 | |
1347 @DocsEditable() | |
1348 @DomName('OfflineAudioContext') | |
1349 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioContext-section | |
1350 @Experimental() | |
1351 class OfflineAudioContext extends AudioContext { | |
1352 // To suppress missing implicit constructor warnings. | |
1353 factory OfflineAudioContext._() { | |
1354 throw new UnsupportedError("Not supported"); | |
1355 } | |
1356 | |
1357 @DomName('OfflineAudioContext.OfflineAudioContext') | |
1358 @DocsEditable() | |
1359 factory OfflineAudioContext( | |
1360 int numberOfChannels, int numberOfFrames, num sampleRate) { | |
1361 return _blink.BlinkOfflineAudioContext.instance | |
1362 .constructorCallback_3_(numberOfChannels, numberOfFrames, sampleRate); | |
1363 } | |
1364 | |
1365 @Deprecated("Internal Use Only") | |
1366 external static Type get instanceRuntimeType; | |
1367 | |
1368 @Deprecated("Internal Use Only") | |
1369 OfflineAudioContext.internal_() : super.internal_(); | |
1370 | |
1371 @DomName('OfflineAudioContext.resume') | |
1372 @DocsEditable() | |
1373 @Experimental() // untriaged | |
1374 Future resume() => convertNativePromiseToDartFuture( | |
1375 _blink.BlinkOfflineAudioContext.instance.resume_Callback_0_(this)); | |
1376 | |
1377 @DomName('OfflineAudioContext.startRendering') | |
1378 @DocsEditable() | |
1379 @Experimental() // untriaged | |
1380 Future startRendering() => | |
1381 convertNativePromiseToDartFuture(_blink.BlinkOfflineAudioContext.instance | |
1382 .startRendering_Callback_0_(this)); | |
1383 | |
1384 @DomName('OfflineAudioContext.suspend') | |
1385 @DocsEditable() | |
1386 @Experimental() // untriaged | |
1387 Future suspendFor(num suspendTime) => | |
1388 convertNativePromiseToDartFuture(_blink.BlinkOfflineAudioContext.instance | |
1389 .suspend_Callback_1_(this, suspendTime)); | |
1390 } | |
1391 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1392 // for details. All rights reserved. Use of this source code is governed by a | |
1393 // BSD-style license that can be found in the LICENSE file. | |
1394 | |
1395 // WARNING: Do not edit - generated code. | |
1396 | |
1397 @DocsEditable() | |
1398 @DomName('OscillatorNode') | |
1399 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc
illatorNode | |
1400 @Experimental() | |
1401 class OscillatorNode extends AudioSourceNode { | |
1402 // To suppress missing implicit constructor warnings. | |
1403 factory OscillatorNode._() { | |
1404 throw new UnsupportedError("Not supported"); | |
1405 } | |
1406 | |
1407 /** | |
1408 * Static factory designed to expose `ended` events to event | |
1409 * handlers that are not necessarily instances of [OscillatorNode]. | |
1410 * | |
1411 * See [EventStreamProvider] for usage information. | |
1412 */ | |
1413 @DomName('OscillatorNode.endedEvent') | |
1414 @DocsEditable() | |
1415 @Experimental() // untriaged | |
1416 static const EventStreamProvider<Event> endedEvent = | |
1417 const EventStreamProvider<Event>('ended'); | |
1418 | |
1419 @Deprecated("Internal Use Only") | |
1420 external static Type get instanceRuntimeType; | |
1421 | |
1422 @Deprecated("Internal Use Only") | |
1423 OscillatorNode.internal_() : super.internal_(); | |
1424 | |
1425 @DomName('OscillatorNode.detune') | |
1426 @DocsEditable() | |
1427 AudioParam get detune => | |
1428 _blink.BlinkOscillatorNode.instance.detune_Getter_(this); | |
1429 | |
1430 @DomName('OscillatorNode.frequency') | |
1431 @DocsEditable() | |
1432 AudioParam get frequency => | |
1433 _blink.BlinkOscillatorNode.instance.frequency_Getter_(this); | |
1434 | |
1435 @DomName('OscillatorNode.type') | |
1436 @DocsEditable() | |
1437 String get type => _blink.BlinkOscillatorNode.instance.type_Getter_(this); | |
1438 | |
1439 @DomName('OscillatorNode.type') | |
1440 @DocsEditable() | |
1441 set type(String value) => | |
1442 _blink.BlinkOscillatorNode.instance.type_Setter_(this, value); | |
1443 | |
1444 @DomName('OscillatorNode.setPeriodicWave') | |
1445 @DocsEditable() | |
1446 @Experimental() // untriaged | |
1447 void setPeriodicWave(PeriodicWave periodicWave) => | |
1448 _blink.BlinkOscillatorNode.instance | |
1449 .setPeriodicWave_Callback_1_(this, periodicWave); | |
1450 | |
1451 void start([num when]) { | |
1452 if (when != null) { | |
1453 _blink.BlinkOscillatorNode.instance.start_Callback_1_(this, when); | |
1454 return; | |
1455 } | |
1456 _blink.BlinkOscillatorNode.instance.start_Callback_0_(this); | |
1457 return; | |
1458 } | |
1459 | |
1460 void stop([num when]) { | |
1461 if (when != null) { | |
1462 _blink.BlinkOscillatorNode.instance.stop_Callback_1_(this, when); | |
1463 return; | |
1464 } | |
1465 _blink.BlinkOscillatorNode.instance.stop_Callback_0_(this); | |
1466 return; | |
1467 } | |
1468 | |
1469 /// Stream of `ended` events handled by this [OscillatorNode]. | |
1470 @DomName('OscillatorNode.onended') | |
1471 @DocsEditable() | |
1472 @Experimental() // untriaged | |
1473 Stream<Event> get onEnded => endedEvent.forTarget(this); | |
1474 } | |
1475 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1476 // for details. All rights reserved. Use of this source code is governed by a | |
1477 // BSD-style license that can be found in the LICENSE file. | |
1478 | |
1479 // WARNING: Do not edit - generated code. | |
1480 | |
1481 @DocsEditable() | |
1482 @DomName('PannerNode') | |
1483 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN
ode | |
1484 @Experimental() | |
1485 class PannerNode extends AudioNode { | |
1486 // To suppress missing implicit constructor warnings. | |
1487 factory PannerNode._() { | |
1488 throw new UnsupportedError("Not supported"); | |
1489 } | |
1490 | |
1491 @Deprecated("Internal Use Only") | |
1492 external static Type get instanceRuntimeType; | |
1493 | |
1494 @Deprecated("Internal Use Only") | |
1495 PannerNode.internal_() : super.internal_(); | |
1496 | |
1497 @DomName('PannerNode.coneInnerAngle') | |
1498 @DocsEditable() | |
1499 num get coneInnerAngle => | |
1500 _blink.BlinkPannerNode.instance.coneInnerAngle_Getter_(this); | |
1501 | |
1502 @DomName('PannerNode.coneInnerAngle') | |
1503 @DocsEditable() | |
1504 set coneInnerAngle(num value) => | |
1505 _blink.BlinkPannerNode.instance.coneInnerAngle_Setter_(this, value); | |
1506 | |
1507 @DomName('PannerNode.coneOuterAngle') | |
1508 @DocsEditable() | |
1509 num get coneOuterAngle => | |
1510 _blink.BlinkPannerNode.instance.coneOuterAngle_Getter_(this); | |
1511 | |
1512 @DomName('PannerNode.coneOuterAngle') | |
1513 @DocsEditable() | |
1514 set coneOuterAngle(num value) => | |
1515 _blink.BlinkPannerNode.instance.coneOuterAngle_Setter_(this, value); | |
1516 | |
1517 @DomName('PannerNode.coneOuterGain') | |
1518 @DocsEditable() | |
1519 num get coneOuterGain => | |
1520 _blink.BlinkPannerNode.instance.coneOuterGain_Getter_(this); | |
1521 | |
1522 @DomName('PannerNode.coneOuterGain') | |
1523 @DocsEditable() | |
1524 set coneOuterGain(num value) => | |
1525 _blink.BlinkPannerNode.instance.coneOuterGain_Setter_(this, value); | |
1526 | |
1527 @DomName('PannerNode.distanceModel') | |
1528 @DocsEditable() | |
1529 String get distanceModel => | |
1530 _blink.BlinkPannerNode.instance.distanceModel_Getter_(this); | |
1531 | |
1532 @DomName('PannerNode.distanceModel') | |
1533 @DocsEditable() | |
1534 set distanceModel(String value) => | |
1535 _blink.BlinkPannerNode.instance.distanceModel_Setter_(this, value); | |
1536 | |
1537 @DomName('PannerNode.maxDistance') | |
1538 @DocsEditable() | |
1539 num get maxDistance => | |
1540 _blink.BlinkPannerNode.instance.maxDistance_Getter_(this); | |
1541 | |
1542 @DomName('PannerNode.maxDistance') | |
1543 @DocsEditable() | |
1544 set maxDistance(num value) => | |
1545 _blink.BlinkPannerNode.instance.maxDistance_Setter_(this, value); | |
1546 | |
1547 @DomName('PannerNode.panningModel') | |
1548 @DocsEditable() | |
1549 String get panningModel => | |
1550 _blink.BlinkPannerNode.instance.panningModel_Getter_(this); | |
1551 | |
1552 @DomName('PannerNode.panningModel') | |
1553 @DocsEditable() | |
1554 set panningModel(String value) => | |
1555 _blink.BlinkPannerNode.instance.panningModel_Setter_(this, value); | |
1556 | |
1557 @DomName('PannerNode.refDistance') | |
1558 @DocsEditable() | |
1559 num get refDistance => | |
1560 _blink.BlinkPannerNode.instance.refDistance_Getter_(this); | |
1561 | |
1562 @DomName('PannerNode.refDistance') | |
1563 @DocsEditable() | |
1564 set refDistance(num value) => | |
1565 _blink.BlinkPannerNode.instance.refDistance_Setter_(this, value); | |
1566 | |
1567 @DomName('PannerNode.rolloffFactor') | |
1568 @DocsEditable() | |
1569 num get rolloffFactor => | |
1570 _blink.BlinkPannerNode.instance.rolloffFactor_Getter_(this); | |
1571 | |
1572 @DomName('PannerNode.rolloffFactor') | |
1573 @DocsEditable() | |
1574 set rolloffFactor(num value) => | |
1575 _blink.BlinkPannerNode.instance.rolloffFactor_Setter_(this, value); | |
1576 | |
1577 @DomName('PannerNode.setOrientation') | |
1578 @DocsEditable() | |
1579 void setOrientation(num x, num y, num z) => | |
1580 _blink.BlinkPannerNode.instance.setOrientation_Callback_3_(this, x, y, z); | |
1581 | |
1582 @DomName('PannerNode.setPosition') | |
1583 @DocsEditable() | |
1584 void setPosition(num x, num y, num z) => | |
1585 _blink.BlinkPannerNode.instance.setPosition_Callback_3_(this, x, y, z); | |
1586 | |
1587 @DomName('PannerNode.setVelocity') | |
1588 @DocsEditable() | |
1589 void setVelocity(num x, num y, num z) => | |
1590 _blink.BlinkPannerNode.instance.setVelocity_Callback_3_(this, x, y, z); | |
1591 } | |
1592 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1593 // for details. All rights reserved. Use of this source code is governed by a | |
1594 // BSD-style license that can be found in the LICENSE file. | |
1595 | |
1596 // WARNING: Do not edit - generated code. | |
1597 | |
1598 @DocsEditable() | |
1599 @DomName('PeriodicWave') | |
1600 @Experimental() // untriaged | |
1601 class PeriodicWave extends DartHtmlDomObject { | |
1602 // To suppress missing implicit constructor warnings. | |
1603 factory PeriodicWave._() { | |
1604 throw new UnsupportedError("Not supported"); | |
1605 } | |
1606 | |
1607 @Deprecated("Internal Use Only") | |
1608 external static Type get instanceRuntimeType; | |
1609 | |
1610 @Deprecated("Internal Use Only") | |
1611 PeriodicWave.internal_() {} | |
1612 } | |
1613 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1614 // for details. All rights reserved. Use of this source code is governed by a | |
1615 // BSD-style license that can be found in the LICENSE file. | |
1616 | |
1617 // WARNING: Do not edit - generated code. | |
1618 | |
1619 @DocsEditable() | |
1620 @DomName('ScriptProcessorNode') | |
1621 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP
rocessorNode | |
1622 @Experimental() | |
1623 class ScriptProcessorNode extends AudioNode { | |
1624 // To suppress missing implicit constructor warnings. | |
1625 factory ScriptProcessorNode._() { | |
1626 throw new UnsupportedError("Not supported"); | |
1627 } | |
1628 | |
1629 /** | |
1630 * Static factory designed to expose `audioprocess` events to event | |
1631 * handlers that are not necessarily instances of [ScriptProcessorNode]. | |
1632 * | |
1633 * See [EventStreamProvider] for usage information. | |
1634 */ | |
1635 @DomName('ScriptProcessorNode.audioprocessEvent') | |
1636 @DocsEditable() | |
1637 @Experimental() // untriaged | |
1638 static const EventStreamProvider<AudioProcessingEvent> audioProcessEvent = | |
1639 const EventStreamProvider<AudioProcessingEvent>('audioprocess'); | |
1640 | |
1641 @Deprecated("Internal Use Only") | |
1642 external static Type get instanceRuntimeType; | |
1643 | |
1644 @Deprecated("Internal Use Only") | |
1645 ScriptProcessorNode.internal_() : super.internal_(); | |
1646 | |
1647 @DomName('ScriptProcessorNode.bufferSize') | |
1648 @DocsEditable() | |
1649 int get bufferSize => | |
1650 _blink.BlinkScriptProcessorNode.instance.bufferSize_Getter_(this); | |
1651 | |
1652 @DomName('ScriptProcessorNode.setEventListener') | |
1653 @DocsEditable() | |
1654 @Experimental() // untriaged | |
1655 void setEventListener(EventListener eventListener) => | |
1656 _blink.BlinkScriptProcessorNode.instance | |
1657 .setEventListener_Callback_1_(this, eventListener); | |
1658 | |
1659 /// Stream of `audioprocess` events handled by this [ScriptProcessorNode]. | |
1660 /** | |
1661 * Get a Stream that fires events when AudioProcessingEvents occur. | |
1662 * This particular stream is special in that it only allows one listener to a | |
1663 * given stream. Converting the returned Stream [asBroadcast] will likely ruin | |
1664 * the soft-real-time properties which which these events are fired and can | |
1665 * be processed. | |
1666 */ | |
1667 @DomName('ScriptProcessorNode.onaudioprocess') | |
1668 @DocsEditable() | |
1669 @Experimental() // untriaged | |
1670 Stream<AudioProcessingEvent> get onAudioProcess => | |
1671 audioProcessEvent.forTarget(this); | |
1672 } | |
1673 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1674 // for details. All rights reserved. Use of this source code is governed by a | |
1675 // BSD-style license that can be found in the LICENSE file. | |
1676 | |
1677 // WARNING: Do not edit - generated code. | |
1678 | |
1679 @DocsEditable() | |
1680 @DomName('StereoPannerNode') | |
1681 @Experimental() // untriaged | |
1682 class StereoPannerNode extends AudioNode { | |
1683 // To suppress missing implicit constructor warnings. | |
1684 factory StereoPannerNode._() { | |
1685 throw new UnsupportedError("Not supported"); | |
1686 } | |
1687 | |
1688 @Deprecated("Internal Use Only") | |
1689 external static Type get instanceRuntimeType; | |
1690 | |
1691 @Deprecated("Internal Use Only") | |
1692 StereoPannerNode.internal_() : super.internal_(); | |
1693 | |
1694 @DomName('StereoPannerNode.pan') | |
1695 @DocsEditable() | |
1696 @Experimental() // untriaged | |
1697 AudioParam get pan => _blink.BlinkStereoPannerNode.instance.pan_Getter_(this); | |
1698 } | |
1699 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
1700 // for details. All rights reserved. Use of this source code is governed by a | |
1701 // BSD-style license that can be found in the LICENSE file. | |
1702 | |
1703 // WARNING: Do not edit - generated code. | |
1704 | |
1705 @DocsEditable() | |
1706 @DomName('WaveShaperNode') | |
1707 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav
eShaperNode | |
1708 @Experimental() | |
1709 class WaveShaperNode extends AudioNode { | |
1710 // To suppress missing implicit constructor warnings. | |
1711 factory WaveShaperNode._() { | |
1712 throw new UnsupportedError("Not supported"); | |
1713 } | |
1714 | |
1715 @Deprecated("Internal Use Only") | |
1716 external static Type get instanceRuntimeType; | |
1717 | |
1718 @Deprecated("Internal Use Only") | |
1719 WaveShaperNode.internal_() : super.internal_(); | |
1720 | |
1721 @DomName('WaveShaperNode.curve') | |
1722 @DocsEditable() | |
1723 Float32List get curve => | |
1724 _blink.BlinkWaveShaperNode.instance.curve_Getter_(this); | |
1725 | |
1726 @DomName('WaveShaperNode.curve') | |
1727 @DocsEditable() | |
1728 set curve(Float32List value) => | |
1729 _blink.BlinkWaveShaperNode.instance.curve_Setter_(this, value); | |
1730 | |
1731 @DomName('WaveShaperNode.oversample') | |
1732 @DocsEditable() | |
1733 String get oversample => | |
1734 _blink.BlinkWaveShaperNode.instance.oversample_Getter_(this); | |
1735 | |
1736 @DomName('WaveShaperNode.oversample') | |
1737 @DocsEditable() | |
1738 set oversample(String value) => | |
1739 _blink.BlinkWaveShaperNode.instance.oversample_Setter_(this, value); | |
1740 } | |
OLD | NEW |