| 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, JSName, Returns, convertDartClosureToJS; | 9 import 'dart:_js_helper' show Creates, JSName, 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 | 26 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Analyse
rNode |
| 27 @Experimental | 27 @Experimental() |
| 28 class AnalyserNode extends AudioNode native "AnalyserNode,RealtimeAnalyserNode"
{ | 28 class AnalyserNode extends AudioNode native "AnalyserNode,RealtimeAnalyserNode"
{ |
| 29 // To suppress missing implicit constructor warnings. | 29 // To suppress missing implicit constructor warnings. |
| 30 factory AnalyserNode._() { throw new UnsupportedError("Not supported"); } | 30 factory AnalyserNode._() { throw new UnsupportedError("Not supported"); } |
| 31 | 31 |
| 32 @DomName('AnalyserNode.fftSize') | 32 @DomName('AnalyserNode.fftSize') |
| 33 @DocsEditable | 33 @DocsEditable() |
| 34 int fftSize; | 34 int fftSize; |
| 35 | 35 |
| 36 @DomName('AnalyserNode.frequencyBinCount') | 36 @DomName('AnalyserNode.frequencyBinCount') |
| 37 @DocsEditable | 37 @DocsEditable() |
| 38 final int frequencyBinCount; | 38 final int frequencyBinCount; |
| 39 | 39 |
| 40 @DomName('AnalyserNode.maxDecibels') | 40 @DomName('AnalyserNode.maxDecibels') |
| 41 @DocsEditable | 41 @DocsEditable() |
| 42 num maxDecibels; | 42 num maxDecibels; |
| 43 | 43 |
| 44 @DomName('AnalyserNode.minDecibels') | 44 @DomName('AnalyserNode.minDecibels') |
| 45 @DocsEditable | 45 @DocsEditable() |
| 46 num minDecibels; | 46 num minDecibels; |
| 47 | 47 |
| 48 @DomName('AnalyserNode.smoothingTimeConstant') | 48 @DomName('AnalyserNode.smoothingTimeConstant') |
| 49 @DocsEditable | 49 @DocsEditable() |
| 50 num smoothingTimeConstant; | 50 num smoothingTimeConstant; |
| 51 | 51 |
| 52 @DomName('AnalyserNode.getByteFrequencyData') | 52 @DomName('AnalyserNode.getByteFrequencyData') |
| 53 @DocsEditable | 53 @DocsEditable() |
| 54 void getByteFrequencyData(Uint8List array) native; | 54 void getByteFrequencyData(Uint8List array) native; |
| 55 | 55 |
| 56 @DomName('AnalyserNode.getByteTimeDomainData') | 56 @DomName('AnalyserNode.getByteTimeDomainData') |
| 57 @DocsEditable | 57 @DocsEditable() |
| 58 void getByteTimeDomainData(Uint8List array) native; | 58 void getByteTimeDomainData(Uint8List array) native; |
| 59 | 59 |
| 60 @DomName('AnalyserNode.getFloatFrequencyData') | 60 @DomName('AnalyserNode.getFloatFrequencyData') |
| 61 @DocsEditable | 61 @DocsEditable() |
| 62 void getFloatFrequencyData(Float32List array) native; | 62 void getFloatFrequencyData(Float32List array) native; |
| 63 } | 63 } |
| 64 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 64 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 65 // for details. All rights reserved. Use of this source code is governed by a | 65 // for details. All rights reserved. Use of this source code is governed by a |
| 66 // BSD-style license that can be found in the LICENSE file. | 66 // BSD-style license that can be found in the LICENSE file. |
| 67 | 67 |
| 68 | 68 |
| 69 @DocsEditable | 69 @DocsEditable() |
| 70 @DomName('AudioBuffer') | 70 @DomName('AudioBuffer') |
| 71 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section | 71 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section |
| 72 @Experimental | 72 @Experimental() |
| 73 class AudioBuffer extends Interceptor native "AudioBuffer" { | 73 class AudioBuffer extends Interceptor native "AudioBuffer" { |
| 74 | 74 |
| 75 @DomName('AudioBuffer.duration') | 75 @DomName('AudioBuffer.duration') |
| 76 @DocsEditable | 76 @DocsEditable() |
| 77 final num duration; | 77 final num duration; |
| 78 | 78 |
| 79 @DomName('AudioBuffer.gain') | 79 @DomName('AudioBuffer.gain') |
| 80 @DocsEditable | 80 @DocsEditable() |
| 81 num gain; | 81 num gain; |
| 82 | 82 |
| 83 @DomName('AudioBuffer.length') | 83 @DomName('AudioBuffer.length') |
| 84 @DocsEditable | 84 @DocsEditable() |
| 85 final int length; | 85 final int length; |
| 86 | 86 |
| 87 @DomName('AudioBuffer.numberOfChannels') | 87 @DomName('AudioBuffer.numberOfChannels') |
| 88 @DocsEditable | 88 @DocsEditable() |
| 89 final int numberOfChannels; | 89 final int numberOfChannels; |
| 90 | 90 |
| 91 @DomName('AudioBuffer.sampleRate') | 91 @DomName('AudioBuffer.sampleRate') |
| 92 @DocsEditable | 92 @DocsEditable() |
| 93 final num sampleRate; | 93 final num sampleRate; |
| 94 | 94 |
| 95 @DomName('AudioBuffer.getChannelData') | 95 @DomName('AudioBuffer.getChannelData') |
| 96 @DocsEditable | 96 @DocsEditable() |
| 97 Float32List getChannelData(int channelIndex) native; | 97 Float32List getChannelData(int channelIndex) native; |
| 98 } | 98 } |
| 99 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 99 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 100 // for details. All rights reserved. Use of this source code is governed by a | 100 // for details. All rights reserved. Use of this source code is governed by a |
| 101 // BSD-style license that can be found in the LICENSE file. | 101 // BSD-style license that can be found in the LICENSE file. |
| 102 | 102 |
| 103 // WARNING: Do not edit - generated code. | 103 // WARNING: Do not edit - generated code. |
| 104 | 104 |
| 105 | 105 |
| 106 @DomName('AudioBufferCallback') | 106 @DomName('AudioBufferCallback') |
| 107 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section | 107 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
ffer-section |
| 108 @Experimental | 108 @Experimental() |
| 109 typedef void AudioBufferCallback(AudioBuffer audioBuffer); | 109 typedef void AudioBufferCallback(AudioBuffer audioBuffer); |
| 110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 111 // for details. All rights reserved. Use of this source code is governed by a | 111 // for details. All rights reserved. Use of this source code is governed by a |
| 112 // BSD-style license that can be found in the LICENSE file. | 112 // BSD-style license that can be found in the LICENSE file. |
| 113 | 113 |
| 114 | 114 |
| 115 @DomName('AudioBufferSourceNode') | 115 @DomName('AudioBufferSourceNode') |
| 116 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
fferSourceNode-section | 116 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu
fferSourceNode-section |
| 117 @Experimental | 117 @Experimental() |
| 118 class AudioBufferSourceNode extends AudioSourceNode native "AudioBufferSourceNod
e" { | 118 class AudioBufferSourceNode extends AudioSourceNode native "AudioBufferSourceNod
e" { |
| 119 | 119 |
| 120 // TODO(efortuna): Remove these methods when Chrome stable also uses start | 120 // TODO(efortuna): Remove these methods when Chrome stable also uses start |
| 121 // instead of noteOn. | 121 // instead of noteOn. |
| 122 void start(num when, [num grainOffset, num grainDuration]) { | 122 void start(num when, [num grainOffset, num grainDuration]) { |
| 123 if (JS('bool', '!!#.start', this)) { | 123 if (JS('bool', '!!#.start', this)) { |
| 124 if (grainDuration != null) { | 124 if (grainDuration != null) { |
| 125 JS('void', '#.start(#, #, #)', this, when, grainOffset, grainDuration); | 125 JS('void', '#.start(#, #, #)', this, when, grainOffset, grainDuration); |
| 126 } else if (grainOffset != null) { | 126 } else if (grainOffset != null) { |
| 127 JS('void', '#.start(#, #)', this, when, grainOffset); | 127 JS('void', '#.start(#, #)', this, when, grainOffset); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 143 if (JS('bool', '!!#.stop', this)) { | 143 if (JS('bool', '!!#.stop', this)) { |
| 144 JS('void', '#.stop(#)', this, when); | 144 JS('void', '#.stop(#)', this, when); |
| 145 } else { | 145 } else { |
| 146 JS('void', '#.noteOff(#)', this, when); | 146 JS('void', '#.noteOff(#)', this, when); |
| 147 } | 147 } |
| 148 } | 148 } |
| 149 // To suppress missing implicit constructor warnings. | 149 // To suppress missing implicit constructor warnings. |
| 150 factory AudioBufferSourceNode._() { throw new UnsupportedError("Not supported"
); } | 150 factory AudioBufferSourceNode._() { throw new UnsupportedError("Not supported"
); } |
| 151 | 151 |
| 152 @DomName('AudioBufferSourceNode.FINISHED_STATE') | 152 @DomName('AudioBufferSourceNode.FINISHED_STATE') |
| 153 @DocsEditable | 153 @DocsEditable() |
| 154 static const int FINISHED_STATE = 3; | 154 static const int FINISHED_STATE = 3; |
| 155 | 155 |
| 156 @DomName('AudioBufferSourceNode.PLAYING_STATE') | 156 @DomName('AudioBufferSourceNode.PLAYING_STATE') |
| 157 @DocsEditable | 157 @DocsEditable() |
| 158 static const int PLAYING_STATE = 2; | 158 static const int PLAYING_STATE = 2; |
| 159 | 159 |
| 160 @DomName('AudioBufferSourceNode.SCHEDULED_STATE') | 160 @DomName('AudioBufferSourceNode.SCHEDULED_STATE') |
| 161 @DocsEditable | 161 @DocsEditable() |
| 162 static const int SCHEDULED_STATE = 1; | 162 static const int SCHEDULED_STATE = 1; |
| 163 | 163 |
| 164 @DomName('AudioBufferSourceNode.UNSCHEDULED_STATE') | 164 @DomName('AudioBufferSourceNode.UNSCHEDULED_STATE') |
| 165 @DocsEditable | 165 @DocsEditable() |
| 166 static const int UNSCHEDULED_STATE = 0; | 166 static const int UNSCHEDULED_STATE = 0; |
| 167 | 167 |
| 168 @DomName('AudioBufferSourceNode.buffer') | 168 @DomName('AudioBufferSourceNode.buffer') |
| 169 @DocsEditable | 169 @DocsEditable() |
| 170 AudioBuffer buffer; | 170 AudioBuffer buffer; |
| 171 | 171 |
| 172 @DomName('AudioBufferSourceNode.gain') | 172 @DomName('AudioBufferSourceNode.gain') |
| 173 @DocsEditable | 173 @DocsEditable() |
| 174 final AudioParam gain; | 174 final AudioParam gain; |
| 175 | 175 |
| 176 @DomName('AudioBufferSourceNode.loop') | 176 @DomName('AudioBufferSourceNode.loop') |
| 177 @DocsEditable | 177 @DocsEditable() |
| 178 bool loop; | 178 bool loop; |
| 179 | 179 |
| 180 @DomName('AudioBufferSourceNode.loopEnd') | 180 @DomName('AudioBufferSourceNode.loopEnd') |
| 181 @DocsEditable | 181 @DocsEditable() |
| 182 num loopEnd; | 182 num loopEnd; |
| 183 | 183 |
| 184 @DomName('AudioBufferSourceNode.loopStart') | 184 @DomName('AudioBufferSourceNode.loopStart') |
| 185 @DocsEditable | 185 @DocsEditable() |
| 186 num loopStart; | 186 num loopStart; |
| 187 | 187 |
| 188 @DomName('AudioBufferSourceNode.playbackRate') | 188 @DomName('AudioBufferSourceNode.playbackRate') |
| 189 @DocsEditable | 189 @DocsEditable() |
| 190 final AudioParam playbackRate; | 190 final AudioParam playbackRate; |
| 191 | 191 |
| 192 @DomName('AudioBufferSourceNode.playbackState') | 192 @DomName('AudioBufferSourceNode.playbackState') |
| 193 @DocsEditable | 193 @DocsEditable() |
| 194 final int playbackState; | 194 final int playbackState; |
| 195 | 195 |
| 196 @DomName('AudioBufferSourceNode.noteGrainOn') | 196 @DomName('AudioBufferSourceNode.noteGrainOn') |
| 197 @DocsEditable | 197 @DocsEditable() |
| 198 void noteGrainOn(num when, num grainOffset, num grainDuration) native; | 198 void noteGrainOn(num when, num grainOffset, num grainDuration) native; |
| 199 | 199 |
| 200 @DomName('AudioBufferSourceNode.noteOff') | 200 @DomName('AudioBufferSourceNode.noteOff') |
| 201 @DocsEditable | 201 @DocsEditable() |
| 202 void noteOff(num when) native; | 202 void noteOff(num when) native; |
| 203 | 203 |
| 204 @DomName('AudioBufferSourceNode.noteOn') | 204 @DomName('AudioBufferSourceNode.noteOn') |
| 205 @DocsEditable | 205 @DocsEditable() |
| 206 void noteOn(num when) native; | 206 void noteOn(num when) native; |
| 207 | 207 |
| 208 } | 208 } |
| 209 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 209 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 210 // for details. All rights reserved. Use of this source code is governed by a | 210 // for details. All rights reserved. Use of this source code is governed by a |
| 211 // BSD-style license that can be found in the LICENSE file. | 211 // BSD-style license that can be found in the LICENSE file. |
| 212 | 212 |
| 213 | 213 |
| 214 @DomName('AudioContext') | 214 @DomName('AudioContext') |
| 215 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo
ntext-section | 215 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioCo
ntext-section |
| 216 @Experimental | 216 @Experimental() |
| 217 class AudioContext extends EventTarget native "AudioContext" { | 217 class AudioContext extends EventTarget native "AudioContext" { |
| 218 // To suppress missing implicit constructor warnings. | 218 // To suppress missing implicit constructor warnings. |
| 219 factory AudioContext._() { throw new UnsupportedError("Not supported"); } | 219 factory AudioContext._() { throw new UnsupportedError("Not supported"); } |
| 220 | 220 |
| 221 @DomName('AudioContext.completeEvent') | 221 @DomName('AudioContext.completeEvent') |
| 222 @DocsEditable | 222 @DocsEditable() |
| 223 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); | 223 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); |
| 224 | 224 |
| 225 /// Checks if this type is supported on the current platform. | 225 /// Checks if this type is supported on the current platform. |
| 226 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk
itAudioContext)'); | 226 static bool get supported => JS('bool', '!!(window.AudioContext || window.webk
itAudioContext)'); |
| 227 | 227 |
| 228 @DomName('AudioContext.activeSourceCount') | 228 @DomName('AudioContext.activeSourceCount') |
| 229 @DocsEditable | 229 @DocsEditable() |
| 230 final int activeSourceCount; | 230 final int activeSourceCount; |
| 231 | 231 |
| 232 @DomName('AudioContext.currentTime') | 232 @DomName('AudioContext.currentTime') |
| 233 @DocsEditable | 233 @DocsEditable() |
| 234 final num currentTime; | 234 final num currentTime; |
| 235 | 235 |
| 236 @DomName('AudioContext.destination') | 236 @DomName('AudioContext.destination') |
| 237 @DocsEditable | 237 @DocsEditable() |
| 238 final AudioDestinationNode destination; | 238 final AudioDestinationNode destination; |
| 239 | 239 |
| 240 @DomName('AudioContext.listener') | 240 @DomName('AudioContext.listener') |
| 241 @DocsEditable | 241 @DocsEditable() |
| 242 final AudioListener listener; | 242 final AudioListener listener; |
| 243 | 243 |
| 244 @DomName('AudioContext.sampleRate') | 244 @DomName('AudioContext.sampleRate') |
| 245 @DocsEditable | 245 @DocsEditable() |
| 246 final num sampleRate; | 246 final num sampleRate; |
| 247 | 247 |
| 248 @DomName('AudioContext.createAnalyser') | 248 @DomName('AudioContext.createAnalyser') |
| 249 @DocsEditable | 249 @DocsEditable() |
| 250 AnalyserNode createAnalyser() native; | 250 AnalyserNode createAnalyser() native; |
| 251 | 251 |
| 252 @DomName('AudioContext.createBiquadFilter') | 252 @DomName('AudioContext.createBiquadFilter') |
| 253 @DocsEditable | 253 @DocsEditable() |
| 254 BiquadFilterNode createBiquadFilter() native; | 254 BiquadFilterNode createBiquadFilter() native; |
| 255 | 255 |
| 256 @DomName('AudioContext.createBuffer') | 256 @DomName('AudioContext.createBuffer') |
| 257 @DocsEditable | 257 @DocsEditable() |
| 258 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram
es, [num sampleRate]) native; | 258 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram
es, [num sampleRate]) native; |
| 259 | 259 |
| 260 @DomName('AudioContext.createBufferSource') | 260 @DomName('AudioContext.createBufferSource') |
| 261 @DocsEditable | 261 @DocsEditable() |
| 262 AudioBufferSourceNode createBufferSource() native; | 262 AudioBufferSourceNode createBufferSource() native; |
| 263 | 263 |
| 264 @DomName('AudioContext.createChannelMerger') | 264 @DomName('AudioContext.createChannelMerger') |
| 265 @DocsEditable | 265 @DocsEditable() |
| 266 ChannelMergerNode createChannelMerger([int numberOfInputs]) native; | 266 ChannelMergerNode createChannelMerger([int numberOfInputs]) native; |
| 267 | 267 |
| 268 @DomName('AudioContext.createChannelSplitter') | 268 @DomName('AudioContext.createChannelSplitter') |
| 269 @DocsEditable | 269 @DocsEditable() |
| 270 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native; | 270 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native; |
| 271 | 271 |
| 272 @DomName('AudioContext.createConvolver') | 272 @DomName('AudioContext.createConvolver') |
| 273 @DocsEditable | 273 @DocsEditable() |
| 274 ConvolverNode createConvolver() native; | 274 ConvolverNode createConvolver() native; |
| 275 | 275 |
| 276 @DomName('AudioContext.createDelay') | 276 @DomName('AudioContext.createDelay') |
| 277 @DocsEditable | 277 @DocsEditable() |
| 278 DelayNode createDelay([num maxDelayTime]) native; | 278 DelayNode createDelay([num maxDelayTime]) native; |
| 279 | 279 |
| 280 @DomName('AudioContext.createDelayNode') | 280 @DomName('AudioContext.createDelayNode') |
| 281 @DocsEditable | 281 @DocsEditable() |
| 282 DelayNode createDelayNode([num maxDelayTime]) native; | 282 DelayNode createDelayNode([num maxDelayTime]) native; |
| 283 | 283 |
| 284 @DomName('AudioContext.createDynamicsCompressor') | 284 @DomName('AudioContext.createDynamicsCompressor') |
| 285 @DocsEditable | 285 @DocsEditable() |
| 286 DynamicsCompressorNode createDynamicsCompressor() native; | 286 DynamicsCompressorNode createDynamicsCompressor() native; |
| 287 | 287 |
| 288 @DomName('AudioContext.createGainNode') | 288 @DomName('AudioContext.createGainNode') |
| 289 @DocsEditable | 289 @DocsEditable() |
| 290 GainNode createGainNode() native; | 290 GainNode createGainNode() native; |
| 291 | 291 |
| 292 @DomName('AudioContext.createJavaScriptNode') | 292 @DomName('AudioContext.createJavaScriptNode') |
| 293 @DocsEditable | 293 @DocsEditable() |
| 294 ScriptProcessorNode createJavaScriptNode(int bufferSize, [int numberOfInputCha
nnels, int numberOfOutputChannels]) native; | 294 ScriptProcessorNode createJavaScriptNode(int bufferSize, [int numberOfInputCha
nnels, int numberOfOutputChannels]) native; |
| 295 | 295 |
| 296 @DomName('AudioContext.createMediaElementSource') | 296 @DomName('AudioContext.createMediaElementSource') |
| 297 @DocsEditable | 297 @DocsEditable() |
| 298 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native; | 298 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native; |
| 299 | 299 |
| 300 @DomName('AudioContext.createMediaStreamDestination') | 300 @DomName('AudioContext.createMediaStreamDestination') |
| 301 @DocsEditable | 301 @DocsEditable() |
| 302 MediaStreamAudioDestinationNode createMediaStreamDestination() native; | 302 MediaStreamAudioDestinationNode createMediaStreamDestination() native; |
| 303 | 303 |
| 304 @DomName('AudioContext.createMediaStreamSource') | 304 @DomName('AudioContext.createMediaStreamSource') |
| 305 @DocsEditable | 305 @DocsEditable() |
| 306 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na
tive; | 306 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na
tive; |
| 307 | 307 |
| 308 @DomName('AudioContext.createOscillator') | 308 @DomName('AudioContext.createOscillator') |
| 309 @DocsEditable | 309 @DocsEditable() |
| 310 OscillatorNode createOscillator() native; | 310 OscillatorNode createOscillator() native; |
| 311 | 311 |
| 312 @DomName('AudioContext.createPanner') | 312 @DomName('AudioContext.createPanner') |
| 313 @DocsEditable | 313 @DocsEditable() |
| 314 PannerNode createPanner() native; | 314 PannerNode createPanner() native; |
| 315 | 315 |
| 316 @DomName('AudioContext.createWaveShaper') | 316 @DomName('AudioContext.createWaveShaper') |
| 317 @DocsEditable | 317 @DocsEditable() |
| 318 WaveShaperNode createWaveShaper() native; | 318 WaveShaperNode createWaveShaper() native; |
| 319 | 319 |
| 320 @DomName('AudioContext.createWaveTable') | 320 @DomName('AudioContext.createWaveTable') |
| 321 @DocsEditable | 321 @DocsEditable() |
| 322 WaveTable createWaveTable(Float32List real, Float32List imag) native; | 322 WaveTable createWaveTable(Float32List real, Float32List imag) native; |
| 323 | 323 |
| 324 @DomName('AudioContext.decodeAudioData') | 324 @DomName('AudioContext.decodeAudioData') |
| 325 @DocsEditable | 325 @DocsEditable() |
| 326 void decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallback
, [AudioBufferCallback errorCallback]) native; | 326 void decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallback
, [AudioBufferCallback errorCallback]) native; |
| 327 | 327 |
| 328 @DomName('AudioContext.startRendering') | 328 @DomName('AudioContext.startRendering') |
| 329 @DocsEditable | 329 @DocsEditable() |
| 330 void startRendering() native; | 330 void startRendering() native; |
| 331 | 331 |
| 332 @DomName('AudioContext.oncomplete') | 332 @DomName('AudioContext.oncomplete') |
| 333 @DocsEditable | 333 @DocsEditable() |
| 334 Stream<Event> get onComplete => completeEvent.forTarget(this); | 334 Stream<Event> get onComplete => completeEvent.forTarget(this); |
| 335 | 335 |
| 336 factory AudioContext() => JS('AudioContext', | 336 factory AudioContext() => JS('AudioContext', |
| 337 'new (window.AudioContext || window.webkitAudioContext)()'); | 337 'new (window.AudioContext || window.webkitAudioContext)()'); |
| 338 | 338 |
| 339 GainNode createGain() { | 339 GainNode createGain() { |
| 340 if (JS('bool', '#.createGain !== undefined', this)) { | 340 if (JS('bool', '#.createGain !== undefined', this)) { |
| 341 return JS('GainNode', '#.createGain()', this); | 341 return JS('GainNode', '#.createGain()', this); |
| 342 } else { | 342 } else { |
| 343 return JS('GainNode', '#.createGainNode()', this); | 343 return JS('GainNode', '#.createGainNode()', this); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 358 return JS('ScriptProcessorNode', '#.call(#, #)', function, this, | 358 return JS('ScriptProcessorNode', '#.call(#, #)', function, this, |
| 359 bufferSize); | 359 bufferSize); |
| 360 } | 360 } |
| 361 } | 361 } |
| 362 } | 362 } |
| 363 // 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 |
| 364 // 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 |
| 365 // BSD-style license that can be found in the LICENSE file. | 365 // BSD-style license that can be found in the LICENSE file. |
| 366 | 366 |
| 367 | 367 |
| 368 @DocsEditable | 368 @DocsEditable() |
| 369 @DomName('AudioDestinationNode') | 369 @DomName('AudioDestinationNode') |
| 370 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe
stinationNode-section | 370 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe
stinationNode-section |
| 371 @Experimental | 371 @Experimental() |
| 372 class AudioDestinationNode extends AudioNode native "AudioDestinationNode" { | 372 class AudioDestinationNode extends AudioNode native "AudioDestinationNode" { |
| 373 // To suppress missing implicit constructor warnings. | 373 // To suppress missing implicit constructor warnings. |
| 374 factory AudioDestinationNode._() { throw new UnsupportedError("Not supported")
; } | 374 factory AudioDestinationNode._() { throw new UnsupportedError("Not supported")
; } |
| 375 | 375 |
| 376 @DomName('AudioDestinationNode.maxChannelCount') | 376 @DomName('AudioDestinationNode.maxChannelCount') |
| 377 @DocsEditable | 377 @DocsEditable() |
| 378 final int maxChannelCount; | 378 final int maxChannelCount; |
| 379 } | 379 } |
| 380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 380 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 381 // for details. All rights reserved. Use of this source code is governed by a | 381 // for details. All rights reserved. Use of this source code is governed by a |
| 382 // BSD-style license that can be found in the LICENSE file. | 382 // BSD-style license that can be found in the LICENSE file. |
| 383 | 383 |
| 384 | 384 |
| 385 @DocsEditable | 385 @DocsEditable() |
| 386 @DomName('AudioListener') | 386 @DomName('AudioListener') |
| 387 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi
stener-section | 387 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi
stener-section |
| 388 @Experimental | 388 @Experimental() |
| 389 class AudioListener extends Interceptor native "AudioListener" { | 389 class AudioListener extends Interceptor native "AudioListener" { |
| 390 | 390 |
| 391 @DomName('AudioListener.dopplerFactor') | 391 @DomName('AudioListener.dopplerFactor') |
| 392 @DocsEditable | 392 @DocsEditable() |
| 393 num dopplerFactor; | 393 num dopplerFactor; |
| 394 | 394 |
| 395 @DomName('AudioListener.speedOfSound') | 395 @DomName('AudioListener.speedOfSound') |
| 396 @DocsEditable | 396 @DocsEditable() |
| 397 num speedOfSound; | 397 num speedOfSound; |
| 398 | 398 |
| 399 @DomName('AudioListener.setOrientation') | 399 @DomName('AudioListener.setOrientation') |
| 400 @DocsEditable | 400 @DocsEditable() |
| 401 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; | 401 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; |
| 402 | 402 |
| 403 @DomName('AudioListener.setPosition') | 403 @DomName('AudioListener.setPosition') |
| 404 @DocsEditable | 404 @DocsEditable() |
| 405 void setPosition(num x, num y, num z) native; | 405 void setPosition(num x, num y, num z) native; |
| 406 | 406 |
| 407 @DomName('AudioListener.setVelocity') | 407 @DomName('AudioListener.setVelocity') |
| 408 @DocsEditable | 408 @DocsEditable() |
| 409 void setVelocity(num x, num y, num z) native; | 409 void setVelocity(num x, num y, num z) native; |
| 410 } | 410 } |
| 411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 412 // for details. All rights reserved. Use of this source code is governed by a | 412 // for details. All rights reserved. Use of this source code is governed by a |
| 413 // BSD-style license that can be found in the LICENSE file. | 413 // BSD-style license that can be found in the LICENSE file. |
| 414 | 414 |
| 415 | 415 |
| 416 @DocsEditable | 416 @DocsEditable() |
| 417 @DomName('AudioNode') | 417 @DomName('AudioNode') |
| 418 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo
de-section | 418 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo
de-section |
| 419 @Experimental | 419 @Experimental() |
| 420 class AudioNode extends EventTarget native "AudioNode" { | 420 class AudioNode extends EventTarget native "AudioNode" { |
| 421 // To suppress missing implicit constructor warnings. | 421 // To suppress missing implicit constructor warnings. |
| 422 factory AudioNode._() { throw new UnsupportedError("Not supported"); } | 422 factory AudioNode._() { throw new UnsupportedError("Not supported"); } |
| 423 | 423 |
| 424 @DomName('AudioNode.channelCount') | 424 @DomName('AudioNode.channelCount') |
| 425 @DocsEditable | 425 @DocsEditable() |
| 426 int channelCount; | 426 int channelCount; |
| 427 | 427 |
| 428 @DomName('AudioNode.channelCountMode') | 428 @DomName('AudioNode.channelCountMode') |
| 429 @DocsEditable | 429 @DocsEditable() |
| 430 String channelCountMode; | 430 String channelCountMode; |
| 431 | 431 |
| 432 @DomName('AudioNode.channelInterpretation') | 432 @DomName('AudioNode.channelInterpretation') |
| 433 @DocsEditable | 433 @DocsEditable() |
| 434 String channelInterpretation; | 434 String channelInterpretation; |
| 435 | 435 |
| 436 @DomName('AudioNode.context') | 436 @DomName('AudioNode.context') |
| 437 @DocsEditable | 437 @DocsEditable() |
| 438 final AudioContext context; | 438 final AudioContext context; |
| 439 | 439 |
| 440 @DomName('AudioNode.numberOfInputs') | 440 @DomName('AudioNode.numberOfInputs') |
| 441 @DocsEditable | 441 @DocsEditable() |
| 442 final int numberOfInputs; | 442 final int numberOfInputs; |
| 443 | 443 |
| 444 @DomName('AudioNode.numberOfOutputs') | 444 @DomName('AudioNode.numberOfOutputs') |
| 445 @DocsEditable | 445 @DocsEditable() |
| 446 final int numberOfOutputs; | 446 final int numberOfOutputs; |
| 447 | 447 |
| 448 @JSName('addEventListener') | 448 @JSName('addEventListener') |
| 449 @DomName('AudioNode.addEventListener') | 449 @DomName('AudioNode.addEventListener') |
| 450 @DocsEditable | 450 @DocsEditable() |
| 451 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 451 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 452 | 452 |
| 453 @DomName('AudioNode.connect') | 453 @DomName('AudioNode.connect') |
| 454 @DocsEditable | 454 @DocsEditable() |
| 455 void connect(destination, int output, [int input]) native; | 455 void connect(destination, int output, [int input]) native; |
| 456 | 456 |
| 457 @DomName('AudioNode.disconnect') | 457 @DomName('AudioNode.disconnect') |
| 458 @DocsEditable | 458 @DocsEditable() |
| 459 void disconnect(int output) native; | 459 void disconnect(int output) native; |
| 460 | 460 |
| 461 @DomName('AudioNode.dispatchEvent') | 461 @DomName('AudioNode.dispatchEvent') |
| 462 @DocsEditable | 462 @DocsEditable() |
| 463 bool dispatchEvent(Event event) native; | 463 bool dispatchEvent(Event event) native; |
| 464 | 464 |
| 465 @JSName('removeEventListener') | 465 @JSName('removeEventListener') |
| 466 @DomName('AudioNode.removeEventListener') | 466 @DomName('AudioNode.removeEventListener') |
| 467 @DocsEditable | 467 @DocsEditable() |
| 468 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 468 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 469 } | 469 } |
| 470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 471 // for details. All rights reserved. Use of this source code is governed by a | 471 // for details. All rights reserved. Use of this source code is governed by a |
| 472 // BSD-style license that can be found in the LICENSE file. | 472 // BSD-style license that can be found in the LICENSE file. |
| 473 | 473 |
| 474 | 474 |
| 475 @DocsEditable | 475 @DocsEditable() |
| 476 @DomName('AudioParam') | 476 @DomName('AudioParam') |
| 477 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa
ram | 477 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa
ram |
| 478 @Experimental | 478 @Experimental() |
| 479 class AudioParam extends Interceptor native "AudioParam" { | 479 class AudioParam extends Interceptor native "AudioParam" { |
| 480 | 480 |
| 481 @DomName('AudioParam.defaultValue') | 481 @DomName('AudioParam.defaultValue') |
| 482 @DocsEditable | 482 @DocsEditable() |
| 483 final num defaultValue; | 483 final num defaultValue; |
| 484 | 484 |
| 485 @DomName('AudioParam.maxValue') | 485 @DomName('AudioParam.maxValue') |
| 486 @DocsEditable | 486 @DocsEditable() |
| 487 final num maxValue; | 487 final num maxValue; |
| 488 | 488 |
| 489 @DomName('AudioParam.minValue') | 489 @DomName('AudioParam.minValue') |
| 490 @DocsEditable | 490 @DocsEditable() |
| 491 final num minValue; | 491 final num minValue; |
| 492 | 492 |
| 493 @DomName('AudioParam.name') | 493 @DomName('AudioParam.name') |
| 494 @DocsEditable | 494 @DocsEditable() |
| 495 final String name; | 495 final String name; |
| 496 | 496 |
| 497 @DomName('AudioParam.units') | 497 @DomName('AudioParam.units') |
| 498 @DocsEditable | 498 @DocsEditable() |
| 499 final int units; | 499 final int units; |
| 500 | 500 |
| 501 @DomName('AudioParam.value') | 501 @DomName('AudioParam.value') |
| 502 @DocsEditable | 502 @DocsEditable() |
| 503 num value; | 503 num value; |
| 504 | 504 |
| 505 @DomName('AudioParam.cancelScheduledValues') | 505 @DomName('AudioParam.cancelScheduledValues') |
| 506 @DocsEditable | 506 @DocsEditable() |
| 507 void cancelScheduledValues(num startTime) native; | 507 void cancelScheduledValues(num startTime) native; |
| 508 | 508 |
| 509 @DomName('AudioParam.exponentialRampToValueAtTime') | 509 @DomName('AudioParam.exponentialRampToValueAtTime') |
| 510 @DocsEditable | 510 @DocsEditable() |
| 511 void exponentialRampToValueAtTime(num value, num time) native; | 511 void exponentialRampToValueAtTime(num value, num time) native; |
| 512 | 512 |
| 513 @DomName('AudioParam.linearRampToValueAtTime') | 513 @DomName('AudioParam.linearRampToValueAtTime') |
| 514 @DocsEditable | 514 @DocsEditable() |
| 515 void linearRampToValueAtTime(num value, num time) native; | 515 void linearRampToValueAtTime(num value, num time) native; |
| 516 | 516 |
| 517 @DomName('AudioParam.setTargetAtTime') | 517 @DomName('AudioParam.setTargetAtTime') |
| 518 @DocsEditable | 518 @DocsEditable() |
| 519 void setTargetAtTime(num target, num time, num timeConstant) native; | 519 void setTargetAtTime(num target, num time, num timeConstant) native; |
| 520 | 520 |
| 521 @DomName('AudioParam.setTargetValueAtTime') | 521 @DomName('AudioParam.setTargetValueAtTime') |
| 522 @DocsEditable | 522 @DocsEditable() |
| 523 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native; | 523 void setTargetValueAtTime(num targetValue, num time, num timeConstant) native; |
| 524 | 524 |
| 525 @DomName('AudioParam.setValueAtTime') | 525 @DomName('AudioParam.setValueAtTime') |
| 526 @DocsEditable | 526 @DocsEditable() |
| 527 void setValueAtTime(num value, num time) native; | 527 void setValueAtTime(num value, num time) native; |
| 528 | 528 |
| 529 @DomName('AudioParam.setValueCurveAtTime') | 529 @DomName('AudioParam.setValueCurveAtTime') |
| 530 @DocsEditable | 530 @DocsEditable() |
| 531 void setValueCurveAtTime(Float32List values, num time, num duration) native; | 531 void setValueCurveAtTime(Float32List values, num time, num duration) native; |
| 532 } | 532 } |
| 533 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 533 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 534 // for details. All rights reserved. Use of this source code is governed by a | 534 // for details. All rights reserved. Use of this source code is governed by a |
| 535 // BSD-style license that can be found in the LICENSE file. | 535 // BSD-style license that can be found in the LICENSE file. |
| 536 | 536 |
| 537 | 537 |
| 538 @DocsEditable | 538 @DocsEditable() |
| 539 @DomName('AudioProcessingEvent') | 539 @DomName('AudioProcessingEvent') |
| 540 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr
ocessingEvent-section | 540 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr
ocessingEvent-section |
| 541 @Experimental | 541 @Experimental() |
| 542 class AudioProcessingEvent extends Event native "AudioProcessingEvent" { | 542 class AudioProcessingEvent extends Event native "AudioProcessingEvent" { |
| 543 // To suppress missing implicit constructor warnings. | 543 // To suppress missing implicit constructor warnings. |
| 544 factory AudioProcessingEvent._() { throw new UnsupportedError("Not supported")
; } | 544 factory AudioProcessingEvent._() { throw new UnsupportedError("Not supported")
; } |
| 545 | 545 |
| 546 @DomName('AudioProcessingEvent.inputBuffer') | 546 @DomName('AudioProcessingEvent.inputBuffer') |
| 547 @DocsEditable | 547 @DocsEditable() |
| 548 final AudioBuffer inputBuffer; | 548 final AudioBuffer inputBuffer; |
| 549 | 549 |
| 550 @DomName('AudioProcessingEvent.outputBuffer') | 550 @DomName('AudioProcessingEvent.outputBuffer') |
| 551 @DocsEditable | 551 @DocsEditable() |
| 552 final AudioBuffer outputBuffer; | 552 final AudioBuffer outputBuffer; |
| 553 } | 553 } |
| 554 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 554 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 555 // for details. All rights reserved. Use of this source code is governed by a | 555 // for details. All rights reserved. Use of this source code is governed by a |
| 556 // BSD-style license that can be found in the LICENSE file. | 556 // BSD-style license that can be found in the LICENSE file. |
| 557 | 557 |
| 558 | 558 |
| 559 @DocsEditable | 559 @DocsEditable() |
| 560 @DomName('AudioSourceNode') | 560 @DomName('AudioSourceNode') |
| 561 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html | 561 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html |
| 562 @Experimental | 562 @Experimental() |
| 563 class AudioSourceNode extends AudioNode native "AudioSourceNode" { | 563 class AudioSourceNode extends AudioNode native "AudioSourceNode" { |
| 564 // To suppress missing implicit constructor warnings. | 564 // To suppress missing implicit constructor warnings. |
| 565 factory AudioSourceNode._() { throw new UnsupportedError("Not supported"); } | 565 factory AudioSourceNode._() { throw new UnsupportedError("Not supported"); } |
| 566 } | 566 } |
| 567 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 567 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 568 // for details. All rights reserved. Use of this source code is governed by a | 568 // for details. All rights reserved. Use of this source code is governed by a |
| 569 // BSD-style license that can be found in the LICENSE file. | 569 // BSD-style license that can be found in the LICENSE file. |
| 570 | 570 |
| 571 | 571 |
| 572 @DocsEditable | 572 @DocsEditable() |
| 573 @DomName('BiquadFilterNode') | 573 @DomName('BiquadFilterNode') |
| 574 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF
ilterNode-section | 574 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF
ilterNode-section |
| 575 @Experimental | 575 @Experimental() |
| 576 class BiquadFilterNode extends AudioNode native "BiquadFilterNode" { | 576 class BiquadFilterNode extends AudioNode native "BiquadFilterNode" { |
| 577 // To suppress missing implicit constructor warnings. | 577 // To suppress missing implicit constructor warnings. |
| 578 factory BiquadFilterNode._() { throw new UnsupportedError("Not supported"); } | 578 factory BiquadFilterNode._() { throw new UnsupportedError("Not supported"); } |
| 579 | 579 |
| 580 @DomName('BiquadFilterNode.ALLPASS') | 580 @DomName('BiquadFilterNode.ALLPASS') |
| 581 @DocsEditable | 581 @DocsEditable() |
| 582 static const int ALLPASS = 7; | 582 static const int ALLPASS = 7; |
| 583 | 583 |
| 584 @DomName('BiquadFilterNode.BANDPASS') | 584 @DomName('BiquadFilterNode.BANDPASS') |
| 585 @DocsEditable | 585 @DocsEditable() |
| 586 static const int BANDPASS = 2; | 586 static const int BANDPASS = 2; |
| 587 | 587 |
| 588 @DomName('BiquadFilterNode.HIGHPASS') | 588 @DomName('BiquadFilterNode.HIGHPASS') |
| 589 @DocsEditable | 589 @DocsEditable() |
| 590 static const int HIGHPASS = 1; | 590 static const int HIGHPASS = 1; |
| 591 | 591 |
| 592 @DomName('BiquadFilterNode.HIGHSHELF') | 592 @DomName('BiquadFilterNode.HIGHSHELF') |
| 593 @DocsEditable | 593 @DocsEditable() |
| 594 static const int HIGHSHELF = 4; | 594 static const int HIGHSHELF = 4; |
| 595 | 595 |
| 596 @DomName('BiquadFilterNode.LOWPASS') | 596 @DomName('BiquadFilterNode.LOWPASS') |
| 597 @DocsEditable | 597 @DocsEditable() |
| 598 static const int LOWPASS = 0; | 598 static const int LOWPASS = 0; |
| 599 | 599 |
| 600 @DomName('BiquadFilterNode.LOWSHELF') | 600 @DomName('BiquadFilterNode.LOWSHELF') |
| 601 @DocsEditable | 601 @DocsEditable() |
| 602 static const int LOWSHELF = 3; | 602 static const int LOWSHELF = 3; |
| 603 | 603 |
| 604 @DomName('BiquadFilterNode.NOTCH') | 604 @DomName('BiquadFilterNode.NOTCH') |
| 605 @DocsEditable | 605 @DocsEditable() |
| 606 static const int NOTCH = 6; | 606 static const int NOTCH = 6; |
| 607 | 607 |
| 608 @DomName('BiquadFilterNode.PEAKING') | 608 @DomName('BiquadFilterNode.PEAKING') |
| 609 @DocsEditable | 609 @DocsEditable() |
| 610 static const int PEAKING = 5; | 610 static const int PEAKING = 5; |
| 611 | 611 |
| 612 @DomName('BiquadFilterNode.Q') | 612 @DomName('BiquadFilterNode.Q') |
| 613 @DocsEditable | 613 @DocsEditable() |
| 614 final AudioParam Q; | 614 final AudioParam Q; |
| 615 | 615 |
| 616 @DomName('BiquadFilterNode.detune') | 616 @DomName('BiquadFilterNode.detune') |
| 617 @DocsEditable | 617 @DocsEditable() |
| 618 final AudioParam detune; | 618 final AudioParam detune; |
| 619 | 619 |
| 620 @DomName('BiquadFilterNode.frequency') | 620 @DomName('BiquadFilterNode.frequency') |
| 621 @DocsEditable | 621 @DocsEditable() |
| 622 final AudioParam frequency; | 622 final AudioParam frequency; |
| 623 | 623 |
| 624 @DomName('BiquadFilterNode.gain') | 624 @DomName('BiquadFilterNode.gain') |
| 625 @DocsEditable | 625 @DocsEditable() |
| 626 final AudioParam gain; | 626 final AudioParam gain; |
| 627 | 627 |
| 628 @DomName('BiquadFilterNode.type') | 628 @DomName('BiquadFilterNode.type') |
| 629 @DocsEditable | 629 @DocsEditable() |
| 630 String type; | 630 String type; |
| 631 | 631 |
| 632 @DomName('BiquadFilterNode.getFrequencyResponse') | 632 @DomName('BiquadFilterNode.getFrequencyResponse') |
| 633 @DocsEditable | 633 @DocsEditable() |
| 634 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl
oat32List phaseResponse) native; | 634 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl
oat32List phaseResponse) native; |
| 635 } | 635 } |
| 636 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 636 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 637 // for details. All rights reserved. Use of this source code is governed by a | 637 // for details. All rights reserved. Use of this source code is governed by a |
| 638 // BSD-style license that can be found in the LICENSE file. | 638 // BSD-style license that can be found in the LICENSE file. |
| 639 | 639 |
| 640 | 640 |
| 641 @DocsEditable | 641 @DocsEditable() |
| 642 @DomName('ChannelMergerNode') | 642 @DomName('ChannelMergerNode') |
| 643 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
MergerNode-section | 643 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
MergerNode-section |
| 644 @Experimental | 644 @Experimental() |
| 645 class ChannelMergerNode extends AudioNode native "ChannelMergerNode,AudioChannel
Merger" { | 645 class ChannelMergerNode extends AudioNode native "ChannelMergerNode,AudioChannel
Merger" { |
| 646 // To suppress missing implicit constructor warnings. | 646 // To suppress missing implicit constructor warnings. |
| 647 factory ChannelMergerNode._() { throw new UnsupportedError("Not supported"); } | 647 factory ChannelMergerNode._() { throw new UnsupportedError("Not supported"); } |
| 648 } | 648 } |
| 649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 649 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 650 // for details. All rights reserved. Use of this source code is governed by a | 650 // for details. All rights reserved. Use of this source code is governed by a |
| 651 // BSD-style license that can be found in the LICENSE file. | 651 // BSD-style license that can be found in the LICENSE file. |
| 652 | 652 |
| 653 | 653 |
| 654 @DocsEditable | 654 @DocsEditable() |
| 655 @DomName('ChannelSplitterNode') | 655 @DomName('ChannelSplitterNode') |
| 656 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
SplitterNode-section | 656 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel
SplitterNode-section |
| 657 @Experimental | 657 @Experimental() |
| 658 class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode,AudioCha
nnelSplitter" { | 658 class ChannelSplitterNode extends AudioNode native "ChannelSplitterNode,AudioCha
nnelSplitter" { |
| 659 // To suppress missing implicit constructor warnings. | 659 // To suppress missing implicit constructor warnings. |
| 660 factory ChannelSplitterNode._() { throw new UnsupportedError("Not supported");
} | 660 factory ChannelSplitterNode._() { throw new UnsupportedError("Not supported");
} |
| 661 } | 661 } |
| 662 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 662 // 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 | 663 // 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. | 664 // BSD-style license that can be found in the LICENSE file. |
| 665 | 665 |
| 666 | 666 |
| 667 @DocsEditable | 667 @DocsEditable() |
| 668 @DomName('ConvolverNode') | 668 @DomName('ConvolverNode') |
| 669 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv
erNode | 669 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv
erNode |
| 670 @Experimental | 670 @Experimental() |
| 671 class ConvolverNode extends AudioNode native "ConvolverNode" { | 671 class ConvolverNode extends AudioNode native "ConvolverNode" { |
| 672 // To suppress missing implicit constructor warnings. | 672 // To suppress missing implicit constructor warnings. |
| 673 factory ConvolverNode._() { throw new UnsupportedError("Not supported"); } | 673 factory ConvolverNode._() { throw new UnsupportedError("Not supported"); } |
| 674 | 674 |
| 675 @DomName('ConvolverNode.buffer') | 675 @DomName('ConvolverNode.buffer') |
| 676 @DocsEditable | 676 @DocsEditable() |
| 677 AudioBuffer buffer; | 677 AudioBuffer buffer; |
| 678 | 678 |
| 679 @DomName('ConvolverNode.normalize') | 679 @DomName('ConvolverNode.normalize') |
| 680 @DocsEditable | 680 @DocsEditable() |
| 681 bool normalize; | 681 bool normalize; |
| 682 } | 682 } |
| 683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 684 // for details. All rights reserved. Use of this source code is governed by a | 684 // for details. All rights reserved. Use of this source code is governed by a |
| 685 // BSD-style license that can be found in the LICENSE file. | 685 // BSD-style license that can be found in the LICENSE file. |
| 686 | 686 |
| 687 | 687 |
| 688 @DocsEditable | 688 @DocsEditable() |
| 689 @DomName('DelayNode') | 689 @DomName('DelayNode') |
| 690 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo
de | 690 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo
de |
| 691 @Experimental | 691 @Experimental() |
| 692 class DelayNode extends AudioNode native "DelayNode" { | 692 class DelayNode extends AudioNode native "DelayNode" { |
| 693 // To suppress missing implicit constructor warnings. | 693 // To suppress missing implicit constructor warnings. |
| 694 factory DelayNode._() { throw new UnsupportedError("Not supported"); } | 694 factory DelayNode._() { throw new UnsupportedError("Not supported"); } |
| 695 | 695 |
| 696 @DomName('DelayNode.delayTime') | 696 @DomName('DelayNode.delayTime') |
| 697 @DocsEditable | 697 @DocsEditable() |
| 698 final AudioParam delayTime; | 698 final AudioParam delayTime; |
| 699 } | 699 } |
| 700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 701 // for details. All rights reserved. Use of this source code is governed by a | 701 // for details. All rights reserved. Use of this source code is governed by a |
| 702 // BSD-style license that can be found in the LICENSE file. | 702 // BSD-style license that can be found in the LICENSE file. |
| 703 | 703 |
| 704 | 704 |
| 705 @DocsEditable | 705 @DocsEditable() |
| 706 @DomName('DynamicsCompressorNode') | 706 @DomName('DynamicsCompressorNode') |
| 707 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic
sCompressorNode | 707 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic
sCompressorNode |
| 708 @Experimental | 708 @Experimental() |
| 709 class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" { | 709 class DynamicsCompressorNode extends AudioNode native "DynamicsCompressorNode" { |
| 710 // To suppress missing implicit constructor warnings. | 710 // To suppress missing implicit constructor warnings. |
| 711 factory DynamicsCompressorNode._() { throw new UnsupportedError("Not supported
"); } | 711 factory DynamicsCompressorNode._() { throw new UnsupportedError("Not supported
"); } |
| 712 | 712 |
| 713 @DomName('DynamicsCompressorNode.attack') | 713 @DomName('DynamicsCompressorNode.attack') |
| 714 @DocsEditable | 714 @DocsEditable() |
| 715 final AudioParam attack; | 715 final AudioParam attack; |
| 716 | 716 |
| 717 @DomName('DynamicsCompressorNode.knee') | 717 @DomName('DynamicsCompressorNode.knee') |
| 718 @DocsEditable | 718 @DocsEditable() |
| 719 final AudioParam knee; | 719 final AudioParam knee; |
| 720 | 720 |
| 721 @DomName('DynamicsCompressorNode.ratio') | 721 @DomName('DynamicsCompressorNode.ratio') |
| 722 @DocsEditable | 722 @DocsEditable() |
| 723 final AudioParam ratio; | 723 final AudioParam ratio; |
| 724 | 724 |
| 725 @DomName('DynamicsCompressorNode.reduction') | 725 @DomName('DynamicsCompressorNode.reduction') |
| 726 @DocsEditable | 726 @DocsEditable() |
| 727 final AudioParam reduction; | 727 final AudioParam reduction; |
| 728 | 728 |
| 729 @DomName('DynamicsCompressorNode.release') | 729 @DomName('DynamicsCompressorNode.release') |
| 730 @DocsEditable | 730 @DocsEditable() |
| 731 final AudioParam release; | 731 final AudioParam release; |
| 732 | 732 |
| 733 @DomName('DynamicsCompressorNode.threshold') | 733 @DomName('DynamicsCompressorNode.threshold') |
| 734 @DocsEditable | 734 @DocsEditable() |
| 735 final AudioParam threshold; | 735 final AudioParam threshold; |
| 736 } | 736 } |
| 737 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 737 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 738 // for details. All rights reserved. Use of this source code is governed by a | 738 // for details. All rights reserved. Use of this source code is governed by a |
| 739 // BSD-style license that can be found in the LICENSE file. | 739 // BSD-style license that can be found in the LICENSE file. |
| 740 | 740 |
| 741 | 741 |
| 742 @DocsEditable | 742 @DocsEditable() |
| 743 @DomName('GainNode') | 743 @DomName('GainNode') |
| 744 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod
e | 744 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod
e |
| 745 @Experimental | 745 @Experimental() |
| 746 class GainNode extends AudioNode native "GainNode,AudioGainNode" { | 746 class GainNode extends AudioNode native "GainNode,AudioGainNode" { |
| 747 // To suppress missing implicit constructor warnings. | 747 // To suppress missing implicit constructor warnings. |
| 748 factory GainNode._() { throw new UnsupportedError("Not supported"); } | 748 factory GainNode._() { throw new UnsupportedError("Not supported"); } |
| 749 | 749 |
| 750 @DomName('GainNode.gain') | 750 @DomName('GainNode.gain') |
| 751 @DocsEditable | 751 @DocsEditable() |
| 752 final AudioParam gain; | 752 final AudioParam gain; |
| 753 } | 753 } |
| 754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 755 // for details. All rights reserved. Use of this source code is governed by a | 755 // for details. All rights reserved. Use of this source code is governed by a |
| 756 // BSD-style license that can be found in the LICENSE file. | 756 // BSD-style license that can be found in the LICENSE file. |
| 757 | 757 |
| 758 | 758 |
| 759 @DocsEditable | 759 @DocsEditable() |
| 760 @DomName('MediaElementAudioSourceNode') | 760 @DomName('MediaElementAudioSourceNode') |
| 761 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl
ementAudioSourceNode | 761 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl
ementAudioSourceNode |
| 762 @Experimental | 762 @Experimental() |
| 763 class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAu
dioSourceNode" { | 763 class MediaElementAudioSourceNode extends AudioSourceNode native "MediaElementAu
dioSourceNode" { |
| 764 // To suppress missing implicit constructor warnings. | 764 // To suppress missing implicit constructor warnings. |
| 765 factory MediaElementAudioSourceNode._() { throw new UnsupportedError("Not supp
orted"); } | 765 factory MediaElementAudioSourceNode._() { throw new UnsupportedError("Not supp
orted"); } |
| 766 | 766 |
| 767 @DomName('MediaElementAudioSourceNode.mediaElement') | 767 @DomName('MediaElementAudioSourceNode.mediaElement') |
| 768 @DocsEditable | 768 @DocsEditable() |
| 769 @Experimental // non-standard | 769 @Experimental() // non-standard |
| 770 final MediaElement mediaElement; | 770 final MediaElement mediaElement; |
| 771 } | 771 } |
| 772 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 772 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 773 // for details. All rights reserved. Use of this source code is governed by a | 773 // for details. All rights reserved. Use of this source code is governed by a |
| 774 // BSD-style license that can be found in the LICENSE file. | 774 // BSD-style license that can be found in the LICENSE file. |
| 775 | 775 |
| 776 | 776 |
| 777 @DocsEditable | 777 @DocsEditable() |
| 778 @DomName('MediaStreamAudioDestinationNode') | 778 @DomName('MediaStreamAudioDestinationNode') |
| 779 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioDestinationNode | 779 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioDestinationNode |
| 780 @Experimental | 780 @Experimental() |
| 781 class MediaStreamAudioDestinationNode extends AudioSourceNode native "MediaStrea
mAudioDestinationNode" { | 781 class MediaStreamAudioDestinationNode extends AudioSourceNode native "MediaStrea
mAudioDestinationNode" { |
| 782 // To suppress missing implicit constructor warnings. | 782 // To suppress missing implicit constructor warnings. |
| 783 factory MediaStreamAudioDestinationNode._() { throw new UnsupportedError("Not
supported"); } | 783 factory MediaStreamAudioDestinationNode._() { throw new UnsupportedError("Not
supported"); } |
| 784 | 784 |
| 785 @DomName('MediaStreamAudioDestinationNode.stream') | 785 @DomName('MediaStreamAudioDestinationNode.stream') |
| 786 @DocsEditable | 786 @DocsEditable() |
| 787 final MediaStream stream; | 787 final MediaStream stream; |
| 788 } | 788 } |
| 789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 790 // for details. All rights reserved. Use of this source code is governed by a | 790 // for details. All rights reserved. Use of this source code is governed by a |
| 791 // BSD-style license that can be found in the LICENSE file. | 791 // BSD-style license that can be found in the LICENSE file. |
| 792 | 792 |
| 793 | 793 |
| 794 @DocsEditable | 794 @DocsEditable() |
| 795 @DomName('MediaStreamAudioSourceNode') | 795 @DomName('MediaStreamAudioSourceNode') |
| 796 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioSourceNode | 796 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt
reamAudioSourceNode |
| 797 @Experimental | 797 @Experimental() |
| 798 class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudi
oSourceNode" { | 798 class MediaStreamAudioSourceNode extends AudioSourceNode native "MediaStreamAudi
oSourceNode" { |
| 799 // To suppress missing implicit constructor warnings. | 799 // To suppress missing implicit constructor warnings. |
| 800 factory MediaStreamAudioSourceNode._() { throw new UnsupportedError("Not suppo
rted"); } | 800 factory MediaStreamAudioSourceNode._() { throw new UnsupportedError("Not suppo
rted"); } |
| 801 | 801 |
| 802 @DomName('MediaStreamAudioSourceNode.mediaStream') | 802 @DomName('MediaStreamAudioSourceNode.mediaStream') |
| 803 @DocsEditable | 803 @DocsEditable() |
| 804 final MediaStream mediaStream; | 804 final MediaStream mediaStream; |
| 805 } | 805 } |
| 806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 806 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 807 // for details. All rights reserved. Use of this source code is governed by a | 807 // for details. All rights reserved. Use of this source code is governed by a |
| 808 // BSD-style license that can be found in the LICENSE file. | 808 // BSD-style license that can be found in the LICENSE file. |
| 809 | 809 |
| 810 | 810 |
| 811 @DocsEditable | 811 @DocsEditable() |
| 812 @DomName('OfflineAudioCompletionEvent') | 812 @DomName('OfflineAudioCompletionEvent') |
| 813 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioCompletionEvent-section | 813 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioCompletionEvent-section |
| 814 @Experimental | 814 @Experimental() |
| 815 class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEv
ent" { | 815 class OfflineAudioCompletionEvent extends Event native "OfflineAudioCompletionEv
ent" { |
| 816 // To suppress missing implicit constructor warnings. | 816 // To suppress missing implicit constructor warnings. |
| 817 factory OfflineAudioCompletionEvent._() { throw new UnsupportedError("Not supp
orted"); } | 817 factory OfflineAudioCompletionEvent._() { throw new UnsupportedError("Not supp
orted"); } |
| 818 | 818 |
| 819 @DomName('OfflineAudioCompletionEvent.renderedBuffer') | 819 @DomName('OfflineAudioCompletionEvent.renderedBuffer') |
| 820 @DocsEditable | 820 @DocsEditable() |
| 821 final AudioBuffer renderedBuffer; | 821 final AudioBuffer renderedBuffer; |
| 822 } | 822 } |
| 823 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 823 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 824 // for details. All rights reserved. Use of this source code is governed by a | 824 // for details. All rights reserved. Use of this source code is governed by a |
| 825 // BSD-style license that can be found in the LICENSE file. | 825 // BSD-style license that can be found in the LICENSE file. |
| 826 | 826 |
| 827 | 827 |
| 828 @DocsEditable | 828 @DocsEditable() |
| 829 @DomName('OfflineAudioContext') | 829 @DomName('OfflineAudioContext') |
| 830 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioContext-section | 830 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline
AudioContext-section |
| 831 @Experimental | 831 @Experimental() |
| 832 class OfflineAudioContext extends AudioContext implements EventTarget native "Of
flineAudioContext" { | 832 class OfflineAudioContext extends AudioContext implements EventTarget native "Of
flineAudioContext" { |
| 833 // To suppress missing implicit constructor warnings. | 833 // To suppress missing implicit constructor warnings. |
| 834 factory OfflineAudioContext._() { throw new UnsupportedError("Not supported");
} | 834 factory OfflineAudioContext._() { throw new UnsupportedError("Not supported");
} |
| 835 | 835 |
| 836 @DomName('OfflineAudioContext.OfflineAudioContext') | 836 @DomName('OfflineAudioContext.OfflineAudioContext') |
| 837 @DocsEditable | 837 @DocsEditable() |
| 838 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp
leRate) { | 838 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp
leRate) { |
| 839 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl
eRate); | 839 return OfflineAudioContext._create_1(numberOfChannels, numberOfFrames, sampl
eRate); |
| 840 } | 840 } |
| 841 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR
ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan
nels, numberOfFrames, sampleRate); | 841 static OfflineAudioContext _create_1(numberOfChannels, numberOfFrames, sampleR
ate) => JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', numberOfChan
nels, numberOfFrames, sampleRate); |
| 842 } | 842 } |
| 843 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 843 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 844 // for details. All rights reserved. Use of this source code is governed by a | 844 // for details. All rights reserved. Use of this source code is governed by a |
| 845 // BSD-style license that can be found in the LICENSE file. | 845 // BSD-style license that can be found in the LICENSE file. |
| 846 | 846 |
| 847 | 847 |
| 848 @DocsEditable | 848 @DocsEditable() |
| 849 @DomName('OscillatorNode') | 849 @DomName('OscillatorNode') |
| 850 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc
illatorNode | 850 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc
illatorNode |
| 851 @Experimental | 851 @Experimental() |
| 852 class OscillatorNode extends AudioSourceNode native "OscillatorNode,Oscillator"
{ | 852 class OscillatorNode extends AudioSourceNode native "OscillatorNode,Oscillator"
{ |
| 853 // To suppress missing implicit constructor warnings. | 853 // To suppress missing implicit constructor warnings. |
| 854 factory OscillatorNode._() { throw new UnsupportedError("Not supported"); } | 854 factory OscillatorNode._() { throw new UnsupportedError("Not supported"); } |
| 855 | 855 |
| 856 @DomName('OscillatorNode.CUSTOM') | 856 @DomName('OscillatorNode.CUSTOM') |
| 857 @DocsEditable | 857 @DocsEditable() |
| 858 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 858 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 859 @deprecated // deprecated | 859 @deprecated // deprecated |
| 860 static const int CUSTOM = 4; | 860 static const int CUSTOM = 4; |
| 861 | 861 |
| 862 @DomName('OscillatorNode.FINISHED_STATE') | 862 @DomName('OscillatorNode.FINISHED_STATE') |
| 863 @DocsEditable | 863 @DocsEditable() |
| 864 static const int FINISHED_STATE = 3; | 864 static const int FINISHED_STATE = 3; |
| 865 | 865 |
| 866 @DomName('OscillatorNode.PLAYING_STATE') | 866 @DomName('OscillatorNode.PLAYING_STATE') |
| 867 @DocsEditable | 867 @DocsEditable() |
| 868 static const int PLAYING_STATE = 2; | 868 static const int PLAYING_STATE = 2; |
| 869 | 869 |
| 870 @DomName('OscillatorNode.SAWTOOTH') | 870 @DomName('OscillatorNode.SAWTOOTH') |
| 871 @DocsEditable | 871 @DocsEditable() |
| 872 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 872 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 873 @deprecated // deprecated | 873 @deprecated // deprecated |
| 874 static const int SAWTOOTH = 2; | 874 static const int SAWTOOTH = 2; |
| 875 | 875 |
| 876 @DomName('OscillatorNode.SCHEDULED_STATE') | 876 @DomName('OscillatorNode.SCHEDULED_STATE') |
| 877 @DocsEditable | 877 @DocsEditable() |
| 878 static const int SCHEDULED_STATE = 1; | 878 static const int SCHEDULED_STATE = 1; |
| 879 | 879 |
| 880 @DomName('OscillatorNode.SINE') | 880 @DomName('OscillatorNode.SINE') |
| 881 @DocsEditable | 881 @DocsEditable() |
| 882 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 882 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 883 @deprecated // deprecated | 883 @deprecated // deprecated |
| 884 static const int SINE = 0; | 884 static const int SINE = 0; |
| 885 | 885 |
| 886 @DomName('OscillatorNode.SQUARE') | 886 @DomName('OscillatorNode.SQUARE') |
| 887 @DocsEditable | 887 @DocsEditable() |
| 888 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 888 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 889 @deprecated // deprecated | 889 @deprecated // deprecated |
| 890 static const int SQUARE = 1; | 890 static const int SQUARE = 1; |
| 891 | 891 |
| 892 @DomName('OscillatorNode.TRIANGLE') | 892 @DomName('OscillatorNode.TRIANGLE') |
| 893 @DocsEditable | 893 @DocsEditable() |
| 894 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 894 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 895 @deprecated // deprecated | 895 @deprecated // deprecated |
| 896 static const int TRIANGLE = 3; | 896 static const int TRIANGLE = 3; |
| 897 | 897 |
| 898 @DomName('OscillatorNode.UNSCHEDULED_STATE') | 898 @DomName('OscillatorNode.UNSCHEDULED_STATE') |
| 899 @DocsEditable | 899 @DocsEditable() |
| 900 static const int UNSCHEDULED_STATE = 0; | 900 static const int UNSCHEDULED_STATE = 0; |
| 901 | 901 |
| 902 @DomName('OscillatorNode.detune') | 902 @DomName('OscillatorNode.detune') |
| 903 @DocsEditable | 903 @DocsEditable() |
| 904 final AudioParam detune; | 904 final AudioParam detune; |
| 905 | 905 |
| 906 @DomName('OscillatorNode.frequency') | 906 @DomName('OscillatorNode.frequency') |
| 907 @DocsEditable | 907 @DocsEditable() |
| 908 final AudioParam frequency; | 908 final AudioParam frequency; |
| 909 | 909 |
| 910 @DomName('OscillatorNode.playbackState') | 910 @DomName('OscillatorNode.playbackState') |
| 911 @DocsEditable | 911 @DocsEditable() |
| 912 final int playbackState; | 912 final int playbackState; |
| 913 | 913 |
| 914 @DomName('OscillatorNode.type') | 914 @DomName('OscillatorNode.type') |
| 915 @DocsEditable | 915 @DocsEditable() |
| 916 String type; | 916 String type; |
| 917 | 917 |
| 918 @DomName('OscillatorNode.noteOff') | 918 @DomName('OscillatorNode.noteOff') |
| 919 @DocsEditable | 919 @DocsEditable() |
| 920 void noteOff(num when) native; | 920 void noteOff(num when) native; |
| 921 | 921 |
| 922 @DomName('OscillatorNode.noteOn') | 922 @DomName('OscillatorNode.noteOn') |
| 923 @DocsEditable | 923 @DocsEditable() |
| 924 void noteOn(num when) native; | 924 void noteOn(num when) native; |
| 925 | 925 |
| 926 @DomName('OscillatorNode.setWaveTable') | 926 @DomName('OscillatorNode.setWaveTable') |
| 927 @DocsEditable | 927 @DocsEditable() |
| 928 void setWaveTable(WaveTable waveTable) native; | 928 void setWaveTable(WaveTable waveTable) native; |
| 929 | 929 |
| 930 @DomName('OscillatorNode.start') | 930 @DomName('OscillatorNode.start') |
| 931 @DocsEditable | 931 @DocsEditable() |
| 932 void start(num when) native; | 932 void start(num when) native; |
| 933 | 933 |
| 934 @DomName('OscillatorNode.stop') | 934 @DomName('OscillatorNode.stop') |
| 935 @DocsEditable | 935 @DocsEditable() |
| 936 void stop(num when) native; | 936 void stop(num when) native; |
| 937 } | 937 } |
| 938 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 938 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 939 // for details. All rights reserved. Use of this source code is governed by a | 939 // for details. All rights reserved. Use of this source code is governed by a |
| 940 // BSD-style license that can be found in the LICENSE file. | 940 // BSD-style license that can be found in the LICENSE file. |
| 941 | 941 |
| 942 | 942 |
| 943 @DocsEditable | 943 @DocsEditable() |
| 944 @DomName('PannerNode') | 944 @DomName('PannerNode') |
| 945 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN
ode | 945 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN
ode |
| 946 @Experimental | 946 @Experimental() |
| 947 class PannerNode extends AudioNode native "PannerNode,AudioPannerNode" { | 947 class PannerNode extends AudioNode native "PannerNode,AudioPannerNode" { |
| 948 // To suppress missing implicit constructor warnings. | 948 // To suppress missing implicit constructor warnings. |
| 949 factory PannerNode._() { throw new UnsupportedError("Not supported"); } | 949 factory PannerNode._() { throw new UnsupportedError("Not supported"); } |
| 950 | 950 |
| 951 @DomName('PannerNode.EQUALPOWER') | 951 @DomName('PannerNode.EQUALPOWER') |
| 952 @DocsEditable | 952 @DocsEditable() |
| 953 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 953 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 954 @deprecated // deprecated | 954 @deprecated // deprecated |
| 955 static const int EQUALPOWER = 0; | 955 static const int EQUALPOWER = 0; |
| 956 | 956 |
| 957 @DomName('PannerNode.EXPONENTIAL_DISTANCE') | 957 @DomName('PannerNode.EXPONENTIAL_DISTANCE') |
| 958 @DocsEditable | 958 @DocsEditable() |
| 959 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 959 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 960 @deprecated // deprecated | 960 @deprecated // deprecated |
| 961 static const int EXPONENTIAL_DISTANCE = 2; | 961 static const int EXPONENTIAL_DISTANCE = 2; |
| 962 | 962 |
| 963 @DomName('PannerNode.HRTF') | 963 @DomName('PannerNode.HRTF') |
| 964 @DocsEditable | 964 @DocsEditable() |
| 965 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 965 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 966 @deprecated // deprecated | 966 @deprecated // deprecated |
| 967 static const int HRTF = 1; | 967 static const int HRTF = 1; |
| 968 | 968 |
| 969 @DomName('PannerNode.INVERSE_DISTANCE') | 969 @DomName('PannerNode.INVERSE_DISTANCE') |
| 970 @DocsEditable | 970 @DocsEditable() |
| 971 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 971 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 972 @deprecated // deprecated | 972 @deprecated // deprecated |
| 973 static const int INVERSE_DISTANCE = 1; | 973 static const int INVERSE_DISTANCE = 1; |
| 974 | 974 |
| 975 @DomName('PannerNode.LINEAR_DISTANCE') | 975 @DomName('PannerNode.LINEAR_DISTANCE') |
| 976 @DocsEditable | 976 @DocsEditable() |
| 977 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 977 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 978 @deprecated // deprecated | 978 @deprecated // deprecated |
| 979 static const int LINEAR_DISTANCE = 0; | 979 static const int LINEAR_DISTANCE = 0; |
| 980 | 980 |
| 981 @DomName('PannerNode.SOUNDFIELD') | 981 @DomName('PannerNode.SOUNDFIELD') |
| 982 @DocsEditable | 982 @DocsEditable() |
| 983 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames | 983 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Alter
nateNames |
| 984 @deprecated // deprecated | 984 @deprecated // deprecated |
| 985 static const int SOUNDFIELD = 2; | 985 static const int SOUNDFIELD = 2; |
| 986 | 986 |
| 987 @DomName('PannerNode.coneInnerAngle') | 987 @DomName('PannerNode.coneInnerAngle') |
| 988 @DocsEditable | 988 @DocsEditable() |
| 989 num coneInnerAngle; | 989 num coneInnerAngle; |
| 990 | 990 |
| 991 @DomName('PannerNode.coneOuterAngle') | 991 @DomName('PannerNode.coneOuterAngle') |
| 992 @DocsEditable | 992 @DocsEditable() |
| 993 num coneOuterAngle; | 993 num coneOuterAngle; |
| 994 | 994 |
| 995 @DomName('PannerNode.coneOuterGain') | 995 @DomName('PannerNode.coneOuterGain') |
| 996 @DocsEditable | 996 @DocsEditable() |
| 997 num coneOuterGain; | 997 num coneOuterGain; |
| 998 | 998 |
| 999 @DomName('PannerNode.distanceModel') | 999 @DomName('PannerNode.distanceModel') |
| 1000 @DocsEditable | 1000 @DocsEditable() |
| 1001 String distanceModel; | 1001 String distanceModel; |
| 1002 | 1002 |
| 1003 @DomName('PannerNode.maxDistance') | 1003 @DomName('PannerNode.maxDistance') |
| 1004 @DocsEditable | 1004 @DocsEditable() |
| 1005 num maxDistance; | 1005 num maxDistance; |
| 1006 | 1006 |
| 1007 @DomName('PannerNode.panningModel') | 1007 @DomName('PannerNode.panningModel') |
| 1008 @DocsEditable | 1008 @DocsEditable() |
| 1009 String panningModel; | 1009 String panningModel; |
| 1010 | 1010 |
| 1011 @DomName('PannerNode.refDistance') | 1011 @DomName('PannerNode.refDistance') |
| 1012 @DocsEditable | 1012 @DocsEditable() |
| 1013 num refDistance; | 1013 num refDistance; |
| 1014 | 1014 |
| 1015 @DomName('PannerNode.rolloffFactor') | 1015 @DomName('PannerNode.rolloffFactor') |
| 1016 @DocsEditable | 1016 @DocsEditable() |
| 1017 num rolloffFactor; | 1017 num rolloffFactor; |
| 1018 | 1018 |
| 1019 @DomName('PannerNode.setOrientation') | 1019 @DomName('PannerNode.setOrientation') |
| 1020 @DocsEditable | 1020 @DocsEditable() |
| 1021 void setOrientation(num x, num y, num z) native; | 1021 void setOrientation(num x, num y, num z) native; |
| 1022 | 1022 |
| 1023 @DomName('PannerNode.setPosition') | 1023 @DomName('PannerNode.setPosition') |
| 1024 @DocsEditable | 1024 @DocsEditable() |
| 1025 void setPosition(num x, num y, num z) native; | 1025 void setPosition(num x, num y, num z) native; |
| 1026 | 1026 |
| 1027 @DomName('PannerNode.setVelocity') | 1027 @DomName('PannerNode.setVelocity') |
| 1028 @DocsEditable | 1028 @DocsEditable() |
| 1029 void setVelocity(num x, num y, num z) native; | 1029 void setVelocity(num x, num y, num z) native; |
| 1030 } | 1030 } |
| 1031 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1031 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 1032 // 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 |
| 1033 // BSD-style license that can be found in the LICENSE file. | 1033 // BSD-style license that can be found in the LICENSE file. |
| 1034 | 1034 |
| 1035 | 1035 |
| 1036 @DomName('ScriptProcessorNode') | 1036 @DomName('ScriptProcessorNode') |
| 1037 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP
rocessorNode | 1037 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP
rocessorNode |
| 1038 @Experimental | 1038 @Experimental() |
| 1039 class ScriptProcessorNode extends AudioNode native "ScriptProcessorNode,JavaScri
ptAudioNode" { | 1039 class ScriptProcessorNode extends AudioNode native "ScriptProcessorNode,JavaScri
ptAudioNode" { |
| 1040 Stream<AudioProcessingEvent> _eventStream; | 1040 Stream<AudioProcessingEvent> _eventStream; |
| 1041 | 1041 |
| 1042 /** | 1042 /** |
| 1043 * Get a Stream that fires events when AudioProcessingEvents occur. | 1043 * Get a Stream that fires events when AudioProcessingEvents occur. |
| 1044 * This particular stream is special in that it only allows one listener to a | 1044 * This particular stream is special in that it only allows one listener to a |
| 1045 * given stream. Converting the returned Stream [asBroadcast] will likely ruin | 1045 * given stream. Converting the returned Stream [asBroadcast] will likely ruin |
| 1046 * the soft-real-time properties which which these events are fired and can | 1046 * the soft-real-time properties which which these events are fired and can |
| 1047 * be processed. | 1047 * be processed. |
| 1048 */ | 1048 */ |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1066 | 1066 |
| 1067 _setEventListener(callback) { | 1067 _setEventListener(callback) { |
| 1068 JS('void', '#.onaudioprocess = #', this, | 1068 JS('void', '#.onaudioprocess = #', this, |
| 1069 convertDartClosureToJS(callback, 1)); | 1069 convertDartClosureToJS(callback, 1)); |
| 1070 } | 1070 } |
| 1071 | 1071 |
| 1072 // To suppress missing implicit constructor warnings. | 1072 // To suppress missing implicit constructor warnings. |
| 1073 factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported");
} | 1073 factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported");
} |
| 1074 | 1074 |
| 1075 @DomName('ScriptProcessorNode.bufferSize') | 1075 @DomName('ScriptProcessorNode.bufferSize') |
| 1076 @DocsEditable | 1076 @DocsEditable() |
| 1077 final int bufferSize; | 1077 final int bufferSize; |
| 1078 | 1078 |
| 1079 } | 1079 } |
| 1080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1081 // for details. All rights reserved. Use of this source code is governed by a | 1081 // for details. All rights reserved. Use of this source code is governed by a |
| 1082 // BSD-style license that can be found in the LICENSE file. | 1082 // BSD-style license that can be found in the LICENSE file. |
| 1083 | 1083 |
| 1084 | 1084 |
| 1085 @DocsEditable | 1085 @DocsEditable() |
| 1086 @DomName('WaveShaperNode') | 1086 @DomName('WaveShaperNode') |
| 1087 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav
eShaperNode | 1087 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav
eShaperNode |
| 1088 @Experimental | 1088 @Experimental() |
| 1089 class WaveShaperNode extends AudioNode native "WaveShaperNode" { | 1089 class WaveShaperNode extends AudioNode native "WaveShaperNode" { |
| 1090 // To suppress missing implicit constructor warnings. | 1090 // To suppress missing implicit constructor warnings. |
| 1091 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } | 1091 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } |
| 1092 | 1092 |
| 1093 @DomName('WaveShaperNode.curve') | 1093 @DomName('WaveShaperNode.curve') |
| 1094 @DocsEditable | 1094 @DocsEditable() |
| 1095 Float32List curve; | 1095 Float32List curve; |
| 1096 | 1096 |
| 1097 @DomName('WaveShaperNode.oversample') | 1097 @DomName('WaveShaperNode.oversample') |
| 1098 @DocsEditable | 1098 @DocsEditable() |
| 1099 String oversample; | 1099 String oversample; |
| 1100 } | 1100 } |
| 1101 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1101 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1102 // for details. All rights reserved. Use of this source code is governed by a | 1102 // for details. All rights reserved. Use of this source code is governed by a |
| 1103 // BSD-style license that can be found in the LICENSE file. | 1103 // BSD-style license that can be found in the LICENSE file. |
| 1104 | 1104 |
| 1105 | 1105 |
| 1106 @DocsEditable | 1106 @DocsEditable() |
| 1107 @DomName('WaveTable') | 1107 @DomName('WaveTable') |
| 1108 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section | 1108 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTab
le-section |
| 1109 @Experimental | 1109 @Experimental() |
| 1110 class WaveTable extends Interceptor native "WaveTable" { | 1110 class WaveTable extends Interceptor native "WaveTable" { |
| 1111 } | 1111 } |
| OLD | NEW |