Chromium Code Reviews| 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:html'; | 5 import 'dart:html'; |
| 6 import 'dart:html_common'; | 6 import 'dart:html_common'; |
|
Anton Muhin
2013/03/19 12:31:24
import 'dart:typeddata'?
| |
| 7 import 'dart:_js_helper' show Creates, Returns; | 7 import 'dart:_js_helper' show Creates, Returns; |
| 8 import 'dart:_foreign_helper' show JS; | 8 import 'dart:_foreign_helper' show JS; |
| 9 // DO NOT EDIT - unless you are editing documentation as per: | 9 // DO NOT EDIT - unless you are editing documentation as per: |
| 10 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation | 10 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation |
| 11 // Auto-generated dart:audio library. | 11 // Auto-generated dart:audio library. |
| 12 | 12 |
| 13 | 13 |
| 14 | 14 |
| 15 | 15 |
| 16 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 37 @DomName('AnalyserNode.minDecibels') | 37 @DomName('AnalyserNode.minDecibels') |
| 38 @DocsEditable | 38 @DocsEditable |
| 39 num minDecibels; | 39 num minDecibels; |
| 40 | 40 |
| 41 @DomName('AnalyserNode.smoothingTimeConstant') | 41 @DomName('AnalyserNode.smoothingTimeConstant') |
| 42 @DocsEditable | 42 @DocsEditable |
| 43 num smoothingTimeConstant; | 43 num smoothingTimeConstant; |
| 44 | 44 |
| 45 @DomName('AnalyserNode.getByteFrequencyData') | 45 @DomName('AnalyserNode.getByteFrequencyData') |
| 46 @DocsEditable | 46 @DocsEditable |
| 47 void getByteFrequencyData(Uint8Array array) native; | 47 void getByteFrequencyData(Uint8List array) native; |
| 48 | 48 |
| 49 @DomName('AnalyserNode.getByteTimeDomainData') | 49 @DomName('AnalyserNode.getByteTimeDomainData') |
| 50 @DocsEditable | 50 @DocsEditable |
| 51 void getByteTimeDomainData(Uint8Array array) native; | 51 void getByteTimeDomainData(Uint8List array) native; |
| 52 | 52 |
| 53 @DomName('AnalyserNode.getFloatFrequencyData') | 53 @DomName('AnalyserNode.getFloatFrequencyData') |
| 54 @DocsEditable | 54 @DocsEditable |
| 55 void getFloatFrequencyData(Float32Array array) native; | 55 void getFloatFrequencyData(Float32List array) native; |
| 56 } | 56 } |
| 57 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 57 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 58 // for details. All rights reserved. Use of this source code is governed by a | 58 // for details. All rights reserved. Use of this source code is governed by a |
| 59 // BSD-style license that can be found in the LICENSE file. | 59 // BSD-style license that can be found in the LICENSE file. |
| 60 | 60 |
| 61 | 61 |
| 62 @DocsEditable | 62 @DocsEditable |
| 63 @DomName('AudioBuffer') | 63 @DomName('AudioBuffer') |
| 64 class AudioBuffer native "*AudioBuffer" { | 64 class AudioBuffer native "*AudioBuffer" { |
| 65 | 65 |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 78 @DomName('AudioBuffer.numberOfChannels') | 78 @DomName('AudioBuffer.numberOfChannels') |
| 79 @DocsEditable | 79 @DocsEditable |
| 80 final int numberOfChannels; | 80 final int numberOfChannels; |
| 81 | 81 |
| 82 @DomName('AudioBuffer.sampleRate') | 82 @DomName('AudioBuffer.sampleRate') |
| 83 @DocsEditable | 83 @DocsEditable |
| 84 final num sampleRate; | 84 final num sampleRate; |
| 85 | 85 |
| 86 @DomName('AudioBuffer.getChannelData') | 86 @DomName('AudioBuffer.getChannelData') |
| 87 @DocsEditable | 87 @DocsEditable |
| 88 @Returns('Float32Array') | 88 @Returns('Float32List') |
| 89 @Creates('Float32Array') | 89 @Creates('Float32List') |
| 90 List<double> getChannelData(int channelIndex) native; | 90 List<double> getChannelData(int channelIndex) native; |
| 91 } | 91 } |
| 92 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 92 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 93 // for details. All rights reserved. Use of this source code is governed by a | 93 // for details. All rights reserved. Use of this source code is governed by a |
| 94 // BSD-style license that can be found in the LICENSE file. | 94 // BSD-style license that can be found in the LICENSE file. |
| 95 | 95 |
| 96 // WARNING: Do not edit - generated code. | 96 // WARNING: Do not edit - generated code. |
| 97 | 97 |
| 98 | 98 |
| 99 typedef void AudioBufferCallback(AudioBuffer audioBuffer); | 99 typedef void AudioBufferCallback(AudioBuffer audioBuffer); |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 259 @DomName('AudioContext.createPanner') | 259 @DomName('AudioContext.createPanner') |
| 260 @DocsEditable | 260 @DocsEditable |
| 261 PannerNode createPanner() native; | 261 PannerNode createPanner() native; |
| 262 | 262 |
| 263 @DomName('AudioContext.createWaveShaper') | 263 @DomName('AudioContext.createWaveShaper') |
| 264 @DocsEditable | 264 @DocsEditable |
| 265 WaveShaperNode createWaveShaper() native; | 265 WaveShaperNode createWaveShaper() native; |
| 266 | 266 |
| 267 @DomName('AudioContext.createWaveTable') | 267 @DomName('AudioContext.createWaveTable') |
| 268 @DocsEditable | 268 @DocsEditable |
| 269 WaveTable createWaveTable(Float32Array real, Float32Array imag) native; | 269 WaveTable createWaveTable(Float32List real, Float32List imag) native; |
| 270 | 270 |
| 271 @DomName('AudioContext.decodeAudioData') | 271 @DomName('AudioContext.decodeAudioData') |
| 272 @DocsEditable | 272 @DocsEditable |
| 273 void decodeAudioData(/*ArrayBuffer*/ audioData, AudioBufferCallback successCal lback, [AudioBufferCallback errorCallback]) native; | 273 void decodeAudioData(/*ArrayBuffer*/ audioData, AudioBufferCallback successCal lback, [AudioBufferCallback errorCallback]) native; |
| 274 | 274 |
| 275 @DomName('AudioContext.startRendering') | 275 @DomName('AudioContext.startRendering') |
| 276 @DocsEditable | 276 @DocsEditable |
| 277 void startRendering() native; | 277 void startRendering() native; |
| 278 | 278 |
| 279 @DomName('AudioContext.oncomplete') | 279 @DomName('AudioContext.oncomplete') |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 447 @DomName('AudioParam.setTargetAtTime') | 447 @DomName('AudioParam.setTargetAtTime') |
| 448 @DocsEditable | 448 @DocsEditable |
| 449 void setTargetAtTime(num target, num time, num timeConstant) native; | 449 void setTargetAtTime(num target, num time, num timeConstant) native; |
| 450 | 450 |
| 451 @DomName('AudioParam.setValueAtTime') | 451 @DomName('AudioParam.setValueAtTime') |
| 452 @DocsEditable | 452 @DocsEditable |
| 453 void setValueAtTime(num value, num time) native; | 453 void setValueAtTime(num value, num time) native; |
| 454 | 454 |
| 455 @DomName('AudioParam.setValueCurveAtTime') | 455 @DomName('AudioParam.setValueCurveAtTime') |
| 456 @DocsEditable | 456 @DocsEditable |
| 457 void setValueCurveAtTime(Float32Array values, num time, num duration) native; | 457 void setValueCurveAtTime(Float32List values, num time, num duration) native; |
| 458 } | 458 } |
| 459 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 459 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 460 // for details. All rights reserved. Use of this source code is governed by a | 460 // for details. All rights reserved. Use of this source code is governed by a |
| 461 // BSD-style license that can be found in the LICENSE file. | 461 // BSD-style license that can be found in the LICENSE file. |
| 462 | 462 |
| 463 | 463 |
| 464 @DocsEditable | 464 @DocsEditable |
| 465 @DomName('AudioProcessingEvent') | 465 @DomName('AudioProcessingEvent') |
| 466 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" { | 466 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" { |
| 467 | 467 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 522 @DomName('BiquadFilterNode.gain') | 522 @DomName('BiquadFilterNode.gain') |
| 523 @DocsEditable | 523 @DocsEditable |
| 524 final AudioParam gain; | 524 final AudioParam gain; |
| 525 | 525 |
| 526 @DomName('BiquadFilterNode.type') | 526 @DomName('BiquadFilterNode.type') |
| 527 @DocsEditable | 527 @DocsEditable |
| 528 String type; | 528 String type; |
| 529 | 529 |
| 530 @DomName('BiquadFilterNode.getFrequencyResponse') | 530 @DomName('BiquadFilterNode.getFrequencyResponse') |
| 531 @DocsEditable | 531 @DocsEditable |
| 532 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse) native; | 532 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl oat32List phaseResponse) native; |
| 533 } | 533 } |
| 534 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 534 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 535 // for details. All rights reserved. Use of this source code is governed by a | 535 // for details. All rights reserved. Use of this source code is governed by a |
| 536 // BSD-style license that can be found in the LICENSE file. | 536 // BSD-style license that can be found in the LICENSE file. |
| 537 | 537 |
| 538 | 538 |
| 539 @DocsEditable | 539 @DocsEditable |
| 540 @DomName('ChannelMergerNode') | 540 @DomName('ChannelMergerNode') |
| 541 class ChannelMergerNode extends AudioNode native "*ChannelMergerNode" { | 541 class ChannelMergerNode extends AudioNode native "*ChannelMergerNode" { |
| 542 } | 542 } |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 830 // for details. All rights reserved. Use of this source code is governed by a | 830 // for details. All rights reserved. Use of this source code is governed by a |
| 831 // BSD-style license that can be found in the LICENSE file. | 831 // BSD-style license that can be found in the LICENSE file. |
| 832 | 832 |
| 833 | 833 |
| 834 @DocsEditable | 834 @DocsEditable |
| 835 @DomName('WaveShaperNode') | 835 @DomName('WaveShaperNode') |
| 836 class WaveShaperNode extends AudioNode native "*WaveShaperNode" { | 836 class WaveShaperNode extends AudioNode native "*WaveShaperNode" { |
| 837 | 837 |
| 838 @DomName('WaveShaperNode.curve') | 838 @DomName('WaveShaperNode.curve') |
| 839 @DocsEditable | 839 @DocsEditable |
| 840 @Returns('Float32Array') | 840 @Returns('Float32List') |
| 841 @Creates('Float32Array') | 841 @Creates('Float32List') |
| 842 List<double> curve; | 842 List<double> curve; |
| 843 } | 843 } |
| 844 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 844 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 845 // for details. All rights reserved. Use of this source code is governed by a | 845 // for details. All rights reserved. Use of this source code is governed by a |
| 846 // BSD-style license that can be found in the LICENSE file. | 846 // BSD-style license that can be found in the LICENSE file. |
| 847 | 847 |
| 848 | 848 |
| 849 @DocsEditable | 849 @DocsEditable |
| 850 @DomName('WaveTable') | 850 @DomName('WaveTable') |
| 851 class WaveTable native "*WaveTable" { | 851 class WaveTable native "*WaveTable" { |
| 852 } | 852 } |
| OLD | NEW |