OLD | NEW |
1 /** | 1 /** |
2 * High-fidelity audio programming in the browser. | 2 * High-fidelity audio programming in the browser. |
3 */ | 3 */ |
4 library dart.dom.web_audio; | 4 library dart.dom.web_audio; |
5 | 5 |
6 import 'dart:async'; | 6 import 'dart:async'; |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 import 'dart:_internal'; | 8 import 'dart:_internal'; |
9 import 'dart:html'; | 9 import 'dart:html'; |
10 import 'dart:html_common'; | 10 import 'dart:html_common'; |
(...skipping 29 matching lines...) Expand all Loading... |
40 'GainNode': () => GainNode, | 40 'GainNode': () => GainNode, |
41 'MediaElementAudioSourceNode': () => MediaElementAudioSourceNode, | 41 'MediaElementAudioSourceNode': () => MediaElementAudioSourceNode, |
42 'MediaStreamAudioDestinationNode': () => MediaStreamAudioDestinationNode, | 42 'MediaStreamAudioDestinationNode': () => MediaStreamAudioDestinationNode, |
43 'MediaStreamAudioSourceNode': () => MediaStreamAudioSourceNode, | 43 'MediaStreamAudioSourceNode': () => MediaStreamAudioSourceNode, |
44 'OfflineAudioCompletionEvent': () => OfflineAudioCompletionEvent, | 44 'OfflineAudioCompletionEvent': () => OfflineAudioCompletionEvent, |
45 'OfflineAudioContext': () => OfflineAudioContext, | 45 'OfflineAudioContext': () => OfflineAudioContext, |
46 'OscillatorNode': () => OscillatorNode, | 46 'OscillatorNode': () => OscillatorNode, |
47 'PannerNode': () => PannerNode, | 47 'PannerNode': () => PannerNode, |
48 'PeriodicWave': () => PeriodicWave, | 48 'PeriodicWave': () => PeriodicWave, |
49 'ScriptProcessorNode': () => ScriptProcessorNode, | 49 'ScriptProcessorNode': () => ScriptProcessorNode, |
| 50 'StereoPannerNode': () => StereoPannerNode, |
50 'WaveShaperNode': () => WaveShaperNode, | 51 'WaveShaperNode': () => WaveShaperNode, |
51 | 52 |
52 }; | 53 }; |
53 | 54 |
54 // FIXME: Can we make this private? | 55 // FIXME: Can we make this private? |
55 @Deprecated("Internal Use Only") | 56 @Deprecated("Internal Use Only") |
56 final web_audioBlinkFunctionMap = { | 57 final web_audioBlinkFunctionMap = { |
57 'AnalyserNode': () => AnalyserNode.internalCreateAnalyserNode, | 58 'AnalyserNode': () => AnalyserNode.internalCreateAnalyserNode, |
58 'AudioBuffer': () => AudioBuffer.internalCreateAudioBuffer, | 59 'AudioBuffer': () => AudioBuffer.internalCreateAudioBuffer, |
59 'AudioBufferSourceNode': () => AudioBufferSourceNode.internalCreateAudioBuffer
SourceNode, | 60 'AudioBufferSourceNode': () => AudioBufferSourceNode.internalCreateAudioBuffer
SourceNode, |
(...skipping 13 matching lines...) Expand all Loading... |
73 'GainNode': () => GainNode.internalCreateGainNode, | 74 'GainNode': () => GainNode.internalCreateGainNode, |
74 'MediaElementAudioSourceNode': () => MediaElementAudioSourceNode.internalCreat
eMediaElementAudioSourceNode, | 75 'MediaElementAudioSourceNode': () => MediaElementAudioSourceNode.internalCreat
eMediaElementAudioSourceNode, |
75 'MediaStreamAudioDestinationNode': () => MediaStreamAudioDestinationNode.inter
nalCreateMediaStreamAudioDestinationNode, | 76 'MediaStreamAudioDestinationNode': () => MediaStreamAudioDestinationNode.inter
nalCreateMediaStreamAudioDestinationNode, |
76 'MediaStreamAudioSourceNode': () => MediaStreamAudioSourceNode.internalCreateM
ediaStreamAudioSourceNode, | 77 'MediaStreamAudioSourceNode': () => MediaStreamAudioSourceNode.internalCreateM
ediaStreamAudioSourceNode, |
77 'OfflineAudioCompletionEvent': () => OfflineAudioCompletionEvent.internalCreat
eOfflineAudioCompletionEvent, | 78 'OfflineAudioCompletionEvent': () => OfflineAudioCompletionEvent.internalCreat
eOfflineAudioCompletionEvent, |
78 'OfflineAudioContext': () => OfflineAudioContext.internalCreateOfflineAudioCon
text, | 79 'OfflineAudioContext': () => OfflineAudioContext.internalCreateOfflineAudioCon
text, |
79 'OscillatorNode': () => OscillatorNode.internalCreateOscillatorNode, | 80 'OscillatorNode': () => OscillatorNode.internalCreateOscillatorNode, |
80 'PannerNode': () => PannerNode.internalCreatePannerNode, | 81 'PannerNode': () => PannerNode.internalCreatePannerNode, |
81 'PeriodicWave': () => PeriodicWave.internalCreatePeriodicWave, | 82 'PeriodicWave': () => PeriodicWave.internalCreatePeriodicWave, |
82 'ScriptProcessorNode': () => ScriptProcessorNode.internalCreateScriptProcessor
Node, | 83 'ScriptProcessorNode': () => ScriptProcessorNode.internalCreateScriptProcessor
Node, |
| 84 'StereoPannerNode': () => StereoPannerNode.internalCreateStereoPannerNode, |
83 'WaveShaperNode': () => WaveShaperNode.internalCreateWaveShaperNode, | 85 'WaveShaperNode': () => WaveShaperNode.internalCreateWaveShaperNode, |
84 | 86 |
85 }; | 87 }; |
86 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 88 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
87 // for details. All rights reserved. Use of this source code is governed by a | 89 // for details. All rights reserved. Use of this source code is governed by a |
88 // BSD-style license that can be found in the LICENSE file. | 90 // BSD-style license that can be found in the LICENSE file. |
89 | 91 |
90 // WARNING: Do not edit - generated code. | 92 // WARNING: Do not edit - generated code. |
91 | 93 |
92 | 94 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 @DomName('AnalyserNode.smoothingTimeConstant') | 143 @DomName('AnalyserNode.smoothingTimeConstant') |
142 @DocsEditable() | 144 @DocsEditable() |
143 num get smoothingTimeConstant => _blink.BlinkAnalyserNode.instance.smoothingTi
meConstant_Getter_(unwrap_jso(this)); | 145 num get smoothingTimeConstant => _blink.BlinkAnalyserNode.instance.smoothingTi
meConstant_Getter_(unwrap_jso(this)); |
144 | 146 |
145 @DomName('AnalyserNode.smoothingTimeConstant') | 147 @DomName('AnalyserNode.smoothingTimeConstant') |
146 @DocsEditable() | 148 @DocsEditable() |
147 set smoothingTimeConstant(num value) => _blink.BlinkAnalyserNode.instance.smoo
thingTimeConstant_Setter_(unwrap_jso(this), value); | 149 set smoothingTimeConstant(num value) => _blink.BlinkAnalyserNode.instance.smoo
thingTimeConstant_Setter_(unwrap_jso(this), value); |
148 | 150 |
149 @DomName('AnalyserNode.getByteFrequencyData') | 151 @DomName('AnalyserNode.getByteFrequencyData') |
150 @DocsEditable() | 152 @DocsEditable() |
151 void getByteFrequencyData(Uint8List array) => _blink.BlinkAnalyserNode.instanc
e.getByteFrequencyData_Callback_1_(unwrap_jso(this), array); | 153 void getByteFrequencyData(Uint8List array) => _blink.BlinkAnalyserNode.instanc
e.getByteFrequencyData_Callback_1_(unwrap_jso(this), unwrap_jso(array)); |
152 | 154 |
153 @DomName('AnalyserNode.getByteTimeDomainData') | 155 @DomName('AnalyserNode.getByteTimeDomainData') |
154 @DocsEditable() | 156 @DocsEditable() |
155 void getByteTimeDomainData(Uint8List array) => _blink.BlinkAnalyserNode.instan
ce.getByteTimeDomainData_Callback_1_(unwrap_jso(this), array); | 157 void getByteTimeDomainData(Uint8List array) => _blink.BlinkAnalyserNode.instan
ce.getByteTimeDomainData_Callback_1_(unwrap_jso(this), unwrap_jso(array)); |
156 | 158 |
157 @DomName('AnalyserNode.getFloatFrequencyData') | 159 @DomName('AnalyserNode.getFloatFrequencyData') |
158 @DocsEditable() | 160 @DocsEditable() |
159 void getFloatFrequencyData(Float32List array) => _blink.BlinkAnalyserNode.inst
ance.getFloatFrequencyData_Callback_1_(unwrap_jso(this), array); | 161 void getFloatFrequencyData(Float32List array) => _blink.BlinkAnalyserNode.inst
ance.getFloatFrequencyData_Callback_1_(unwrap_jso(this), unwrap_jso(array)); |
160 | 162 |
161 @DomName('AnalyserNode.getFloatTimeDomainData') | 163 @DomName('AnalyserNode.getFloatTimeDomainData') |
162 @DocsEditable() | 164 @DocsEditable() |
163 @Experimental() // untriaged | 165 @Experimental() // untriaged |
164 void getFloatTimeDomainData(Float32List array) => _blink.BlinkAnalyserNode.ins
tance.getFloatTimeDomainData_Callback_1_(unwrap_jso(this), array); | 166 void getFloatTimeDomainData(Float32List array) => _blink.BlinkAnalyserNode.ins
tance.getFloatTimeDomainData_Callback_1_(unwrap_jso(this), unwrap_jso(array)); |
165 | 167 |
166 } | 168 } |
167 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 169 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
168 // for details. All rights reserved. Use of this source code is governed by a | 170 // for details. All rights reserved. Use of this source code is governed by a |
169 // BSD-style license that can be found in the LICENSE file. | 171 // BSD-style license that can be found in the LICENSE file. |
170 | 172 |
171 // WARNING: Do not edit - generated code. | 173 // WARNING: Do not edit - generated code. |
172 | 174 |
173 | 175 |
174 @DocsEditable() | 176 @DocsEditable() |
(...skipping 28 matching lines...) Expand all Loading... |
203 int get length => _blink.BlinkAudioBuffer.instance.length_Getter_(unwrap_jso(t
his)); | 205 int get length => _blink.BlinkAudioBuffer.instance.length_Getter_(unwrap_jso(t
his)); |
204 | 206 |
205 @DomName('AudioBuffer.numberOfChannels') | 207 @DomName('AudioBuffer.numberOfChannels') |
206 @DocsEditable() | 208 @DocsEditable() |
207 int get numberOfChannels => _blink.BlinkAudioBuffer.instance.numberOfChannels_
Getter_(unwrap_jso(this)); | 209 int get numberOfChannels => _blink.BlinkAudioBuffer.instance.numberOfChannels_
Getter_(unwrap_jso(this)); |
208 | 210 |
209 @DomName('AudioBuffer.sampleRate') | 211 @DomName('AudioBuffer.sampleRate') |
210 @DocsEditable() | 212 @DocsEditable() |
211 num get sampleRate => _blink.BlinkAudioBuffer.instance.sampleRate_Getter_(unwr
ap_jso(this)); | 213 num get sampleRate => _blink.BlinkAudioBuffer.instance.sampleRate_Getter_(unwr
ap_jso(this)); |
212 | 214 |
| 215 void copyFromChannel(Float32List destination, int channelNumber, [int startInC
hannel]) { |
| 216 if (startInChannel != null) { |
| 217 _blink.BlinkAudioBuffer.instance.copyFromChannel_Callback_3_(unwrap_jso(th
is), unwrap_jso(destination), channelNumber, startInChannel); |
| 218 return; |
| 219 } |
| 220 _blink.BlinkAudioBuffer.instance.copyFromChannel_Callback_2_(unwrap_jso(this
), unwrap_jso(destination), channelNumber); |
| 221 return; |
| 222 } |
| 223 |
| 224 void copyToChannel(Float32List source, int channelNumber, [int startInChannel]
) { |
| 225 if (startInChannel != null) { |
| 226 _blink.BlinkAudioBuffer.instance.copyToChannel_Callback_3_(unwrap_jso(this
), unwrap_jso(source), channelNumber, startInChannel); |
| 227 return; |
| 228 } |
| 229 _blink.BlinkAudioBuffer.instance.copyToChannel_Callback_2_(unwrap_jso(this),
unwrap_jso(source), channelNumber); |
| 230 return; |
| 231 } |
| 232 |
213 @DomName('AudioBuffer.getChannelData') | 233 @DomName('AudioBuffer.getChannelData') |
214 @DocsEditable() | 234 @DocsEditable() |
215 Float32List getChannelData(int channelIndex) => _blink.BlinkAudioBuffer.instan
ce.getChannelData_Callback_1_(unwrap_jso(this), channelIndex); | 235 Float32List getChannelData(int channelIndex) => wrap_jso(_blink.BlinkAudioBuff
er.instance.getChannelData_Callback_1_(unwrap_jso(this), channelIndex)); |
216 | 236 |
217 } | 237 } |
218 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 238 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
219 // for details. All rights reserved. Use of this source code is governed by a | 239 // for details. All rights reserved. Use of this source code is governed by a |
220 // BSD-style license that can be found in the LICENSE file. | 240 // BSD-style license that can be found in the LICENSE file. |
221 | 241 |
222 // WARNING: Do not edit - generated code. | 242 // WARNING: Do not edit - generated code. |
223 | 243 |
224 | 244 |
225 @DomName('AudioBufferCallback') | 245 @DomName('AudioBufferCallback') |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 287 |
268 | 288 |
269 @DomName('AudioBufferSourceNode.buffer') | 289 @DomName('AudioBufferSourceNode.buffer') |
270 @DocsEditable() | 290 @DocsEditable() |
271 AudioBuffer get buffer => wrap_jso(_blink.BlinkAudioBufferSourceNode.instance.
buffer_Getter_(unwrap_jso(this))); | 291 AudioBuffer get buffer => wrap_jso(_blink.BlinkAudioBufferSourceNode.instance.
buffer_Getter_(unwrap_jso(this))); |
272 | 292 |
273 @DomName('AudioBufferSourceNode.buffer') | 293 @DomName('AudioBufferSourceNode.buffer') |
274 @DocsEditable() | 294 @DocsEditable() |
275 set buffer(AudioBuffer value) => _blink.BlinkAudioBufferSourceNode.instance.bu
ffer_Setter_(unwrap_jso(this), unwrap_jso(value)); | 295 set buffer(AudioBuffer value) => _blink.BlinkAudioBufferSourceNode.instance.bu
ffer_Setter_(unwrap_jso(this), unwrap_jso(value)); |
276 | 296 |
| 297 @DomName('AudioBufferSourceNode.detune') |
| 298 @DocsEditable() |
| 299 @Experimental() // untriaged |
| 300 AudioParam get detune => wrap_jso(_blink.BlinkAudioBufferSourceNode.instance.d
etune_Getter_(unwrap_jso(this))); |
| 301 |
277 @DomName('AudioBufferSourceNode.loop') | 302 @DomName('AudioBufferSourceNode.loop') |
278 @DocsEditable() | 303 @DocsEditable() |
279 bool get loop => _blink.BlinkAudioBufferSourceNode.instance.loop_Getter_(unwra
p_jso(this)); | 304 bool get loop => _blink.BlinkAudioBufferSourceNode.instance.loop_Getter_(unwra
p_jso(this)); |
280 | 305 |
281 @DomName('AudioBufferSourceNode.loop') | 306 @DomName('AudioBufferSourceNode.loop') |
282 @DocsEditable() | 307 @DocsEditable() |
283 set loop(bool value) => _blink.BlinkAudioBufferSourceNode.instance.loop_Setter
_(unwrap_jso(this), value); | 308 set loop(bool value) => _blink.BlinkAudioBufferSourceNode.instance.loop_Setter
_(unwrap_jso(this), value); |
284 | 309 |
285 @DomName('AudioBufferSourceNode.loopEnd') | 310 @DomName('AudioBufferSourceNode.loopEnd') |
286 @DocsEditable() | 311 @DocsEditable() |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 | 367 |
343 @DomName('AudioContext') | 368 @DomName('AudioContext') |
344 @SupportedBrowser(SupportedBrowser.CHROME) | 369 @SupportedBrowser(SupportedBrowser.CHROME) |
345 @SupportedBrowser(SupportedBrowser.FIREFOX) | 370 @SupportedBrowser(SupportedBrowser.FIREFOX) |
346 @Experimental() | 371 @Experimental() |
347 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo
ntext-section | 372 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo
ntext-section |
348 class AudioContext extends EventTarget { | 373 class AudioContext extends EventTarget { |
349 // To suppress missing implicit constructor warnings. | 374 // To suppress missing implicit constructor warnings. |
350 factory AudioContext._() { throw new UnsupportedError("Not supported"); } | 375 factory AudioContext._() { throw new UnsupportedError("Not supported"); } |
351 | 376 |
352 /** | |
353 * Static factory designed to expose `complete` events to event | |
354 * handlers that are not necessarily instances of [AudioContext]. | |
355 * | |
356 * See [EventStreamProvider] for usage information. | |
357 */ | |
358 @DomName('AudioContext.completeEvent') | |
359 @DocsEditable() | |
360 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); | |
361 | |
362 @DomName('AudioContext.AudioContext') | 377 @DomName('AudioContext.AudioContext') |
363 @DocsEditable() | 378 @DocsEditable() |
364 factory AudioContext() { | 379 factory AudioContext() { |
365 return wrap_jso(_blink.BlinkAudioContext.instance.constructorCallback_0_()); | 380 return wrap_jso(_blink.BlinkAudioContext.instance.constructorCallback_0_()); |
366 } | 381 } |
367 | 382 |
368 | 383 |
369 @Deprecated("Internal Use Only") | 384 @Deprecated("Internal Use Only") |
370 static AudioContext internalCreateAudioContext() { | 385 static AudioContext internalCreateAudioContext() { |
371 return new AudioContext._internalWrap(); | 386 return new AudioContext._internalWrap(); |
(...skipping 17 matching lines...) Expand all Loading... |
389 AudioDestinationNode get destination => wrap_jso(_blink.BlinkAudioContext.inst
ance.destination_Getter_(unwrap_jso(this))); | 404 AudioDestinationNode get destination => wrap_jso(_blink.BlinkAudioContext.inst
ance.destination_Getter_(unwrap_jso(this))); |
390 | 405 |
391 @DomName('AudioContext.listener') | 406 @DomName('AudioContext.listener') |
392 @DocsEditable() | 407 @DocsEditable() |
393 AudioListener get listener => wrap_jso(_blink.BlinkAudioContext.instance.liste
ner_Getter_(unwrap_jso(this))); | 408 AudioListener get listener => wrap_jso(_blink.BlinkAudioContext.instance.liste
ner_Getter_(unwrap_jso(this))); |
394 | 409 |
395 @DomName('AudioContext.sampleRate') | 410 @DomName('AudioContext.sampleRate') |
396 @DocsEditable() | 411 @DocsEditable() |
397 num get sampleRate => _blink.BlinkAudioContext.instance.sampleRate_Getter_(unw
rap_jso(this)); | 412 num get sampleRate => _blink.BlinkAudioContext.instance.sampleRate_Getter_(unw
rap_jso(this)); |
398 | 413 |
| 414 @DomName('AudioContext.state') |
| 415 @DocsEditable() |
| 416 @Experimental() // untriaged |
| 417 String get state => _blink.BlinkAudioContext.instance.state_Getter_(unwrap_jso
(this)); |
| 418 |
| 419 @DomName('AudioContext.close') |
| 420 @DocsEditable() |
| 421 @Experimental() // untriaged |
| 422 Future close() => wrap_jso(_blink.BlinkAudioContext.instance.close_Callback_0_
(unwrap_jso(this))); |
| 423 |
399 @DomName('AudioContext.createAnalyser') | 424 @DomName('AudioContext.createAnalyser') |
400 @DocsEditable() | 425 @DocsEditable() |
401 AnalyserNode createAnalyser() => wrap_jso(_blink.BlinkAudioContext.instance.cr
eateAnalyser_Callback_0_(unwrap_jso(this))); | 426 AnalyserNode createAnalyser() => wrap_jso(_blink.BlinkAudioContext.instance.cr
eateAnalyser_Callback_0_(unwrap_jso(this))); |
402 | 427 |
403 @DomName('AudioContext.createBiquadFilter') | 428 @DomName('AudioContext.createBiquadFilter') |
404 @DocsEditable() | 429 @DocsEditable() |
405 BiquadFilterNode createBiquadFilter() => wrap_jso(_blink.BlinkAudioContext.ins
tance.createBiquadFilter_Callback_0_(unwrap_jso(this))); | 430 BiquadFilterNode createBiquadFilter() => wrap_jso(_blink.BlinkAudioContext.ins
tance.createBiquadFilter_Callback_0_(unwrap_jso(this))); |
406 | 431 |
407 @DomName('AudioContext.createBuffer') | 432 @DomName('AudioContext.createBuffer') |
408 @DocsEditable() | 433 @DocsEditable() |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 @DocsEditable() | 486 @DocsEditable() |
462 OscillatorNode createOscillator() => wrap_jso(_blink.BlinkAudioContext.instanc
e.createOscillator_Callback_0_(unwrap_jso(this))); | 487 OscillatorNode createOscillator() => wrap_jso(_blink.BlinkAudioContext.instanc
e.createOscillator_Callback_0_(unwrap_jso(this))); |
463 | 488 |
464 @DomName('AudioContext.createPanner') | 489 @DomName('AudioContext.createPanner') |
465 @DocsEditable() | 490 @DocsEditable() |
466 PannerNode createPanner() => wrap_jso(_blink.BlinkAudioContext.instance.create
Panner_Callback_0_(unwrap_jso(this))); | 491 PannerNode createPanner() => wrap_jso(_blink.BlinkAudioContext.instance.create
Panner_Callback_0_(unwrap_jso(this))); |
467 | 492 |
468 @DomName('AudioContext.createPeriodicWave') | 493 @DomName('AudioContext.createPeriodicWave') |
469 @DocsEditable() | 494 @DocsEditable() |
470 @Experimental() // untriaged | 495 @Experimental() // untriaged |
471 PeriodicWave createPeriodicWave(Float32List real, Float32List imag) => wrap_js
o(_blink.BlinkAudioContext.instance.createPeriodicWave_Callback_2_(unwrap_jso(th
is), real, imag)); | 496 PeriodicWave createPeriodicWave(Float32List real, Float32List imag) => wrap_js
o(_blink.BlinkAudioContext.instance.createPeriodicWave_Callback_2_(unwrap_jso(th
is), unwrap_jso(real), unwrap_jso(imag))); |
472 | 497 |
473 ScriptProcessorNode createScriptProcessor([int bufferSize, int numberOfInputCh
annels, int numberOfOutputChannels]) { | 498 ScriptProcessorNode createScriptProcessor([int bufferSize, int numberOfInputCh
annels, int numberOfOutputChannels]) { |
474 if (numberOfOutputChannels != null) { | 499 if (numberOfOutputChannels != null) { |
475 return wrap_jso(_blink.BlinkAudioContext.instance.createScriptProcessor_Ca
llback_3_(unwrap_jso(this), bufferSize, numberOfInputChannels, numberOfOutputCha
nnels)); | 500 return wrap_jso(_blink.BlinkAudioContext.instance.createScriptProcessor_Ca
llback_3_(unwrap_jso(this), bufferSize, numberOfInputChannels, numberOfOutputCha
nnels)); |
476 } | 501 } |
477 if (numberOfInputChannels != null) { | 502 if (numberOfInputChannels != null) { |
478 return wrap_jso(_blink.BlinkAudioContext.instance.createScriptProcessor_Ca
llback_2_(unwrap_jso(this), bufferSize, numberOfInputChannels)); | 503 return wrap_jso(_blink.BlinkAudioContext.instance.createScriptProcessor_Ca
llback_2_(unwrap_jso(this), bufferSize, numberOfInputChannels)); |
479 } | 504 } |
480 if (bufferSize != null) { | 505 if (bufferSize != null) { |
481 return wrap_jso(_blink.BlinkAudioContext.instance.createScriptProcessor_Ca
llback_1_(unwrap_jso(this), bufferSize)); | 506 return wrap_jso(_blink.BlinkAudioContext.instance.createScriptProcessor_Ca
llback_1_(unwrap_jso(this), bufferSize)); |
482 } | 507 } |
483 return wrap_jso(_blink.BlinkAudioContext.instance.createScriptProcessor_Call
back_0_(unwrap_jso(this))); | 508 return wrap_jso(_blink.BlinkAudioContext.instance.createScriptProcessor_Call
back_0_(unwrap_jso(this))); |
484 } | 509 } |
485 | 510 |
| 511 @DomName('AudioContext.createStereoPanner') |
| 512 @DocsEditable() |
| 513 @Experimental() // untriaged |
| 514 StereoPannerNode createStereoPanner() => wrap_jso(_blink.BlinkAudioContext.ins
tance.createStereoPanner_Callback_0_(unwrap_jso(this))); |
| 515 |
486 @DomName('AudioContext.createWaveShaper') | 516 @DomName('AudioContext.createWaveShaper') |
487 @DocsEditable() | 517 @DocsEditable() |
488 WaveShaperNode createWaveShaper() => wrap_jso(_blink.BlinkAudioContext.instanc
e.createWaveShaper_Callback_0_(unwrap_jso(this))); | 518 WaveShaperNode createWaveShaper() => wrap_jso(_blink.BlinkAudioContext.instanc
e.createWaveShaper_Callback_0_(unwrap_jso(this))); |
489 | 519 |
490 @DomName('AudioContext.decodeAudioData') | 520 void _decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) { |
| 521 if (errorCallback != null) { |
| 522 _blink.BlinkAudioContext.instance.decodeAudioData_Callback_3_(unwrap_jso(t
his), unwrap_jso(audioData), unwrap_jso((audioBuffer) => successCallback(wrap_js
o(audioBuffer))), unwrap_jso((audioBuffer) => errorCallback(wrap_jso(audioBuffer
)))); |
| 523 return; |
| 524 } |
| 525 _blink.BlinkAudioContext.instance.decodeAudioData_Callback_2_(unwrap_jso(thi
s), unwrap_jso(audioData), unwrap_jso((audioBuffer) => successCallback(wrap_jso(
audioBuffer)))); |
| 526 return; |
| 527 } |
| 528 |
| 529 @DomName('AudioContext.resume') |
491 @DocsEditable() | 530 @DocsEditable() |
492 void _decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) => _blink.BlinkAudioContext.instance.dec
odeAudioData_Callback_3_(unwrap_jso(this), audioData, unwrap_jso((audioBuffer) =
> successCallback(wrap_jso(audioBuffer))), unwrap_jso((audioBuffer) => errorCall
back(wrap_jso(audioBuffer)))); | 531 @Experimental() // untriaged |
| 532 Future resume() => wrap_jso(_blink.BlinkAudioContext.instance.resume_Callback_
0_(unwrap_jso(this))); |
493 | 533 |
494 @DomName('AudioContext.startRendering') | 534 @DomName('AudioContext.suspend') |
495 @DocsEditable() | 535 @DocsEditable() |
496 void startRendering() => _blink.BlinkAudioContext.instance.startRendering_Call
back_0_(unwrap_jso(this)); | 536 @Experimental() // untriaged |
| 537 Future suspend() => wrap_jso(_blink.BlinkAudioContext.instance.suspend_Callbac
k_0_(unwrap_jso(this))); |
497 | 538 |
498 /// Stream of `complete` events handled by this [AudioContext]. | |
499 @DomName('AudioContext.oncomplete') | |
500 @DocsEditable() | |
501 Stream<Event> get onComplete => completeEvent.forTarget(this); | |
502 | |
503 @DomName('AudioContext.decodeAudioData') | 539 @DomName('AudioContext.decodeAudioData') |
504 Future<AudioBuffer> decodeAudioData(ByteBuffer audioData) { | 540 Future<AudioBuffer> decodeAudioData(ByteBuffer audioData) { |
505 var completer = new Completer<AudioBuffer>(); | 541 var completer = new Completer<AudioBuffer>(); |
506 _decodeAudioData(audioData, | 542 _decodeAudioData(audioData, |
507 (value) { completer.complete(value); }, | 543 (value) { completer.complete(value); }, |
508 (error) { | 544 (error) { |
509 if (error == null) { | 545 if (error == null) { |
510 completer.completeError(''); | 546 completer.completeError(''); |
511 } else { | 547 } else { |
512 completer.completeError(error); | 548 completer.completeError(error); |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
659 AudioContext get context => wrap_jso(_blink.BlinkAudioNode.instance.context_Ge
tter_(unwrap_jso(this))); | 695 AudioContext get context => wrap_jso(_blink.BlinkAudioNode.instance.context_Ge
tter_(unwrap_jso(this))); |
660 | 696 |
661 @DomName('AudioNode.numberOfInputs') | 697 @DomName('AudioNode.numberOfInputs') |
662 @DocsEditable() | 698 @DocsEditable() |
663 int get numberOfInputs => _blink.BlinkAudioNode.instance.numberOfInputs_Getter
_(unwrap_jso(this)); | 699 int get numberOfInputs => _blink.BlinkAudioNode.instance.numberOfInputs_Getter
_(unwrap_jso(this)); |
664 | 700 |
665 @DomName('AudioNode.numberOfOutputs') | 701 @DomName('AudioNode.numberOfOutputs') |
666 @DocsEditable() | 702 @DocsEditable() |
667 int get numberOfOutputs => _blink.BlinkAudioNode.instance.numberOfOutputs_Gett
er_(unwrap_jso(this)); | 703 int get numberOfOutputs => _blink.BlinkAudioNode.instance.numberOfOutputs_Gett
er_(unwrap_jso(this)); |
668 | 704 |
669 void _connect(destination, int output, [int input]) { | 705 void _connect(destination, [int output, int input]) { |
670 if ((input is int || input == null) && (output is int || output == null) &&
(destination is AudioNode || destination == null)) { | 706 if ((destination is AudioNode) && output == null && input == null) { |
| 707 _blink.BlinkAudioNode.instance.connect_Callback_1_(unwrap_jso(this), unwra
p_jso(destination)); |
| 708 return; |
| 709 } |
| 710 if ((output is int || output == null) && (destination is AudioNode) && input
== null) { |
| 711 _blink.BlinkAudioNode.instance.connect_Callback_2_(unwrap_jso(this), unwra
p_jso(destination), output); |
| 712 return; |
| 713 } |
| 714 if ((input is int || input == null) && (output is int || output == null) &&
(destination is AudioNode)) { |
671 _blink.BlinkAudioNode.instance.connect_Callback_3_(unwrap_jso(this), unwra
p_jso(destination), output, input); | 715 _blink.BlinkAudioNode.instance.connect_Callback_3_(unwrap_jso(this), unwra
p_jso(destination), output, input); |
672 return; | 716 return; |
673 } | 717 } |
674 if ((output is int || output == null) && (destination is AudioParam || desti
nation == null) && input == null) { | 718 if ((destination is AudioParam) && output == null && input == null) { |
| 719 _blink.BlinkAudioNode.instance.connect_Callback_1_(unwrap_jso(this), unwra
p_jso(destination)); |
| 720 return; |
| 721 } |
| 722 if ((output is int || output == null) && (destination is AudioParam) && inpu
t == null) { |
675 _blink.BlinkAudioNode.instance.connect_Callback_2_(unwrap_jso(this), unwra
p_jso(destination), output); | 723 _blink.BlinkAudioNode.instance.connect_Callback_2_(unwrap_jso(this), unwra
p_jso(destination), output); |
676 return; | 724 return; |
677 } | 725 } |
678 throw new ArgumentError("Incorrect number or type of arguments"); | 726 throw new ArgumentError("Incorrect number or type of arguments"); |
679 } | 727 } |
680 | 728 |
681 @DomName('AudioNode.disconnect') | 729 void disconnect([destination_OR_output, int output, int input]) { |
682 @DocsEditable() | 730 if (destination_OR_output == null && output == null && input == null) { |
683 void disconnect(int output) => _blink.BlinkAudioNode.instance.disconnect_Callb
ack_1_(unwrap_jso(this), output); | 731 _blink.BlinkAudioNode.instance.disconnect_Callback_0_(unwrap_jso(this)); |
684 | 732 return; |
| 733 } |
| 734 if ((destination_OR_output is int) && output == null && input == null) { |
| 735 _blink.BlinkAudioNode.instance.disconnect_Callback_1_(unwrap_jso(this), un
wrap_jso(destination_OR_output)); |
| 736 return; |
| 737 } |
| 738 if ((destination_OR_output is AudioNode) && output == null && input == null)
{ |
| 739 _blink.BlinkAudioNode.instance.disconnect_Callback_1_(unwrap_jso(this), un
wrap_jso(destination_OR_output)); |
| 740 return; |
| 741 } |
| 742 if ((output is int) && (destination_OR_output is AudioNode) && input == null
) { |
| 743 _blink.BlinkAudioNode.instance.disconnect_Callback_2_(unwrap_jso(this), un
wrap_jso(destination_OR_output), output); |
| 744 return; |
| 745 } |
| 746 if ((input is int) && (output is int) && (destination_OR_output is AudioNode
)) { |
| 747 _blink.BlinkAudioNode.instance.disconnect_Callback_3_(unwrap_jso(this), un
wrap_jso(destination_OR_output), output, input); |
| 748 return; |
| 749 } |
| 750 if ((destination_OR_output is AudioParam) && output == null && input == null
) { |
| 751 _blink.BlinkAudioNode.instance.disconnect_Callback_1_(unwrap_jso(this), un
wrap_jso(destination_OR_output)); |
| 752 return; |
| 753 } |
| 754 if ((output is int) && (destination_OR_output is AudioParam) && input == nul
l) { |
| 755 _blink.BlinkAudioNode.instance.disconnect_Callback_2_(unwrap_jso(this), un
wrap_jso(destination_OR_output), output); |
| 756 return; |
| 757 } |
| 758 throw new ArgumentError("Incorrect number or type of arguments"); |
| 759 } |
| 760 |
685 @DomName('AudioNode.connect') | 761 @DomName('AudioNode.connect') |
686 void connectNode(AudioNode destination, [int output = 0, int input = 0]) => | 762 void connectNode(AudioNode destination, [int output = 0, int input = 0]) => |
687 _connect(destination, output, input); | 763 _connect(destination, output, input); |
688 | 764 |
689 @DomName('AudioNode.connect') | 765 @DomName('AudioNode.connect') |
690 void connectParam(AudioParam destination, [int output = 0]) => | 766 void connectParam(AudioParam destination, [int output = 0]) => |
691 _connect(destination, output); | 767 _connect(destination, output); |
692 } | 768 } |
693 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 769 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
694 // for details. All rights reserved. Use of this source code is governed by a | 770 // for details. All rights reserved. Use of this source code is governed by a |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 @DomName('AudioParam.setTargetAtTime') | 823 @DomName('AudioParam.setTargetAtTime') |
748 @DocsEditable() | 824 @DocsEditable() |
749 void setTargetAtTime(num target, num time, num timeConstant) => _blink.BlinkAu
dioParam.instance.setTargetAtTime_Callback_3_(unwrap_jso(this), target, time, ti
meConstant); | 825 void setTargetAtTime(num target, num time, num timeConstant) => _blink.BlinkAu
dioParam.instance.setTargetAtTime_Callback_3_(unwrap_jso(this), target, time, ti
meConstant); |
750 | 826 |
751 @DomName('AudioParam.setValueAtTime') | 827 @DomName('AudioParam.setValueAtTime') |
752 @DocsEditable() | 828 @DocsEditable() |
753 void setValueAtTime(num value, num time) => _blink.BlinkAudioParam.instance.se
tValueAtTime_Callback_2_(unwrap_jso(this), value, time); | 829 void setValueAtTime(num value, num time) => _blink.BlinkAudioParam.instance.se
tValueAtTime_Callback_2_(unwrap_jso(this), value, time); |
754 | 830 |
755 @DomName('AudioParam.setValueCurveAtTime') | 831 @DomName('AudioParam.setValueCurveAtTime') |
756 @DocsEditable() | 832 @DocsEditable() |
757 void setValueCurveAtTime(Float32List values, num time, num duration) => _blink
.BlinkAudioParam.instance.setValueCurveAtTime_Callback_3_(unwrap_jso(this), valu
es, time, duration); | 833 void setValueCurveAtTime(Float32List values, num time, num duration) => _blink
.BlinkAudioParam.instance.setValueCurveAtTime_Callback_3_(unwrap_jso(this), unwr
ap_jso(values), time, duration); |
758 | 834 |
759 } | 835 } |
760 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 836 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
761 // for details. All rights reserved. Use of this source code is governed by a | 837 // for details. All rights reserved. Use of this source code is governed by a |
762 // BSD-style license that can be found in the LICENSE file. | 838 // BSD-style license that can be found in the LICENSE file. |
763 | 839 |
764 // WARNING: Do not edit - generated code. | 840 // WARNING: Do not edit - generated code. |
765 | 841 |
766 | 842 |
767 @DocsEditable() | 843 @DocsEditable() |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 @DomName('BiquadFilterNode.type') | 948 @DomName('BiquadFilterNode.type') |
873 @DocsEditable() | 949 @DocsEditable() |
874 String get type => _blink.BlinkBiquadFilterNode.instance.type_Getter_(unwrap_j
so(this)); | 950 String get type => _blink.BlinkBiquadFilterNode.instance.type_Getter_(unwrap_j
so(this)); |
875 | 951 |
876 @DomName('BiquadFilterNode.type') | 952 @DomName('BiquadFilterNode.type') |
877 @DocsEditable() | 953 @DocsEditable() |
878 set type(String value) => _blink.BlinkBiquadFilterNode.instance.type_Setter_(u
nwrap_jso(this), value); | 954 set type(String value) => _blink.BlinkBiquadFilterNode.instance.type_Setter_(u
nwrap_jso(this), value); |
879 | 955 |
880 @DomName('BiquadFilterNode.getFrequencyResponse') | 956 @DomName('BiquadFilterNode.getFrequencyResponse') |
881 @DocsEditable() | 957 @DocsEditable() |
882 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl
oat32List phaseResponse) => _blink.BlinkBiquadFilterNode.instance.getFrequencyRe
sponse_Callback_3_(unwrap_jso(this), frequencyHz, magResponse, phaseResponse); | 958 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl
oat32List phaseResponse) => _blink.BlinkBiquadFilterNode.instance.getFrequencyRe
sponse_Callback_3_(unwrap_jso(this), unwrap_jso(frequencyHz), unwrap_jso(magResp
onse), unwrap_jso(phaseResponse)); |
883 | 959 |
884 } | 960 } |
885 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 961 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
886 // for details. All rights reserved. Use of this source code is governed by a | 962 // for details. All rights reserved. Use of this source code is governed by a |
887 // BSD-style license that can be found in the LICENSE file. | 963 // BSD-style license that can be found in the LICENSE file. |
888 | 964 |
889 // WARNING: Do not edit - generated code. | 965 // WARNING: Do not edit - generated code. |
890 | 966 |
891 | 967 |
892 @DocsEditable() | 968 @DocsEditable() |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1253 static OfflineAudioContext internalCreateOfflineAudioContext() { | 1329 static OfflineAudioContext internalCreateOfflineAudioContext() { |
1254 return new OfflineAudioContext._internalWrap(); | 1330 return new OfflineAudioContext._internalWrap(); |
1255 } | 1331 } |
1256 | 1332 |
1257 external factory OfflineAudioContext._internalWrap(); | 1333 external factory OfflineAudioContext._internalWrap(); |
1258 | 1334 |
1259 @Deprecated("Internal Use Only") | 1335 @Deprecated("Internal Use Only") |
1260 OfflineAudioContext.internal_() : super.internal_(); | 1336 OfflineAudioContext.internal_() : super.internal_(); |
1261 | 1337 |
1262 | 1338 |
| 1339 @DomName('OfflineAudioContext.startRendering') |
| 1340 @DocsEditable() |
| 1341 @Experimental() // untriaged |
| 1342 Future startRendering() => wrap_jso(_blink.BlinkOfflineAudioContext.instance.s
tartRendering_Callback_0_(unwrap_jso(this))); |
| 1343 |
1263 } | 1344 } |
1264 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1345 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1265 // for details. All rights reserved. Use of this source code is governed by a | 1346 // for details. All rights reserved. Use of this source code is governed by a |
1266 // BSD-style license that can be found in the LICENSE file. | 1347 // BSD-style license that can be found in the LICENSE file. |
1267 | 1348 |
1268 // WARNING: Do not edit - generated code. | 1349 // WARNING: Do not edit - generated code. |
1269 | 1350 |
1270 | 1351 |
1271 @DocsEditable() | 1352 @DocsEditable() |
1272 @DomName('OscillatorNode') | 1353 @DomName('OscillatorNode') |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1308 AudioParam get frequency => wrap_jso(_blink.BlinkOscillatorNode.instance.frequ
ency_Getter_(unwrap_jso(this))); | 1389 AudioParam get frequency => wrap_jso(_blink.BlinkOscillatorNode.instance.frequ
ency_Getter_(unwrap_jso(this))); |
1309 | 1390 |
1310 @DomName('OscillatorNode.type') | 1391 @DomName('OscillatorNode.type') |
1311 @DocsEditable() | 1392 @DocsEditable() |
1312 String get type => _blink.BlinkOscillatorNode.instance.type_Getter_(unwrap_jso
(this)); | 1393 String get type => _blink.BlinkOscillatorNode.instance.type_Getter_(unwrap_jso
(this)); |
1313 | 1394 |
1314 @DomName('OscillatorNode.type') | 1395 @DomName('OscillatorNode.type') |
1315 @DocsEditable() | 1396 @DocsEditable() |
1316 set type(String value) => _blink.BlinkOscillatorNode.instance.type_Setter_(unw
rap_jso(this), value); | 1397 set type(String value) => _blink.BlinkOscillatorNode.instance.type_Setter_(unw
rap_jso(this), value); |
1317 | 1398 |
1318 @DomName('OscillatorNode.noteOff') | |
1319 @DocsEditable() | |
1320 void noteOff(num when) => _blink.BlinkOscillatorNode.instance.noteOff_Callback
_1_(unwrap_jso(this), when); | |
1321 | |
1322 @DomName('OscillatorNode.noteOn') | |
1323 @DocsEditable() | |
1324 void noteOn(num when) => _blink.BlinkOscillatorNode.instance.noteOn_Callback_1
_(unwrap_jso(this), when); | |
1325 | |
1326 @DomName('OscillatorNode.setPeriodicWave') | 1399 @DomName('OscillatorNode.setPeriodicWave') |
1327 @DocsEditable() | 1400 @DocsEditable() |
1328 @Experimental() // untriaged | 1401 @Experimental() // untriaged |
1329 void setPeriodicWave(PeriodicWave periodicWave) => _blink.BlinkOscillatorNode.
instance.setPeriodicWave_Callback_1_(unwrap_jso(this), unwrap_jso(periodicWave))
; | 1402 void setPeriodicWave(PeriodicWave periodicWave) => _blink.BlinkOscillatorNode.
instance.setPeriodicWave_Callback_1_(unwrap_jso(this), unwrap_jso(periodicWave))
; |
1330 | 1403 |
1331 void start([num when]) { | 1404 void start([num when]) { |
1332 if (when != null) { | 1405 if (when != null) { |
1333 _blink.BlinkOscillatorNode.instance.start_Callback_1_(unwrap_jso(this), wh
en); | 1406 _blink.BlinkOscillatorNode.instance.start_Callback_1_(unwrap_jso(this), wh
en); |
1334 return; | 1407 return; |
1335 } | 1408 } |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1549 | 1622 |
1550 } | 1623 } |
1551 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1624 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1552 // for details. All rights reserved. Use of this source code is governed by a | 1625 // for details. All rights reserved. Use of this source code is governed by a |
1553 // BSD-style license that can be found in the LICENSE file. | 1626 // BSD-style license that can be found in the LICENSE file. |
1554 | 1627 |
1555 // WARNING: Do not edit - generated code. | 1628 // WARNING: Do not edit - generated code. |
1556 | 1629 |
1557 | 1630 |
1558 @DocsEditable() | 1631 @DocsEditable() |
| 1632 @DomName('StereoPannerNode') |
| 1633 @Experimental() // untriaged |
| 1634 class StereoPannerNode extends AudioNode { |
| 1635 // To suppress missing implicit constructor warnings. |
| 1636 factory StereoPannerNode._() { throw new UnsupportedError("Not supported"); } |
| 1637 |
| 1638 |
| 1639 @Deprecated("Internal Use Only") |
| 1640 static StereoPannerNode internalCreateStereoPannerNode() { |
| 1641 return new StereoPannerNode._internalWrap(); |
| 1642 } |
| 1643 |
| 1644 external factory StereoPannerNode._internalWrap(); |
| 1645 |
| 1646 @Deprecated("Internal Use Only") |
| 1647 StereoPannerNode.internal_() : super.internal_(); |
| 1648 |
| 1649 |
| 1650 @DomName('StereoPannerNode.pan') |
| 1651 @DocsEditable() |
| 1652 @Experimental() // untriaged |
| 1653 AudioParam get pan => wrap_jso(_blink.BlinkStereoPannerNode.instance.pan_Gette
r_(unwrap_jso(this))); |
| 1654 |
| 1655 } |
| 1656 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1657 // for details. All rights reserved. Use of this source code is governed by a |
| 1658 // BSD-style license that can be found in the LICENSE file. |
| 1659 |
| 1660 // WARNING: Do not edit - generated code. |
| 1661 |
| 1662 |
| 1663 @DocsEditable() |
1559 @DomName('WaveShaperNode') | 1664 @DomName('WaveShaperNode') |
1560 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav
eShaperNode | 1665 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav
eShaperNode |
1561 @Experimental() | 1666 @Experimental() |
1562 class WaveShaperNode extends AudioNode { | 1667 class WaveShaperNode extends AudioNode { |
1563 // To suppress missing implicit constructor warnings. | 1668 // To suppress missing implicit constructor warnings. |
1564 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } | 1669 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } |
1565 | 1670 |
1566 | 1671 |
1567 @Deprecated("Internal Use Only") | 1672 @Deprecated("Internal Use Only") |
1568 static WaveShaperNode internalCreateWaveShaperNode() { | 1673 static WaveShaperNode internalCreateWaveShaperNode() { |
1569 return new WaveShaperNode._internalWrap(); | 1674 return new WaveShaperNode._internalWrap(); |
1570 } | 1675 } |
1571 | 1676 |
1572 external factory WaveShaperNode._internalWrap(); | 1677 external factory WaveShaperNode._internalWrap(); |
1573 | 1678 |
1574 @Deprecated("Internal Use Only") | 1679 @Deprecated("Internal Use Only") |
1575 WaveShaperNode.internal_() : super.internal_(); | 1680 WaveShaperNode.internal_() : super.internal_(); |
1576 | 1681 |
1577 | 1682 |
1578 @DomName('WaveShaperNode.curve') | 1683 @DomName('WaveShaperNode.curve') |
1579 @DocsEditable() | 1684 @DocsEditable() |
1580 Float32List get curve => _blink.BlinkWaveShaperNode.instance.curve_Getter_(unw
rap_jso(this)); | 1685 Float32List get curve => wrap_jso(_blink.BlinkWaveShaperNode.instance.curve_Ge
tter_(unwrap_jso(this))); |
1581 | 1686 |
1582 @DomName('WaveShaperNode.curve') | 1687 @DomName('WaveShaperNode.curve') |
1583 @DocsEditable() | 1688 @DocsEditable() |
1584 set curve(Float32List value) => _blink.BlinkWaveShaperNode.instance.curve_Sett
er_(unwrap_jso(this), unwrap_jso(value)); | 1689 set curve(Float32List value) => _blink.BlinkWaveShaperNode.instance.curve_Sett
er_(unwrap_jso(this), unwrap_jso(value)); |
1585 | 1690 |
1586 @DomName('WaveShaperNode.oversample') | 1691 @DomName('WaveShaperNode.oversample') |
1587 @DocsEditable() | 1692 @DocsEditable() |
1588 String get oversample => _blink.BlinkWaveShaperNode.instance.oversample_Getter
_(unwrap_jso(this)); | 1693 String get oversample => _blink.BlinkWaveShaperNode.instance.oversample_Getter
_(unwrap_jso(this)); |
1589 | 1694 |
1590 @DomName('WaveShaperNode.oversample') | 1695 @DomName('WaveShaperNode.oversample') |
1591 @DocsEditable() | 1696 @DocsEditable() |
1592 set oversample(String value) => _blink.BlinkWaveShaperNode.instance.oversample
_Setter_(unwrap_jso(this), value); | 1697 set oversample(String value) => _blink.BlinkWaveShaperNode.instance.oversample
_Setter_(unwrap_jso(this), value); |
1593 | 1698 |
1594 } | 1699 } |
OLD | NEW |