| OLD | NEW |
| 1 library dart.dom.web_audio; | 1 library dart.dom.web_audio; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'dart:_collection-dev'; | 5 import 'dart:_collection-dev'; |
| 6 import 'dart:html'; | 6 import 'dart:html'; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:typed_data'; | 8 import 'dart:typed_data'; |
| 9 import 'dart:_js_helper' show Creates, Returns, convertDartClosureToJS; | 9 import 'dart:_js_helper' show Creates, Returns, convertDartClosureToJS; |
| 10 import 'dart:_foreign_helper' show JS; | 10 import 'dart:_foreign_helper' show JS; |
| 11 import 'dart:_interceptors' show Interceptor; | 11 import 'dart:_interceptors' show Interceptor; |
| 12 // DO NOT EDIT - unless you are editing documentation as per: | 12 // DO NOT EDIT - unless you are editing documentation as per: |
| 13 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation | 13 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation |
| 14 // Auto-generated dart:audio library. | 14 // Auto-generated dart:audio library. |
| 15 | 15 |
| 16 | 16 |
| 17 | 17 |
| 18 | 18 |
| 19 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20 // for details. All rights reserved. Use of this source code is governed by a | 20 // for details. All rights reserved. Use of this source code is governed by a |
| 21 // BSD-style license that can be found in the LICENSE file. | 21 // BSD-style license that can be found in the LICENSE file. |
| 22 | 22 |
| 23 | 23 |
| 24 @DocsEditable | 24 @DocsEditable |
| 25 @DomName('AnalyserNode') | 25 @DomName('AnalyserNode') |
| 26 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Analyse
rNode |
| 27 @Experimental |
| 26 class AnalyserNode extends AudioNode native "AnalyserNode" { | 28 class AnalyserNode extends AudioNode native "AnalyserNode" { |
| 27 | 29 |
| 28 @DomName('AnalyserNode.fftSize') | 30 @DomName('AnalyserNode.fftSize') |
| 29 @DocsEditable | 31 @DocsEditable |
| 30 int fftSize; | 32 int fftSize; |
| 31 | 33 |
| 32 @DomName('AnalyserNode.frequencyBinCount') | 34 @DomName('AnalyserNode.frequencyBinCount') |
| 33 @DocsEditable | 35 @DocsEditable |
| 34 final int frequencyBinCount; | 36 final int frequencyBinCount; |
| 35 | 37 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 57 @DocsEditable | 59 @DocsEditable |
| 58 void getFloatFrequencyData(Float32List array) native; | 60 void getFloatFrequencyData(Float32List array) native; |
| 59 } | 61 } |
| 60 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 62 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 61 // for details. All rights reserved. Use of this source code is governed by a | 63 // for details. All rights reserved. Use of this source code is governed by a |
| 62 // BSD-style license that can be found in the LICENSE file. | 64 // BSD-style license that can be found in the LICENSE file. |
| 63 | 65 |
| 64 | 66 |
| 65 @DocsEditable | 67 @DocsEditable |
| 66 @DomName('AudioBuffer') | 68 @DomName('AudioBuffer') |
| 69 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section |
| 70 @Experimental |
| 67 class AudioBuffer native "AudioBuffer" { | 71 class AudioBuffer native "AudioBuffer" { |
| 68 | 72 |
| 69 @DomName('AudioBuffer.duration') | 73 @DomName('AudioBuffer.duration') |
| 70 @DocsEditable | 74 @DocsEditable |
| 71 final num duration; | 75 final num duration; |
| 72 | 76 |
| 73 @DomName('AudioBuffer.gain') | 77 @DomName('AudioBuffer.gain') |
| 74 @DocsEditable | 78 @DocsEditable |
| 75 num gain; | 79 num gain; |
| 76 | 80 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 90 @DocsEditable | 94 @DocsEditable |
| 91 Float32List getChannelData(int channelIndex) native; | 95 Float32List getChannelData(int channelIndex) native; |
| 92 } | 96 } |
| 93 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 97 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 94 // for details. All rights reserved. Use of this source code is governed by a | 98 // for details. All rights reserved. Use of this source code is governed by a |
| 95 // BSD-style license that can be found in the LICENSE file. | 99 // BSD-style license that can be found in the LICENSE file. |
| 96 | 100 |
| 97 // WARNING: Do not edit - generated code. | 101 // WARNING: Do not edit - generated code. |
| 98 | 102 |
| 99 | 103 |
| 104 @DomName('AudioBufferCallback') |
| 105 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section |
| 106 @Experimental |
| 100 typedef void AudioBufferCallback(AudioBuffer audioBuffer); | 107 typedef void AudioBufferCallback(AudioBuffer audioBuffer); |
| 101 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 108 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 102 // for details. All rights reserved. Use of this source code is governed by a | 109 // for details. All rights reserved. Use of this source code is governed by a |
| 103 // BSD-style license that can be found in the LICENSE file. | 110 // BSD-style license that can be found in the LICENSE file. |
| 104 | 111 |
| 105 | 112 |
| 106 @DomName('AudioBufferSourceNode') | 113 @DomName('AudioBufferSourceNode') |
| 114 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
fferSourceNode-section |
| 115 @Experimental |
| 107 class AudioBufferSourceNode extends AudioSourceNode native "AudioBufferSourceNod
e" { | 116 class AudioBufferSourceNode extends AudioSourceNode native "AudioBufferSourceNod
e" { |
| 108 | 117 |
| 109 // TODO(efortuna): Remove these methods when Chrome stable also uses start | 118 // TODO(efortuna): Remove these methods when Chrome stable also uses start |
| 110 // instead of noteOn. | 119 // instead of noteOn. |
| 111 void start(num when, [num grainOffset, num grainDuration]) { | 120 void start(num when, [num grainOffset, num grainDuration]) { |
| 112 if (JS('bool', '!!#.start', this)) { | 121 if (JS('bool', '!!#.start', this)) { |
| 113 if (grainDuration != null) { | 122 if (grainDuration != null) { |
| 114 JS('void', '#.start(#, #, #)', this, when, grainOffset, grainDuration); | 123 JS('void', '#.start(#, #, #)', this, when, grainOffset, grainDuration); |
| 115 } else if (grainOffset != null) { | 124 } else if (grainOffset != null) { |
| 116 JS('void', '#.start(#, #)', this, when, grainOffset); | 125 JS('void', '#.start(#, #)', this, when, grainOffset); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 @DomName('AudioBufferSourceNode.playbackRate') | 184 @DomName('AudioBufferSourceNode.playbackRate') |
| 176 @DocsEditable | 185 @DocsEditable |
| 177 final AudioParam playbackRate; | 186 final AudioParam playbackRate; |
| 178 | 187 |
| 179 @DomName('AudioBufferSourceNode.playbackState') | 188 @DomName('AudioBufferSourceNode.playbackState') |
| 180 @DocsEditable | 189 @DocsEditable |
| 181 final int playbackState; | 190 final int playbackState; |
| 182 | 191 |
| 183 @DomName('AudioBufferSourceNode.noteGrainOn') | 192 @DomName('AudioBufferSourceNode.noteGrainOn') |
| 184 @DocsEditable | 193 @DocsEditable |
| 194 @Experimental // untriaged |
| 185 void noteGrainOn(num when, num grainOffset, num grainDuration) native; | 195 void noteGrainOn(num when, num grainOffset, num grainDuration) native; |
| 186 | 196 |
| 187 @DomName('AudioBufferSourceNode.noteOff') | 197 @DomName('AudioBufferSourceNode.noteOff') |
| 188 @DocsEditable | 198 @DocsEditable |
| 199 @Experimental // untriaged |
| 189 void noteOff(num when) native; | 200 void noteOff(num when) native; |
| 190 | 201 |
| 191 @DomName('AudioBufferSourceNode.noteOn') | 202 @DomName('AudioBufferSourceNode.noteOn') |
| 192 @DocsEditable | 203 @DocsEditable |
| 204 @Experimental // untriaged |
| 193 void noteOn(num when) native; | 205 void noteOn(num when) native; |
| 194 | 206 |
| 195 } | 207 } |
| 196 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 208 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 197 // for details. All rights reserved. Use of this source code is governed by a | 209 // for details. All rights reserved. Use of this source code is governed by a |
| 198 // BSD-style license that can be found in the LICENSE file. | 210 // BSD-style license that can be found in the LICENSE file. |
| 199 | 211 |
| 200 | 212 |
| 201 @DomName('AudioContext') | 213 @DomName('AudioContext') |
| 214 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo
ntext-section |
| 215 @Experimental |
| 202 class AudioContext extends EventTarget native "AudioContext" { | 216 class AudioContext extends EventTarget native "AudioContext" { |
| 203 | 217 |
| 204 @DomName('AudioContext.completeEvent') | 218 @DomName('AudioContext.completeEvent') |
| 205 @DocsEditable | 219 @DocsEditable |
| 206 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); | 220 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); |
| 207 | 221 |
| 208 /// Checks if this type is supported on the current platform. | 222 /// Checks if this type is supported on the current platform. |
| 209 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk
itAudioContext)'); | 223 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk
itAudioContext)'); |
| 210 | 224 |
| 211 @DomName('AudioContext.activeSourceCount') | 225 @DomName('AudioContext.activeSourceCount') |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 @DomName('AudioContext.createConvolver') | 269 @DomName('AudioContext.createConvolver') |
| 256 @DocsEditable | 270 @DocsEditable |
| 257 ConvolverNode createConvolver() native; | 271 ConvolverNode createConvolver() native; |
| 258 | 272 |
| 259 @DomName('AudioContext.createDelay') | 273 @DomName('AudioContext.createDelay') |
| 260 @DocsEditable | 274 @DocsEditable |
| 261 DelayNode createDelay([num maxDelayTime]) native; | 275 DelayNode createDelay([num maxDelayTime]) native; |
| 262 | 276 |
| 263 @DomName('AudioContext.createDelayNode') | 277 @DomName('AudioContext.createDelayNode') |
| 264 @DocsEditable | 278 @DocsEditable |
| 279 @Experimental // untriaged |
| 265 DelayNode createDelayNode([num maxDelayTime]) native; | 280 DelayNode createDelayNode([num maxDelayTime]) native; |
| 266 | 281 |
| 267 @DomName('AudioContext.createDynamicsCompressor') | 282 @DomName('AudioContext.createDynamicsCompressor') |
| 268 @DocsEditable | 283 @DocsEditable |
| 269 DynamicsCompressorNode createDynamicsCompressor() native; | 284 DynamicsCompressorNode createDynamicsCompressor() native; |
| 270 | 285 |
| 271 @DomName('AudioContext.createGainNode') | 286 @DomName('AudioContext.createGainNode') |
| 272 @DocsEditable | 287 @DocsEditable |
| 288 @Experimental // untriaged |
| 273 GainNode createGainNode() native; | 289 GainNode createGainNode() native; |
| 274 | 290 |
| 275 @DomName('AudioContext.createJavaScriptNode') | 291 @DomName('AudioContext.createJavaScriptNode') |
| 276 @DocsEditable | 292 @DocsEditable |
| 293 @Experimental // untriaged |
| 277 ScriptProcessorNode createJavaScriptNode(int bufferSize, [int numberOfInputCha
nnels, int numberOfOutputChannels]) native; | 294 ScriptProcessorNode createJavaScriptNode(int bufferSize, [int numberOfInputCha
nnels, int numberOfOutputChannels]) native; |
| 278 | 295 |
| 279 @DomName('AudioContext.createMediaElementSource') | 296 @DomName('AudioContext.createMediaElementSource') |
| 280 @DocsEditable | 297 @DocsEditable |
| 281 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native; | 298 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native; |
| 282 | 299 |
| 283 @DomName('AudioContext.createMediaStreamDestination') | 300 @DomName('AudioContext.createMediaStreamDestination') |
| 284 @DocsEditable | 301 @DocsEditable |
| 285 MediaStreamAudioDestinationNode createMediaStreamDestination() native; | 302 MediaStreamAudioDestinationNode createMediaStreamDestination() native; |
| 286 | 303 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 } | 360 } |
| 344 } | 361 } |
| 345 } | 362 } |
| 346 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 363 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 347 // for details. All rights reserved. Use of this source code is governed by a | 364 // for details. All rights reserved. Use of this source code is governed by a |
| 348 // BSD-style license that can be found in the LICENSE file. | 365 // BSD-style license that can be found in the LICENSE file. |
| 349 | 366 |
| 350 | 367 |
| 351 @DocsEditable | 368 @DocsEditable |
| 352 @DomName('AudioDestinationNode') | 369 @DomName('AudioDestinationNode') |
| 370 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe
stinationNode-section |
| 371 @Experimental |
| 353 class AudioDestinationNode extends AudioNode native "AudioDestinationNode" { | 372 class AudioDestinationNode extends AudioNode native "AudioDestinationNode" { |
| 354 | 373 |
| 355 @DomName('AudioDestinationNode.maxChannelCount') | 374 @DomName('AudioDestinationNode.maxChannelCount') |
| 356 @DocsEditable | 375 @DocsEditable |
| 357 final int maxChannelCount; | 376 final int maxChannelCount; |
| 358 } | 377 } |
| 359 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 378 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 360 // for details. All rights reserved. Use of this source code is governed by a | 379 // for details. All rights reserved. Use of this source code is governed by a |
| 361 // BSD-style license that can be found in the LICENSE file. | 380 // BSD-style license that can be found in the LICENSE file. |
| 362 | 381 |
| 363 | 382 |
| 364 @DocsEditable | 383 @DocsEditable |
| 365 @DomName('AudioListener') | 384 @DomName('AudioListener') |
| 385 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi
stener-section |
| 386 @Experimental |
| 366 class AudioListener native "AudioListener" { | 387 class AudioListener native "AudioListener" { |
| 367 | 388 |
| 368 @DomName('AudioListener.dopplerFactor') | 389 @DomName('AudioListener.dopplerFactor') |
| 369 @DocsEditable | 390 @DocsEditable |
| 370 num dopplerFactor; | 391 num dopplerFactor; |
| 371 | 392 |
| 372 @DomName('AudioListener.speedOfSound') | 393 @DomName('AudioListener.speedOfSound') |
| 373 @DocsEditable | 394 @DocsEditable |
| 374 num speedOfSound; | 395 num speedOfSound; |
| 375 | 396 |
| 376 @DomName('AudioListener.setOrientation') | 397 @DomName('AudioListener.setOrientation') |
| 377 @DocsEditable | 398 @DocsEditable |
| 378 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; | 399 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; |
| 379 | 400 |
| 380 @DomName('AudioListener.setPosition') | 401 @DomName('AudioListener.setPosition') |
| 381 @DocsEditable | 402 @DocsEditable |
| 382 void setPosition(num x, num y, num z) native; | 403 void setPosition(num x, num y, num z) native; |
| 383 | 404 |
| 384 @DomName('AudioListener.setVelocity') | 405 @DomName('AudioListener.setVelocity') |
| 385 @DocsEditable | 406 @DocsEditable |
| 386 void setVelocity(num x, num y, num z) native; | 407 void setVelocity(num x, num y, num z) native; |
| 387 } | 408 } |
| 388 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 409 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 389 // for details. All rights reserved. Use of this source code is governed by a | 410 // for details. All rights reserved. Use of this source code is governed by a |
| 390 // BSD-style license that can be found in the LICENSE file. | 411 // BSD-style license that can be found in the LICENSE file. |
| 391 | 412 |
| 392 | 413 |
| 393 @DocsEditable | 414 @DocsEditable |
| 394 @DomName('AudioNode') | 415 @DomName('AudioNode') |
| 416 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo
de-section |
| 417 @Experimental |
| 395 class AudioNode native "AudioNode" { | 418 class AudioNode native "AudioNode" { |
| 396 | 419 |
| 397 @DomName('AudioNode.channelCount') | 420 @DomName('AudioNode.channelCount') |
| 398 @DocsEditable | 421 @DocsEditable |
| 399 int channelCount; | 422 int channelCount; |
| 400 | 423 |
| 401 @DomName('AudioNode.channelCountMode') | 424 @DomName('AudioNode.channelCountMode') |
| 402 @DocsEditable | 425 @DocsEditable |
| 403 String channelCountMode; | 426 String channelCountMode; |
| 404 | 427 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 426 @DocsEditable | 449 @DocsEditable |
| 427 void disconnect(int output) native; | 450 void disconnect(int output) native; |
| 428 } | 451 } |
| 429 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 452 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 430 // for details. All rights reserved. Use of this source code is governed by a | 453 // for details. All rights reserved. Use of this source code is governed by a |
| 431 // BSD-style license that can be found in the LICENSE file. | 454 // BSD-style license that can be found in the LICENSE file. |
| 432 | 455 |
| 433 | 456 |
| 434 @DocsEditable | 457 @DocsEditable |
| 435 @DomName('AudioParam') | 458 @DomName('AudioParam') |
| 459 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa
ram |
| 460 @Experimental |
| 436 class AudioParam native "AudioParam" { | 461 class AudioParam native "AudioParam" { |
| 437 | 462 |
| 438 @DomName('AudioParam.defaultValue') | 463 @DomName('AudioParam.defaultValue') |
| 439 @DocsEditable | 464 @DocsEditable |
| 440 final num defaultValue; | 465 final num defaultValue; |
| 441 | 466 |
| 442 @DomName('AudioParam.maxValue') | 467 @DomName('AudioParam.maxValue') |
| 443 @DocsEditable | 468 @DocsEditable |
| 444 final num maxValue; | 469 final num maxValue; |
| 445 | 470 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 470 @DomName('AudioParam.linearRampToValueAtTime') | 495 @DomName('AudioParam.linearRampToValueAtTime') |
| 471 @DocsEditable | 496 @DocsEditable |
| 472 void linearRampToValueAtTime(num value, num time) native; | 497 void linearRampToValueAtTime(num value, num time) native; |
| 473 | 498 |
| 474 @DomName('AudioParam.setTargetAtTime') | 499 @DomName('AudioParam.setTargetAtTime') |
| 475 @DocsEditable | 500 @DocsEditable |
| 476 void setTargetAtTime(num target, num time, num timeConstant) native; | 501 void setTargetAtTime(num target, num time, num timeConstant) native; |
| 477 | 502 |
| 478 @DomName('AudioParam.setTargetValueAtTime') | 503 @DomName('AudioParam.setTargetValueAtTime') |
| 479 @DocsEditable | 504 @DocsEditable |
| 505 @Experimental // untriaged |
| 480 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native; | 506 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native; |
| 481 | 507 |
| 482 @DomName('AudioParam.setValueAtTime') | 508 @DomName('AudioParam.setValueAtTime') |
| 483 @DocsEditable | 509 @DocsEditable |
| 484 void setValueAtTime(num value, num time) native; | 510 void setValueAtTime(num value, num time) native; |
| 485 | 511 |
| 486 @DomName('AudioParam.setValueCurveAtTime') | 512 @DomName('AudioParam.setValueCurveAtTime') |
| 487 @DocsEditable | 513 @DocsEditable |
| 488 void setValueCurveAtTime(Float32List values, num time, num duration) native; | 514 void setValueCurveAtTime(Float32List values, num time, num duration) native; |
| 489 } | 515 } |
| 490 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 516 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 491 // for details. All rights reserved. Use of this source code is governed by a | 517 // for details. All rights reserved. Use of this source code is governed by a |
| 492 // BSD-style license that can be found in the LICENSE file. | 518 // BSD-style license that can be found in the LICENSE file. |
| 493 | 519 |
| 494 | 520 |
| 495 @DocsEditable | 521 @DocsEditable |
| 496 @DomName('AudioProcessingEvent') | 522 @DomName('AudioProcessingEvent') |
| 523 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr
ocessingEvent-section |
| 524 @Experimental |
| 497 class AudioProcessingEvent extends Event native "AudioProcessingEvent" { | 525 class AudioProcessingEvent extends Event native "AudioProcessingEvent" { |
| 498 | 526 |
| 499 @DomName('AudioProcessingEvent.inputBuffer') | 527 @DomName('AudioProcessingEvent.inputBuffer') |
| 500 @DocsEditable | 528 @DocsEditable |
| 501 final AudioBuffer inputBuffer; | 529 final AudioBuffer inputBuffer; |
| 502 | 530 |
| 503 @DomName('AudioProcessingEvent.outputBuffer') | 531 @DomName('AudioProcessingEvent.outputBuffer') |
| 504 @DocsEditable | 532 @DocsEditable |
| 505 final AudioBuffer outputBuffer; | 533 final AudioBuffer outputBuffer; |
| 506 } | 534 } |
| 507 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 535 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 508 // for details. All rights reserved. Use of this source code is governed by a | 536 // for details. All rights reserved. Use of this source code is governed by a |
| 509 // BSD-style license that can be found in the LICENSE file. | 537 // BSD-style license that can be found in the LICENSE file. |
| 510 | 538 |
| 511 | 539 |
| 512 @DocsEditable | 540 @DocsEditable |
| 513 @DomName('AudioSourceNode') | 541 @DomName('AudioSourceNode') |
| 542 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html |
| 543 @Experimental |
| 514 class AudioSourceNode extends AudioNode native "AudioSourceNode" { | 544 class AudioSourceNode extends AudioNode native "AudioSourceNode" { |
| 515 } | 545 } |
| 516 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 546 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 517 // for details. All rights reserved. Use of this source code is governed by a | 547 // for details. All rights reserved. Use of this source code is governed by a |
| 518 // BSD-style license that can be found in the LICENSE file. | 548 // BSD-style license that can be found in the LICENSE file. |
| 519 | 549 |
| 520 | 550 |
| 521 @DocsEditable | 551 @DocsEditable |
| 522 @DomName('BiquadFilterNode') | 552 @DomName('BiquadFilterNode') |
| 553 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF
ilterNode-section |
| 554 @Experimental |
| 523 class BiquadFilterNode extends AudioNode native "BiquadFilterNode" { | 555 class BiquadFilterNode extends AudioNode native "BiquadFilterNode" { |
| 524 | 556 |
| 525 @DomName('BiquadFilterNode.ALLPASS') | 557 @DomName('BiquadFilterNode.ALLPASS') |
| 526 @DocsEditable | 558 @DocsEditable |
| 527 static const int ALLPASS = 7; | 559 static const int ALLPASS = 7; |
| 528 | 560 |
| 529 @DomName('BiquadFilterNode.BANDPASS') | 561 @DomName('BiquadFilterNode.BANDPASS') |
| 530 @DocsEditable | 562 @DocsEditable |
| 531 static const int BANDPASS = 2; | 563 static const int BANDPASS = 2; |
| 532 | 564 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 578 @DocsEditable | 610 @DocsEditable |
| 579 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl
oat32List phaseResponse) native; | 611 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl
oat32List phaseResponse) native; |
| 580 } | 612 } |
| 581 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 613 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 582 // for details. All rights reserved. Use of this source code is governed by a | 614 // for details. All rights reserved. Use of this source code is governed by a |
| 583 // BSD-style license that can be found in the LICENSE file. | 615 // BSD-style license that can be found in the LICENSE file. |
| 584 | 616 |
| 585 | 617 |
| 586 @DocsEditable | 618 @DocsEditable |
| 587 @DomName('ChannelMergerNode') | 619 @DomName('ChannelMergerNode') |
| 620 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
MergerNode-section |
| 621 @Experimental |
| 588 class ChannelMergerNode extends AudioNode native "ChannelMergerNode" { | 622 class ChannelMergerNode extends AudioNode native "ChannelMergerNode" { |
| 589 } | 623 } |
| 590 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 624 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 591 // for details. All rights reserved. Use of this source code is governed by a | 625 // for details. All rights reserved. Use of this source code is governed by a |
| 592 // BSD-style license that can be found in the LICENSE file. | 626 // BSD-style license that can be found in the LICENSE file. |
| 593 | 627 |
| 594 | 628 |
| 595 @DocsEditable | 629 @DocsEditable |
| 596 @DomName('ChannelSplitterNode') | 630 @DomName('ChannelSplitterNode') |
| 631 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
SplitterNode-section |
| 632 @Experimental |
| 597 class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode" { | 633 class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode" { |
| 598 } | 634 } |
| 599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 635 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 600 // for details. All rights reserved. Use of this source code is governed by a | 636 // for details. All rights reserved. Use of this source code is governed by a |
| 601 // BSD-style license that can be found in the LICENSE file. | 637 // BSD-style license that can be found in the LICENSE file. |
| 602 | 638 |
| 603 | 639 |
| 604 @DocsEditable | 640 @DocsEditable |
| 605 @DomName('ConvolverNode') | 641 @DomName('ConvolverNode') |
| 642 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv
erNode |
| 643 @Experimental |
| 606 class ConvolverNode extends AudioNode native "ConvolverNode" { | 644 class ConvolverNode extends AudioNode native "ConvolverNode" { |
| 607 | 645 |
| 608 @DomName('ConvolverNode.buffer') | 646 @DomName('ConvolverNode.buffer') |
| 609 @DocsEditable | 647 @DocsEditable |
| 610 AudioBuffer buffer; | 648 AudioBuffer buffer; |
| 611 | 649 |
| 612 @DomName('ConvolverNode.normalize') | 650 @DomName('ConvolverNode.normalize') |
| 613 @DocsEditable | 651 @DocsEditable |
| 614 bool normalize; | 652 bool normalize; |
| 615 } | 653 } |
| 616 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 654 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 617 // for details. All rights reserved. Use of this source code is governed by a | 655 // for details. All rights reserved. Use of this source code is governed by a |
| 618 // BSD-style license that can be found in the LICENSE file. | 656 // BSD-style license that can be found in the LICENSE file. |
| 619 | 657 |
| 620 | 658 |
| 621 @DocsEditable | 659 @DocsEditable |
| 622 @DomName('DelayNode') | 660 @DomName('DelayNode') |
| 661 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo
de |
| 662 @Experimental |
| 623 class DelayNode extends AudioNode native "DelayNode" { | 663 class DelayNode extends AudioNode native "DelayNode" { |
| 624 | 664 |
| 625 @DomName('DelayNode.delayTime') | 665 @DomName('DelayNode.delayTime') |
| 626 @DocsEditable | 666 @DocsEditable |
| 627 final AudioParam delayTime; | 667 final AudioParam delayTime; |
| 628 } | 668 } |
| 629 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 669 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 630 // for details. All rights reserved. Use of this source code is governed by a | 670 // for details. All rights reserved. Use of this source code is governed by a |
| 631 // BSD-style license that can be found in the LICENSE file. | 671 // BSD-style license that can be found in the LICENSE file. |
| 632 | 672 |
| 633 | 673 |
| 634 @DocsEditable | 674 @DocsEditable |
| 635 @DomName('DynamicsCompressorNode') | 675 @DomName('DynamicsCompressorNode') |
| 676 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic
sCompressorNode |
| 677 @Experimental |
| 636 class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" { | 678 class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" { |
| 637 | 679 |
| 638 @DomName('DynamicsCompressorNode.attack') | 680 @DomName('DynamicsCompressorNode.attack') |
| 639 @DocsEditable | 681 @DocsEditable |
| 640 final AudioParam attack; | 682 final AudioParam attack; |
| 641 | 683 |
| 642 @DomName('DynamicsCompressorNode.knee') | 684 @DomName('DynamicsCompressorNode.knee') |
| 643 @DocsEditable | 685 @DocsEditable |
| 644 final AudioParam knee; | 686 final AudioParam knee; |
| 645 | 687 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 659 @DocsEditable | 701 @DocsEditable |
| 660 final AudioParam threshold; | 702 final AudioParam threshold; |
| 661 } | 703 } |
| 662 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 704 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 663 // for details. All rights reserved. Use of this source code is governed by a | 705 // for details. All rights reserved. Use of this source code is governed by a |
| 664 // BSD-style license that can be found in the LICENSE file. | 706 // BSD-style license that can be found in the LICENSE file. |
| 665 | 707 |
| 666 | 708 |
| 667 @DocsEditable | 709 @DocsEditable |
| 668 @DomName('GainNode') | 710 @DomName('GainNode') |
| 711 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod
e |
| 712 @Experimental |
| 669 class GainNode extends AudioNode native "GainNode" { | 713 class GainNode extends AudioNode native "GainNode" { |
| 670 | 714 |
| 671 @DomName('GainNode.gain') | 715 @DomName('GainNode.gain') |
| 672 @DocsEditable | 716 @DocsEditable |
| 673 final AudioParam gain; | 717 final AudioParam gain; |
| 674 } | 718 } |
| 675 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 719 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 676 // for details. All rights reserved. Use of this source code is governed by a | 720 // for details. All rights reserved. Use of this source code is governed by a |
| 677 // BSD-style license that can be found in the LICENSE file. | 721 // BSD-style license that can be found in the LICENSE file. |
| 678 | 722 |
| 679 | 723 |
| 680 @DocsEditable | 724 @DocsEditable |
| 681 @DomName('MediaElementAudioSourceNode') | 725 @DomName('MediaElementAudioSourceNode') |
| 726 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl
ementAudioSourceNode |
| 727 @Experimental |
| 682 class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAu
dioSourceNode" { | 728 class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAu
dioSourceNode" { |
| 683 | 729 |
| 684 @DomName('MediaElementAudioSourceNode.mediaElement') | 730 @DomName('MediaElementAudioSourceNode.mediaElement') |
| 685 @DocsEditable | 731 @DocsEditable |
| 732 @Experimental // non-standard |
| 686 final MediaElement mediaElement; | 733 final MediaElement mediaElement; |
| 687 } | 734 } |
| 688 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 689 // for details. All rights reserved. Use of this source code is governed by a | 736 // for details. All rights reserved. Use of this source code is governed by a |
| 690 // BSD-style license that can be found in the LICENSE file. | 737 // BSD-style license that can be found in the LICENSE file. |
| 691 | 738 |
| 692 | 739 |
| 693 @DocsEditable | 740 @DocsEditable |
| 694 @DomName('MediaStreamAudioDestinationNode') | 741 @DomName('MediaStreamAudioDestinationNode') |
| 742 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioDestinationNode |
| 743 @Experimental |
| 695 class MediaStreamAudioDestinationNode extends AudioSourceNode native "MediaStrea
mAudioDestinationNode" { | 744 class MediaStreamAudioDestinationNode extends AudioSourceNode native "MediaStrea
mAudioDestinationNode" { |
| 696 | 745 |
| 697 @DomName('MediaStreamAudioDestinationNode.stream') | 746 @DomName('MediaStreamAudioDestinationNode.stream') |
| 698 @DocsEditable | 747 @DocsEditable |
| 699 final MediaStream stream; | 748 final MediaStream stream; |
| 700 } | 749 } |
| 701 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 750 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 702 // for details. All rights reserved. Use of this source code is governed by a | 751 // for details. All rights reserved. Use of this source code is governed by a |
| 703 // BSD-style license that can be found in the LICENSE file. | 752 // BSD-style license that can be found in the LICENSE file. |
| 704 | 753 |
| 705 | 754 |
| 706 @DocsEditable | 755 @DocsEditable |
| 707 @DomName('MediaStreamAudioSourceNode') | 756 @DomName('MediaStreamAudioSourceNode') |
| 757 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioSourceNode |
| 758 @Experimental |
| 708 class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudi
oSourceNode" { | 759 class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudi
oSourceNode" { |
| 709 | 760 |
| 710 @DomName('MediaStreamAudioSourceNode.mediaStream') | 761 @DomName('MediaStreamAudioSourceNode.mediaStream') |
| 711 @DocsEditable | 762 @DocsEditable |
| 712 final MediaStream mediaStream; | 763 final MediaStream mediaStream; |
| 713 } | 764 } |
| 714 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 765 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 715 // for details. All rights reserved. Use of this source code is governed by a | 766 // for details. All rights reserved. Use of this source code is governed by a |
| 716 // BSD-style license that can be found in the LICENSE file. | 767 // BSD-style license that can be found in the LICENSE file. |
| 717 | 768 |
| 718 | 769 |
| 719 @DocsEditable | 770 @DocsEditable |
| 720 @DomName('OfflineAudioCompletionEvent') | 771 @DomName('OfflineAudioCompletionEvent') |
| 772 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioCompletionEvent-section |
| 773 @Experimental |
| 721 class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEv
ent" { | 774 class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEv
ent" { |
| 722 | 775 |
| 723 @DomName('OfflineAudioCompletionEvent.renderedBuffer') | 776 @DomName('OfflineAudioCompletionEvent.renderedBuffer') |
| 724 @DocsEditable | 777 @DocsEditable |
| 725 final AudioBuffer renderedBuffer; | 778 final AudioBuffer renderedBuffer; |
| 726 } | 779 } |
| 727 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 780 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 728 // for details. All rights reserved. Use of this source code is governed by a | 781 // for details. All rights reserved. Use of this source code is governed by a |
| 729 // BSD-style license that can be found in the LICENSE file. | 782 // BSD-style license that can be found in the LICENSE file. |
| 730 | 783 |
| 731 | 784 |
| 732 @DocsEditable | 785 @DocsEditable |
| 733 @DomName('OfflineAudioContext') | 786 @DomName('OfflineAudioContext') |
| 787 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioContext-section |
| 788 @Experimental |
| 734 class OfflineAudioContext extends AudioContext implements EventTarget native "Of
flineAudioContext" { | 789 class OfflineAudioContext extends AudioContext implements EventTarget native "Of
flineAudioContext" { |
| 735 | 790 |
| 736 @DomName('OfflineAudioContext.OfflineAudioContext') | 791 @DomName('OfflineAudioContext.OfflineAudioContext') |
| 737 @DocsEditable | 792 @DocsEditable |
| 738 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp
leRate) { | 793 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp
leRate) { |
| 739 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl
eRate); | 794 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl
eRate); |
| 740 } | 795 } |
| 741 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR
ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan
nels, numberOfFrames, sampleRate); | 796 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR
ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan
nels, numberOfFrames, sampleRate); |
| 742 } | 797 } |
| 743 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 798 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 744 // for details. All rights reserved. Use of this source code is governed by a | 799 // for details. All rights reserved. Use of this source code is governed by a |
| 745 // BSD-style license that can be found in the LICENSE file. | 800 // BSD-style license that can be found in the LICENSE file. |
| 746 | 801 |
| 747 | 802 |
| 748 @DocsEditable | 803 @DocsEditable |
| 749 @DomName('OscillatorNode') | 804 @DomName('OscillatorNode') |
| 805 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc
illatorNode |
| 806 @Experimental |
| 750 class OscillatorNode extends AudioSourceNode native "OscillatorNode" { | 807 class OscillatorNode extends AudioSourceNode native "OscillatorNode" { |
| 751 | 808 |
| 752 @DomName('OscillatorNode.CUSTOM') | 809 @DomName('OscillatorNode.CUSTOM') |
| 753 @DocsEditable | 810 @DocsEditable |
| 811 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 812 @deprecated // deprecated |
| 754 static const int CUSTOM = 4; | 813 static const int CUSTOM = 4; |
| 755 | 814 |
| 756 @DomName('OscillatorNode.FINISHED_STATE') | 815 @DomName('OscillatorNode.FINISHED_STATE') |
| 757 @DocsEditable | 816 @DocsEditable |
| 758 static const int FINISHED_STATE = 3; | 817 static const int FINISHED_STATE = 3; |
| 759 | 818 |
| 760 @DomName('OscillatorNode.PLAYING_STATE') | 819 @DomName('OscillatorNode.PLAYING_STATE') |
| 761 @DocsEditable | 820 @DocsEditable |
| 762 static const int PLAYING_STATE = 2; | 821 static const int PLAYING_STATE = 2; |
| 763 | 822 |
| 764 @DomName('OscillatorNode.SAWTOOTH') | 823 @DomName('OscillatorNode.SAWTOOTH') |
| 765 @DocsEditable | 824 @DocsEditable |
| 825 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 826 @deprecated // deprecated |
| 766 static const int SAWTOOTH = 2; | 827 static const int SAWTOOTH = 2; |
| 767 | 828 |
| 768 @DomName('OscillatorNode.SCHEDULED_STATE') | 829 @DomName('OscillatorNode.SCHEDULED_STATE') |
| 769 @DocsEditable | 830 @DocsEditable |
| 770 static const int SCHEDULED_STATE = 1; | 831 static const int SCHEDULED_STATE = 1; |
| 771 | 832 |
| 772 @DomName('OscillatorNode.SINE') | 833 @DomName('OscillatorNode.SINE') |
| 773 @DocsEditable | 834 @DocsEditable |
| 835 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 836 @deprecated // deprecated |
| 774 static const int SINE = 0; | 837 static const int SINE = 0; |
| 775 | 838 |
| 776 @DomName('OscillatorNode.SQUARE') | 839 @DomName('OscillatorNode.SQUARE') |
| 777 @DocsEditable | 840 @DocsEditable |
| 841 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 842 @deprecated // deprecated |
| 778 static const int SQUARE = 1; | 843 static const int SQUARE = 1; |
| 779 | 844 |
| 780 @DomName('OscillatorNode.TRIANGLE') | 845 @DomName('OscillatorNode.TRIANGLE') |
| 781 @DocsEditable | 846 @DocsEditable |
| 847 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 848 @deprecated // deprecated |
| 782 static const int TRIANGLE = 3; | 849 static const int TRIANGLE = 3; |
| 783 | 850 |
| 784 @DomName('OscillatorNode.UNSCHEDULED_STATE') | 851 @DomName('OscillatorNode.UNSCHEDULED_STATE') |
| 785 @DocsEditable | 852 @DocsEditable |
| 786 static const int UNSCHEDULED_STATE = 0; | 853 static const int UNSCHEDULED_STATE = 0; |
| 787 | 854 |
| 788 @DomName('OscillatorNode.detune') | 855 @DomName('OscillatorNode.detune') |
| 789 @DocsEditable | 856 @DocsEditable |
| 790 final AudioParam detune; | 857 final AudioParam detune; |
| 791 | 858 |
| 792 @DomName('OscillatorNode.frequency') | 859 @DomName('OscillatorNode.frequency') |
| 793 @DocsEditable | 860 @DocsEditable |
| 794 final AudioParam frequency; | 861 final AudioParam frequency; |
| 795 | 862 |
| 796 @DomName('OscillatorNode.playbackState') | 863 @DomName('OscillatorNode.playbackState') |
| 797 @DocsEditable | 864 @DocsEditable |
| 798 final int playbackState; | 865 final int playbackState; |
| 799 | 866 |
| 800 @DomName('OscillatorNode.type') | 867 @DomName('OscillatorNode.type') |
| 801 @DocsEditable | 868 @DocsEditable |
| 802 String type; | 869 String type; |
| 803 | 870 |
| 804 @DomName('OscillatorNode.noteOff') | 871 @DomName('OscillatorNode.noteOff') |
| 805 @DocsEditable | 872 @DocsEditable |
| 873 @Experimental // untriaged |
| 806 void noteOff(num when) native; | 874 void noteOff(num when) native; |
| 807 | 875 |
| 808 @DomName('OscillatorNode.noteOn') | 876 @DomName('OscillatorNode.noteOn') |
| 809 @DocsEditable | 877 @DocsEditable |
| 878 @Experimental // untriaged |
| 810 void noteOn(num when) native; | 879 void noteOn(num when) native; |
| 811 | 880 |
| 812 @DomName('OscillatorNode.setWaveTable') | 881 @DomName('OscillatorNode.setWaveTable') |
| 813 @DocsEditable | 882 @DocsEditable |
| 814 void setWaveTable(WaveTable waveTable) native; | 883 void setWaveTable(WaveTable waveTable) native; |
| 815 | 884 |
| 816 @DomName('OscillatorNode.start') | 885 @DomName('OscillatorNode.start') |
| 817 @DocsEditable | 886 @DocsEditable |
| 818 void start(num when) native; | 887 void start(num when) native; |
| 819 | 888 |
| 820 @DomName('OscillatorNode.stop') | 889 @DomName('OscillatorNode.stop') |
| 821 @DocsEditable | 890 @DocsEditable |
| 822 void stop(num when) native; | 891 void stop(num when) native; |
| 823 } | 892 } |
| 824 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 825 // for details. All rights reserved. Use of this source code is governed by a | 894 // for details. All rights reserved. Use of this source code is governed by a |
| 826 // BSD-style license that can be found in the LICENSE file. | 895 // BSD-style license that can be found in the LICENSE file. |
| 827 | 896 |
| 828 | 897 |
| 829 @DocsEditable | 898 @DocsEditable |
| 830 @DomName('PannerNode') | 899 @DomName('PannerNode') |
| 900 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN
ode |
| 901 @Experimental |
| 831 class PannerNode extends AudioNode native "PannerNode" { | 902 class PannerNode extends AudioNode native "PannerNode" { |
| 832 | 903 |
| 833 @DomName('PannerNode.EQUALPOWER') | 904 @DomName('PannerNode.EQUALPOWER') |
| 834 @DocsEditable | 905 @DocsEditable |
| 906 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 907 @deprecated // deprecated |
| 835 static const int EQUALPOWER = 0; | 908 static const int EQUALPOWER = 0; |
| 836 | 909 |
| 837 @DomName('PannerNode.EXPONENTIAL_DISTANCE') | 910 @DomName('PannerNode.EXPONENTIAL_DISTANCE') |
| 838 @DocsEditable | 911 @DocsEditable |
| 912 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 913 @deprecated // deprecated |
| 839 static const int EXPONENTIAL_DISTANCE = 2; | 914 static const int EXPONENTIAL_DISTANCE = 2; |
| 840 | 915 |
| 841 @DomName('PannerNode.HRTF') | 916 @DomName('PannerNode.HRTF') |
| 842 @DocsEditable | 917 @DocsEditable |
| 918 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 919 @deprecated // deprecated |
| 843 static const int HRTF = 1; | 920 static const int HRTF = 1; |
| 844 | 921 |
| 845 @DomName('PannerNode.INVERSE_DISTANCE') | 922 @DomName('PannerNode.INVERSE_DISTANCE') |
| 846 @DocsEditable | 923 @DocsEditable |
| 924 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 925 @deprecated // deprecated |
| 847 static const int INVERSE_DISTANCE = 1; | 926 static const int INVERSE_DISTANCE = 1; |
| 848 | 927 |
| 849 @DomName('PannerNode.LINEAR_DISTANCE') | 928 @DomName('PannerNode.LINEAR_DISTANCE') |
| 850 @DocsEditable | 929 @DocsEditable |
| 930 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 931 @deprecated // deprecated |
| 851 static const int LINEAR_DISTANCE = 0; | 932 static const int LINEAR_DISTANCE = 0; |
| 852 | 933 |
| 853 @DomName('PannerNode.SOUNDFIELD') | 934 @DomName('PannerNode.SOUNDFIELD') |
| 854 @DocsEditable | 935 @DocsEditable |
| 936 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 937 @deprecated // deprecated |
| 855 static const int SOUNDFIELD = 2; | 938 static const int SOUNDFIELD = 2; |
| 856 | 939 |
| 857 @DomName('PannerNode.coneInnerAngle') | 940 @DomName('PannerNode.coneInnerAngle') |
| 858 @DocsEditable | 941 @DocsEditable |
| 859 num coneInnerAngle; | 942 num coneInnerAngle; |
| 860 | 943 |
| 861 @DomName('PannerNode.coneOuterAngle') | 944 @DomName('PannerNode.coneOuterAngle') |
| 862 @DocsEditable | 945 @DocsEditable |
| 863 num coneOuterAngle; | 946 num coneOuterAngle; |
| 864 | 947 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 @DomName('PannerNode.setVelocity') | 980 @DomName('PannerNode.setVelocity') |
| 898 @DocsEditable | 981 @DocsEditable |
| 899 void setVelocity(num x, num y, num z) native; | 982 void setVelocity(num x, num y, num z) native; |
| 900 } | 983 } |
| 901 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 984 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 902 // for details. All rights reserved. Use of this source code is governed by a | 985 // for details. All rights reserved. Use of this source code is governed by a |
| 903 // BSD-style license that can be found in the LICENSE file. | 986 // BSD-style license that can be found in the LICENSE file. |
| 904 | 987 |
| 905 | 988 |
| 906 @DomName('ScriptProcessorNode') | 989 @DomName('ScriptProcessorNode') |
| 990 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP
rocessorNode |
| 991 @Experimental |
| 907 class ScriptProcessorNode extends AudioNode native "ScriptProcessorNode" { | 992 class ScriptProcessorNode extends AudioNode native "ScriptProcessorNode" { |
| 908 Stream<AudioProcessingEvent> _eventStream; | 993 Stream<AudioProcessingEvent> _eventStream; |
| 909 | 994 |
| 910 /** | 995 /** |
| 911 * Get a Stream that fires events when AudioProcessingEvents occur. | 996 * Get a Stream that fires events when AudioProcessingEvents occur. |
| 912 * This particular stream is special in that it only allows one listener to a | 997 * This particular stream is special in that it only allows one listener to a |
| 913 * given stream. Converting the returned Stream [asBroadcast] will likely ruin | 998 * given stream. Converting the returned Stream [asBroadcast] will likely ruin |
| 914 * the soft-real-time properties which which these events are fired and can | 999 * the soft-real-time properties which which these events are fired and can |
| 915 * be processed. | 1000 * be processed. |
| 916 */ | 1001 */ |
| (...skipping 26 matching lines...) Expand all Loading... |
| 943 final int bufferSize; | 1028 final int bufferSize; |
| 944 | 1029 |
| 945 } | 1030 } |
| 946 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1031 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 947 // for details. All rights reserved. Use of this source code is governed by a | 1032 // for details. All rights reserved. Use of this source code is governed by a |
| 948 // BSD-style license that can be found in the LICENSE file. | 1033 // BSD-style license that can be found in the LICENSE file. |
| 949 | 1034 |
| 950 | 1035 |
| 951 @DocsEditable | 1036 @DocsEditable |
| 952 @DomName('WaveShaperNode') | 1037 @DomName('WaveShaperNode') |
| 1038 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav
eShaperNode |
| 1039 @Experimental |
| 953 class WaveShaperNode extends AudioNode native "WaveShaperNode" { | 1040 class WaveShaperNode extends AudioNode native "WaveShaperNode" { |
| 954 | 1041 |
| 955 @DomName('WaveShaperNode.curve') | 1042 @DomName('WaveShaperNode.curve') |
| 956 @DocsEditable | 1043 @DocsEditable |
| 957 Float32List curve; | 1044 Float32List curve; |
| 958 } | 1045 } |
| 959 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1046 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 960 // for details. All rights reserved. Use of this source code is governed by a | 1047 // for details. All rights reserved. Use of this source code is governed by a |
| 961 // BSD-style license that can be found in the LICENSE file. | 1048 // BSD-style license that can be found in the LICENSE file. |
| 962 | 1049 |
| 963 | 1050 |
| 964 @DocsEditable | 1051 @DocsEditable |
| 965 @DomName('WaveTable') | 1052 @DomName('WaveTable') |
| 1053 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section |
| 1054 @Experimental |
| 966 class WaveTable native "WaveTable" { | 1055 class WaveTable native "WaveTable" { |
| 967 } | 1056 } |
| OLD | NEW |