| OLD | NEW |
| 1 library web_audio; | 1 library web_audio; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:html'; | 4 import 'dart:html'; |
| 5 import 'dart:html_common'; | 5 import 'dart:html_common'; |
| 6 // DO NOT EDIT | 6 // DO NOT EDIT |
| 7 // Auto-generated dart:audio library. | 7 // Auto-generated dart:audio library. |
| 8 | 8 |
| 9 | 9 |
| 10 | 10 |
| 11 | 11 |
| 12 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13 // for details. All rights reserved. Use of this source code is governed by a | 13 // for details. All rights reserved. Use of this source code is governed by a |
| 14 // BSD-style license that can be found in the LICENSE file. | 14 // BSD-style license that can be found in the LICENSE file. |
| 15 | 15 |
| 16 | 16 |
| 17 | 17 |
| 18 @DocsEditable | 18 @DocsEditable |
| 19 @DomName('AnalyserNode') | 19 @DomName('AnalyserNode') |
| 20 class AnalyserNode extends AudioNode native "*AnalyserNode" { | 20 class AnalyserNode extends AudioNode native "*AnalyserNode" { |
| 21 | 21 |
| 22 @DocsEditable | 22 @DocsEditable @DomName('AnalyserNode.fftSize') |
| 23 @DomName('AnalyserNode.fftSize') | |
| 24 int fftSize; | 23 int fftSize; |
| 25 | 24 |
| 26 @DocsEditable | 25 @DocsEditable @DomName('AnalyserNode.frequencyBinCount') |
| 27 @DomName('AnalyserNode.frequencyBinCount') | |
| 28 final int frequencyBinCount; | 26 final int frequencyBinCount; |
| 29 | 27 |
| 30 @DocsEditable | 28 @DocsEditable @DomName('AnalyserNode.maxDecibels') |
| 31 @DomName('AnalyserNode.maxDecibels') | |
| 32 num maxDecibels; | 29 num maxDecibels; |
| 33 | 30 |
| 34 @DocsEditable | 31 @DocsEditable @DomName('AnalyserNode.minDecibels') |
| 35 @DomName('AnalyserNode.minDecibels') | |
| 36 num minDecibels; | 32 num minDecibels; |
| 37 | 33 |
| 38 @DocsEditable | 34 @DocsEditable @DomName('AnalyserNode.smoothingTimeConstant') |
| 39 @DomName('AnalyserNode.smoothingTimeConstant') | |
| 40 num smoothingTimeConstant; | 35 num smoothingTimeConstant; |
| 41 | 36 |
| 42 @DocsEditable | 37 @DocsEditable @DomName('AnalyserNode.getByteFrequencyData') |
| 43 @DomName('AnalyserNode.getByteFrequencyData') | |
| 44 void getByteFrequencyData(Uint8Array array) native; | 38 void getByteFrequencyData(Uint8Array array) native; |
| 45 | 39 |
| 46 @DocsEditable | 40 @DocsEditable @DomName('AnalyserNode.getByteTimeDomainData') |
| 47 @DomName('AnalyserNode.getByteTimeDomainData') | |
| 48 void getByteTimeDomainData(Uint8Array array) native; | 41 void getByteTimeDomainData(Uint8Array array) native; |
| 49 | 42 |
| 50 @DocsEditable | 43 @DocsEditable @DomName('AnalyserNode.getFloatFrequencyData') |
| 51 @DomName('AnalyserNode.getFloatFrequencyData') | |
| 52 void getFloatFrequencyData(Float32Array array) native; | 44 void getFloatFrequencyData(Float32Array array) native; |
| 53 } | 45 } |
| 54 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 46 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 55 // for details. All rights reserved. Use of this source code is governed by a | 47 // for details. All rights reserved. Use of this source code is governed by a |
| 56 // BSD-style license that can be found in the LICENSE file. | 48 // BSD-style license that can be found in the LICENSE file. |
| 57 | 49 |
| 58 | 50 |
| 59 | 51 |
| 60 @DocsEditable | 52 @DocsEditable |
| 61 @DomName('AudioBuffer') | 53 @DomName('AudioBuffer') |
| 62 class AudioBuffer native "*AudioBuffer" { | 54 class AudioBuffer native "*AudioBuffer" { |
| 63 | 55 |
| 64 @DocsEditable | 56 @DocsEditable @DomName('AudioBuffer.duration') |
| 65 @DomName('AudioBuffer.duration') | |
| 66 final num duration; | 57 final num duration; |
| 67 | 58 |
| 68 @DocsEditable | 59 @DocsEditable @DomName('AudioBuffer.gain') |
| 69 @DomName('AudioBuffer.gain') | |
| 70 num gain; | 60 num gain; |
| 71 | 61 |
| 72 @DocsEditable | 62 @DocsEditable @DomName('AudioBuffer.length') |
| 73 @DomName('AudioBuffer.length') | |
| 74 final int length; | 63 final int length; |
| 75 | 64 |
| 76 @DocsEditable | 65 @DocsEditable @DomName('AudioBuffer.numberOfChannels') |
| 77 @DomName('AudioBuffer.numberOfChannels') | |
| 78 final int numberOfChannels; | 66 final int numberOfChannels; |
| 79 | 67 |
| 80 @DocsEditable | 68 @DocsEditable @DomName('AudioBuffer.sampleRate') |
| 81 @DomName('AudioBuffer.sampleRate') | |
| 82 final num sampleRate; | 69 final num sampleRate; |
| 83 | 70 |
| 84 @DocsEditable | 71 @DocsEditable @DomName('AudioBuffer.getChannelData') |
| 85 @DomName('AudioBuffer.getChannelData') | |
| 86 Float32Array getChannelData(int channelIndex) native; | 72 Float32Array getChannelData(int channelIndex) native; |
| 87 } | 73 } |
| 88 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 74 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 89 // for details. All rights reserved. Use of this source code is governed by a | 75 // for details. All rights reserved. Use of this source code is governed by a |
| 90 // BSD-style license that can be found in the LICENSE file. | 76 // BSD-style license that can be found in the LICENSE file. |
| 91 | 77 |
| 92 // WARNING: Do not edit - generated code. | 78 // WARNING: Do not edit - generated code. |
| 93 | 79 |
| 94 | 80 |
| 95 typedef void AudioBufferCallback(AudioBuffer audioBuffer); | 81 typedef void AudioBufferCallback(AudioBuffer audioBuffer); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 } | 119 } |
| 134 | 120 |
| 135 static const int FINISHED_STATE = 3; | 121 static const int FINISHED_STATE = 3; |
| 136 | 122 |
| 137 static const int PLAYING_STATE = 2; | 123 static const int PLAYING_STATE = 2; |
| 138 | 124 |
| 139 static const int SCHEDULED_STATE = 1; | 125 static const int SCHEDULED_STATE = 1; |
| 140 | 126 |
| 141 static const int UNSCHEDULED_STATE = 0; | 127 static const int UNSCHEDULED_STATE = 0; |
| 142 | 128 |
| 143 @DocsEditable | 129 @DocsEditable @DomName('AudioBufferSourceNode.buffer') |
| 144 @DomName('AudioBufferSourceNode.buffer') | |
| 145 AudioBuffer buffer; | 130 AudioBuffer buffer; |
| 146 | 131 |
| 147 @DocsEditable | 132 @DocsEditable @DomName('AudioBufferSourceNode.gain') |
| 148 @DomName('AudioBufferSourceNode.gain') | |
| 149 final AudioGain gain; | 133 final AudioGain gain; |
| 150 | 134 |
| 151 @DocsEditable | 135 @DocsEditable @DomName('AudioBufferSourceNode.loop') |
| 152 @DomName('AudioBufferSourceNode.loop') | |
| 153 bool loop; | 136 bool loop; |
| 154 | 137 |
| 155 @DocsEditable | 138 @DocsEditable @DomName('AudioBufferSourceNode.loopEnd') |
| 156 @DomName('AudioBufferSourceNode.loopEnd') | |
| 157 num loopEnd; | 139 num loopEnd; |
| 158 | 140 |
| 159 @DocsEditable | 141 @DocsEditable @DomName('AudioBufferSourceNode.loopStart') |
| 160 @DomName('AudioBufferSourceNode.loopStart') | |
| 161 num loopStart; | 142 num loopStart; |
| 162 | 143 |
| 163 @DocsEditable | 144 @DocsEditable @DomName('AudioBufferSourceNode.playbackRate') |
| 164 @DomName('AudioBufferSourceNode.playbackRate') | |
| 165 final AudioParam playbackRate; | 145 final AudioParam playbackRate; |
| 166 | 146 |
| 167 @DocsEditable | 147 @DocsEditable @DomName('AudioBufferSourceNode.playbackState') |
| 168 @DomName('AudioBufferSourceNode.playbackState') | |
| 169 final int playbackState; | 148 final int playbackState; |
| 170 | 149 |
| 171 } | 150 } |
| 172 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 151 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 173 // for details. All rights reserved. Use of this source code is governed by a | 152 // for details. All rights reserved. Use of this source code is governed by a |
| 174 // BSD-style license that can be found in the LICENSE file. | 153 // BSD-style license that can be found in the LICENSE file. |
| 175 | 154 |
| 176 | 155 |
| 177 @DocsEditable | 156 @DocsEditable |
| 178 @DomName('AudioContext') | 157 @DomName('AudioContext') |
| 179 class AudioContext extends EventTarget native "*AudioContext" { | 158 class AudioContext extends EventTarget native "*AudioContext" { |
| 180 | 159 |
| 181 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); | 160 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); |
| 182 | 161 |
| 183 @DocsEditable | 162 @DocsEditable |
| 184 factory AudioContext() => AudioContext._create(); | 163 factory AudioContext() => AudioContext._create(); |
| 185 | 164 |
| 186 @DocsEditable | 165 @DocsEditable |
| 187 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') | 166 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') |
| 188 AudioContextEvents get on => | 167 AudioContextEvents get on => |
| 189 new AudioContextEvents(this); | 168 new AudioContextEvents(this); |
| 190 | 169 |
| 191 @DocsEditable | 170 @DocsEditable @DomName('AudioContext.activeSourceCount') |
| 192 @DomName('AudioContext.activeSourceCount') | |
| 193 final int activeSourceCount; | 171 final int activeSourceCount; |
| 194 | 172 |
| 195 @DocsEditable | 173 @DocsEditable @DomName('AudioContext.currentTime') |
| 196 @DomName('AudioContext.currentTime') | |
| 197 final num currentTime; | 174 final num currentTime; |
| 198 | 175 |
| 199 @DocsEditable | 176 @DocsEditable @DomName('AudioContext.destination') |
| 200 @DomName('AudioContext.destination') | |
| 201 final AudioDestinationNode destination; | 177 final AudioDestinationNode destination; |
| 202 | 178 |
| 203 @DocsEditable | 179 @DocsEditable @DomName('AudioContext.listener') |
| 204 @DomName('AudioContext.listener') | |
| 205 final AudioListener listener; | 180 final AudioListener listener; |
| 206 | 181 |
| 207 @DocsEditable | 182 @DocsEditable @DomName('AudioContext.sampleRate') |
| 208 @DomName('AudioContext.sampleRate') | |
| 209 final num sampleRate; | 183 final num sampleRate; |
| 210 | 184 |
| 211 @DocsEditable | 185 @DocsEditable @DomName('AudioContext.createAnalyser') |
| 212 @DomName('AudioContext.createAnalyser') | |
| 213 AnalyserNode createAnalyser() native; | 186 AnalyserNode createAnalyser() native; |
| 214 | 187 |
| 215 @DocsEditable | 188 @DocsEditable @DomName('AudioContext.createBiquadFilter') |
| 216 @DomName('AudioContext.createBiquadFilter') | |
| 217 BiquadFilterNode createBiquadFilter() native; | 189 BiquadFilterNode createBiquadFilter() native; |
| 218 | 190 |
| 219 @DocsEditable | 191 @DocsEditable @DomName('AudioContext.createBuffer') |
| 220 @DomName('AudioContext.createBuffer') | |
| 221 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram
es, [num sampleRate]) native; | 192 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram
es, [num sampleRate]) native; |
| 222 | 193 |
| 223 @DocsEditable | 194 @DocsEditable @DomName('AudioContext.createBufferSource') |
| 224 @DomName('AudioContext.createBufferSource') | |
| 225 AudioBufferSourceNode createBufferSource() native; | 195 AudioBufferSourceNode createBufferSource() native; |
| 226 | 196 |
| 227 @DocsEditable | 197 @DocsEditable @DomName('AudioContext.createChannelMerger') |
| 228 @DomName('AudioContext.createChannelMerger') | |
| 229 ChannelMergerNode createChannelMerger([int numberOfInputs]) native; | 198 ChannelMergerNode createChannelMerger([int numberOfInputs]) native; |
| 230 | 199 |
| 231 @DocsEditable | 200 @DocsEditable @DomName('AudioContext.createChannelSplitter') |
| 232 @DomName('AudioContext.createChannelSplitter') | |
| 233 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native; | 201 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native; |
| 234 | 202 |
| 235 @DocsEditable | 203 @DocsEditable @DomName('AudioContext.createConvolver') |
| 236 @DomName('AudioContext.createConvolver') | |
| 237 ConvolverNode createConvolver() native; | 204 ConvolverNode createConvolver() native; |
| 238 | 205 |
| 239 @DocsEditable | 206 @DocsEditable @DomName('AudioContext.createDelay') |
| 240 @DomName('AudioContext.createDelay') | |
| 241 DelayNode createDelay([num maxDelayTime]) native; | 207 DelayNode createDelay([num maxDelayTime]) native; |
| 242 | 208 |
| 243 @DocsEditable | 209 @DocsEditable @DomName('AudioContext.createDynamicsCompressor') |
| 244 @DomName('AudioContext.createDynamicsCompressor') | |
| 245 DynamicsCompressorNode createDynamicsCompressor() native; | 210 DynamicsCompressorNode createDynamicsCompressor() native; |
| 246 | 211 |
| 247 @DocsEditable | 212 @DocsEditable @DomName('AudioContext.createMediaElementSource') |
| 248 @DomName('AudioContext.createMediaElementSource') | |
| 249 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native; | 213 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native; |
| 250 | 214 |
| 251 @DocsEditable | 215 @DocsEditable @DomName('AudioContext.createMediaStreamDestination') |
| 252 @DomName('AudioContext.createMediaStreamDestination') | |
| 253 MediaStreamAudioDestinationNode createMediaStreamDestination() native; | 216 MediaStreamAudioDestinationNode createMediaStreamDestination() native; |
| 254 | 217 |
| 255 @DocsEditable | 218 @DocsEditable @DomName('AudioContext.createMediaStreamSource') |
| 256 @DomName('AudioContext.createMediaStreamSource') | |
| 257 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na
tive; | 219 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na
tive; |
| 258 | 220 |
| 259 @DocsEditable | 221 @DocsEditable @DomName('AudioContext.createOscillator') |
| 260 @DomName('AudioContext.createOscillator') | |
| 261 OscillatorNode createOscillator() native; | 222 OscillatorNode createOscillator() native; |
| 262 | 223 |
| 263 @DocsEditable | 224 @DocsEditable @DomName('AudioContext.createPanner') |
| 264 @DomName('AudioContext.createPanner') | |
| 265 PannerNode createPanner() native; | 225 PannerNode createPanner() native; |
| 266 | 226 |
| 267 @DocsEditable | 227 @DocsEditable @DomName('AudioContext.createWaveShaper') |
| 268 @DomName('AudioContext.createWaveShaper') | |
| 269 WaveShaperNode createWaveShaper() native; | 228 WaveShaperNode createWaveShaper() native; |
| 270 | 229 |
| 271 @DocsEditable | 230 @DocsEditable @DomName('AudioContext.createWaveTable') |
| 272 @DomName('AudioContext.createWaveTable') | |
| 273 WaveTable createWaveTable(Float32Array real, Float32Array imag) native; | 231 WaveTable createWaveTable(Float32Array real, Float32Array imag) native; |
| 274 | 232 |
| 275 @DocsEditable | 233 @DocsEditable @DomName('AudioContext.decodeAudioData') |
| 276 @DomName('AudioContext.decodeAudioData') | |
| 277 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) native; | 234 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) native; |
| 278 | 235 |
| 279 @DocsEditable | 236 @DocsEditable @DomName('AudioContext.startRendering') |
| 280 @DomName('AudioContext.startRendering') | |
| 281 void startRendering() native; | 237 void startRendering() native; |
| 282 | 238 |
| 283 Stream<Event> get onComplete => completeEvent.forTarget(this); | 239 Stream<Event> get onComplete => completeEvent.forTarget(this); |
| 284 | 240 |
| 285 static AudioContext _create() => JS('AudioContext', | 241 static AudioContext _create() => JS('AudioContext', |
| 286 'new (window.AudioContext || window.webkitAudioContext)()'); | 242 'new (window.AudioContext || window.webkitAudioContext)()'); |
| 287 | 243 |
| 288 GainNode createGain() { | 244 GainNode createGain() { |
| 289 if (JS('bool', '#.createGain !== undefined', this)) { | 245 if (JS('bool', '#.createGain !== undefined', this)) { |
| 290 return JS('GainNode', '#.createGain()', this); | 246 return JS('GainNode', '#.createGain()', this); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 321 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 277 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 322 // for details. All rights reserved. Use of this source code is governed by a | 278 // for details. All rights reserved. Use of this source code is governed by a |
| 323 // BSD-style license that can be found in the LICENSE file. | 279 // BSD-style license that can be found in the LICENSE file. |
| 324 | 280 |
| 325 | 281 |
| 326 | 282 |
| 327 @DocsEditable | 283 @DocsEditable |
| 328 @DomName('AudioDestinationNode') | 284 @DomName('AudioDestinationNode') |
| 329 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" { | 285 class AudioDestinationNode extends AudioNode native "*AudioDestinationNode" { |
| 330 | 286 |
| 331 @DocsEditable | 287 @DocsEditable @DomName('AudioDestinationNode.numberOfChannels') |
| 332 @DomName('AudioDestinationNode.numberOfChannels') | |
| 333 final int numberOfChannels; | 288 final int numberOfChannels; |
| 334 } | 289 } |
| 335 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 290 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 336 // for details. All rights reserved. Use of this source code is governed by a | 291 // for details. All rights reserved. Use of this source code is governed by a |
| 337 // BSD-style license that can be found in the LICENSE file. | 292 // BSD-style license that can be found in the LICENSE file. |
| 338 | 293 |
| 339 | 294 |
| 340 | 295 |
| 341 @DocsEditable | 296 @DocsEditable |
| 342 @DomName('AudioGain') | 297 @DomName('AudioGain') |
| 343 class AudioGain extends AudioParam native "*AudioGain" { | 298 class AudioGain extends AudioParam native "*AudioGain" { |
| 344 } | 299 } |
| 345 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 300 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 346 // for details. All rights reserved. Use of this source code is governed by a | 301 // for details. All rights reserved. Use of this source code is governed by a |
| 347 // BSD-style license that can be found in the LICENSE file. | 302 // BSD-style license that can be found in the LICENSE file. |
| 348 | 303 |
| 349 | 304 |
| 350 | 305 |
| 351 @DocsEditable | 306 @DocsEditable |
| 352 @DomName('AudioListener') | 307 @DomName('AudioListener') |
| 353 class AudioListener native "*AudioListener" { | 308 class AudioListener native "*AudioListener" { |
| 354 | 309 |
| 355 @DocsEditable | 310 @DocsEditable @DomName('AudioListener.dopplerFactor') |
| 356 @DomName('AudioListener.dopplerFactor') | |
| 357 num dopplerFactor; | 311 num dopplerFactor; |
| 358 | 312 |
| 359 @DocsEditable | 313 @DocsEditable @DomName('AudioListener.speedOfSound') |
| 360 @DomName('AudioListener.speedOfSound') | |
| 361 num speedOfSound; | 314 num speedOfSound; |
| 362 | 315 |
| 363 @DocsEditable | 316 @DocsEditable @DomName('AudioListener.setOrientation') |
| 364 @DomName('AudioListener.setOrientation') | |
| 365 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; | 317 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native; |
| 366 | 318 |
| 367 @DocsEditable | 319 @DocsEditable @DomName('AudioListener.setPosition') |
| 368 @DomName('AudioListener.setPosition') | |
| 369 void setPosition(num x, num y, num z) native; | 320 void setPosition(num x, num y, num z) native; |
| 370 | 321 |
| 371 @DocsEditable | 322 @DocsEditable @DomName('AudioListener.setVelocity') |
| 372 @DomName('AudioListener.setVelocity') | |
| 373 void setVelocity(num x, num y, num z) native; | 323 void setVelocity(num x, num y, num z) native; |
| 374 } | 324 } |
| 375 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 325 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 376 // for details. All rights reserved. Use of this source code is governed by a | 326 // for details. All rights reserved. Use of this source code is governed by a |
| 377 // BSD-style license that can be found in the LICENSE file. | 327 // BSD-style license that can be found in the LICENSE file. |
| 378 | 328 |
| 379 | 329 |
| 380 | 330 |
| 381 @DocsEditable | 331 @DocsEditable |
| 382 @DomName('AudioNode') | 332 @DomName('AudioNode') |
| 383 class AudioNode native "*AudioNode" { | 333 class AudioNode native "*AudioNode" { |
| 384 | 334 |
| 385 @DocsEditable | 335 @DocsEditable @DomName('AudioNode.context') |
| 386 @DomName('AudioNode.context') | |
| 387 final AudioContext context; | 336 final AudioContext context; |
| 388 | 337 |
| 389 @DocsEditable | 338 @DocsEditable @DomName('AudioNode.numberOfInputs') |
| 390 @DomName('AudioNode.numberOfInputs') | |
| 391 final int numberOfInputs; | 339 final int numberOfInputs; |
| 392 | 340 |
| 393 @DocsEditable | 341 @DocsEditable @DomName('AudioNode.numberOfOutputs') |
| 394 @DomName('AudioNode.numberOfOutputs') | |
| 395 final int numberOfOutputs; | 342 final int numberOfOutputs; |
| 396 | 343 |
| 397 @DocsEditable | 344 @DocsEditable @DomName('AudioNode.connect') |
| 398 @DomName('AudioNode.connect') | |
| 399 void connect(destination, int output, [int input]) native; | 345 void connect(destination, int output, [int input]) native; |
| 400 | 346 |
| 401 @DocsEditable | 347 @DocsEditable @DomName('AudioNode.disconnect') |
| 402 @DomName('AudioNode.disconnect') | |
| 403 void disconnect(int output) native; | 348 void disconnect(int output) native; |
| 404 } | 349 } |
| 405 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 350 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 406 // for details. All rights reserved. Use of this source code is governed by a | 351 // for details. All rights reserved. Use of this source code is governed by a |
| 407 // BSD-style license that can be found in the LICENSE file. | 352 // BSD-style license that can be found in the LICENSE file. |
| 408 | 353 |
| 409 | 354 |
| 410 | 355 |
| 411 @DocsEditable | 356 @DocsEditable |
| 412 @DomName('AudioParam') | 357 @DomName('AudioParam') |
| 413 class AudioParam native "*AudioParam" { | 358 class AudioParam native "*AudioParam" { |
| 414 | 359 |
| 415 @DocsEditable | 360 @DocsEditable @DomName('AudioParam.defaultValue') |
| 416 @DomName('AudioParam.defaultValue') | |
| 417 final num defaultValue; | 361 final num defaultValue; |
| 418 | 362 |
| 419 @DocsEditable | 363 @DocsEditable @DomName('AudioParam.maxValue') |
| 420 @DomName('AudioParam.maxValue') | |
| 421 final num maxValue; | 364 final num maxValue; |
| 422 | 365 |
| 423 @DocsEditable | 366 @DocsEditable @DomName('AudioParam.minValue') |
| 424 @DomName('AudioParam.minValue') | |
| 425 final num minValue; | 367 final num minValue; |
| 426 | 368 |
| 427 @DocsEditable | 369 @DocsEditable @DomName('AudioParam.name') |
| 428 @DomName('AudioParam.name') | |
| 429 final String name; | 370 final String name; |
| 430 | 371 |
| 431 @DocsEditable | 372 @DocsEditable @DomName('AudioParam.units') |
| 432 @DomName('AudioParam.units') | |
| 433 final int units; | 373 final int units; |
| 434 | 374 |
| 435 @DocsEditable | 375 @DocsEditable @DomName('AudioParam.value') |
| 436 @DomName('AudioParam.value') | |
| 437 num value; | 376 num value; |
| 438 | 377 |
| 439 @DocsEditable | 378 @DocsEditable @DomName('AudioParam.cancelScheduledValues') |
| 440 @DomName('AudioParam.cancelScheduledValues') | |
| 441 void cancelScheduledValues(num startTime) native; | 379 void cancelScheduledValues(num startTime) native; |
| 442 | 380 |
| 443 @DocsEditable | 381 @DocsEditable @DomName('AudioParam.exponentialRampToValueAtTime') |
| 444 @DomName('AudioParam.exponentialRampToValueAtTime') | |
| 445 void exponentialRampToValueAtTime(num value, num time) native; | 382 void exponentialRampToValueAtTime(num value, num time) native; |
| 446 | 383 |
| 447 @DocsEditable | 384 @DocsEditable @DomName('AudioParam.linearRampToValueAtTime') |
| 448 @DomName('AudioParam.linearRampToValueAtTime') | |
| 449 void linearRampToValueAtTime(num value, num time) native; | 385 void linearRampToValueAtTime(num value, num time) native; |
| 450 | 386 |
| 451 @DocsEditable | 387 @DocsEditable @DomName('AudioParam.setTargetAtTime') |
| 452 @DomName('AudioParam.setTargetAtTime') | |
| 453 void setTargetAtTime(num target, num time, num timeConstant) native; | 388 void setTargetAtTime(num target, num time, num timeConstant) native; |
| 454 | 389 |
| 455 @DocsEditable | 390 @DocsEditable @DomName('AudioParam.setValueAtTime') |
| 456 @DomName('AudioParam.setValueAtTime') | |
| 457 void setValueAtTime(num value, num time) native; | 391 void setValueAtTime(num value, num time) native; |
| 458 | 392 |
| 459 @DocsEditable | 393 @DocsEditable @DomName('AudioParam.setValueCurveAtTime') |
| 460 @DomName('AudioParam.setValueCurveAtTime') | |
| 461 void setValueCurveAtTime(Float32Array values, num time, num duration) native; | 394 void setValueCurveAtTime(Float32Array values, num time, num duration) native; |
| 462 } | 395 } |
| 463 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 396 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 464 // for details. All rights reserved. Use of this source code is governed by a | 397 // for details. All rights reserved. Use of this source code is governed by a |
| 465 // BSD-style license that can be found in the LICENSE file. | 398 // BSD-style license that can be found in the LICENSE file. |
| 466 | 399 |
| 467 | 400 |
| 468 | 401 |
| 469 @DocsEditable | 402 @DocsEditable |
| 470 @DomName('AudioProcessingEvent') | 403 @DomName('AudioProcessingEvent') |
| 471 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" { | 404 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" { |
| 472 | 405 |
| 473 @DocsEditable | 406 @DocsEditable @DomName('AudioProcessingEvent.inputBuffer') |
| 474 @DomName('AudioProcessingEvent.inputBuffer') | |
| 475 final AudioBuffer inputBuffer; | 407 final AudioBuffer inputBuffer; |
| 476 | 408 |
| 477 @DocsEditable | 409 @DocsEditable @DomName('AudioProcessingEvent.outputBuffer') |
| 478 @DomName('AudioProcessingEvent.outputBuffer') | |
| 479 final AudioBuffer outputBuffer; | 410 final AudioBuffer outputBuffer; |
| 480 } | 411 } |
| 481 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 412 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 482 // for details. All rights reserved. Use of this source code is governed by a | 413 // for details. All rights reserved. Use of this source code is governed by a |
| 483 // BSD-style license that can be found in the LICENSE file. | 414 // BSD-style license that can be found in the LICENSE file. |
| 484 | 415 |
| 485 | 416 |
| 486 | 417 |
| 487 @DocsEditable | 418 @DocsEditable |
| 488 @DomName('AudioSourceNode') | 419 @DomName('AudioSourceNode') |
| (...skipping 18 matching lines...) Expand all Loading... |
| 507 static const int HIGHSHELF = 4; | 438 static const int HIGHSHELF = 4; |
| 508 | 439 |
| 509 static const int LOWPASS = 0; | 440 static const int LOWPASS = 0; |
| 510 | 441 |
| 511 static const int LOWSHELF = 3; | 442 static const int LOWSHELF = 3; |
| 512 | 443 |
| 513 static const int NOTCH = 6; | 444 static const int NOTCH = 6; |
| 514 | 445 |
| 515 static const int PEAKING = 5; | 446 static const int PEAKING = 5; |
| 516 | 447 |
| 517 @DocsEditable | 448 @DocsEditable @DomName('BiquadFilterNode.Q') |
| 518 @DomName('BiquadFilterNode.Q') | |
| 519 final AudioParam Q; | 449 final AudioParam Q; |
| 520 | 450 |
| 521 @DocsEditable | 451 @DocsEditable @DomName('BiquadFilterNode.detune') |
| 522 @DomName('BiquadFilterNode.detune') | |
| 523 final AudioParam detune; | 452 final AudioParam detune; |
| 524 | 453 |
| 525 @DocsEditable | 454 @DocsEditable @DomName('BiquadFilterNode.frequency') |
| 526 @DomName('BiquadFilterNode.frequency') | |
| 527 final AudioParam frequency; | 455 final AudioParam frequency; |
| 528 | 456 |
| 529 @DocsEditable | 457 @DocsEditable @DomName('BiquadFilterNode.gain') |
| 530 @DomName('BiquadFilterNode.gain') | |
| 531 final AudioParam gain; | 458 final AudioParam gain; |
| 532 | 459 |
| 533 @DocsEditable | 460 @DocsEditable @DomName('BiquadFilterNode.type') |
| 534 @DomName('BiquadFilterNode.type') | |
| 535 String type; | 461 String type; |
| 536 | 462 |
| 537 @DocsEditable | 463 @DocsEditable @DomName('BiquadFilterNode.getFrequencyResponse') |
| 538 @DomName('BiquadFilterNode.getFrequencyResponse') | |
| 539 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse,
Float32Array phaseResponse) native; | 464 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse,
Float32Array phaseResponse) native; |
| 540 } | 465 } |
| 541 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 466 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 542 // for details. All rights reserved. Use of this source code is governed by a | 467 // for details. All rights reserved. Use of this source code is governed by a |
| 543 // BSD-style license that can be found in the LICENSE file. | 468 // BSD-style license that can be found in the LICENSE file. |
| 544 | 469 |
| 545 | 470 |
| 546 | 471 |
| 547 @DocsEditable | 472 @DocsEditable |
| 548 @DomName('ChannelMergerNode') | 473 @DomName('ChannelMergerNode') |
| (...skipping 12 matching lines...) Expand all Loading... |
| 561 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 486 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 562 // for details. All rights reserved. Use of this source code is governed by a | 487 // for details. All rights reserved. Use of this source code is governed by a |
| 563 // BSD-style license that can be found in the LICENSE file. | 488 // BSD-style license that can be found in the LICENSE file. |
| 564 | 489 |
| 565 | 490 |
| 566 | 491 |
| 567 @DocsEditable | 492 @DocsEditable |
| 568 @DomName('ConvolverNode') | 493 @DomName('ConvolverNode') |
| 569 class ConvolverNode extends AudioNode native "*ConvolverNode" { | 494 class ConvolverNode extends AudioNode native "*ConvolverNode" { |
| 570 | 495 |
| 571 @DocsEditable | 496 @DocsEditable @DomName('ConvolverNode.buffer') |
| 572 @DomName('ConvolverNode.buffer') | |
| 573 AudioBuffer buffer; | 497 AudioBuffer buffer; |
| 574 | 498 |
| 575 @DocsEditable | 499 @DocsEditable @DomName('ConvolverNode.normalize') |
| 576 @DomName('ConvolverNode.normalize') | |
| 577 bool normalize; | 500 bool normalize; |
| 578 } | 501 } |
| 579 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 502 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 580 // for details. All rights reserved. Use of this source code is governed by a | 503 // for details. All rights reserved. Use of this source code is governed by a |
| 581 // BSD-style license that can be found in the LICENSE file. | 504 // BSD-style license that can be found in the LICENSE file. |
| 582 | 505 |
| 583 | 506 |
| 584 | 507 |
| 585 @DocsEditable | 508 @DocsEditable |
| 586 @DomName('DelayNode') | 509 @DomName('DelayNode') |
| 587 class DelayNode extends AudioNode native "*DelayNode" { | 510 class DelayNode extends AudioNode native "*DelayNode" { |
| 588 | 511 |
| 589 @DocsEditable | 512 @DocsEditable @DomName('DelayNode.delayTime') |
| 590 @DomName('DelayNode.delayTime') | |
| 591 final AudioParam delayTime; | 513 final AudioParam delayTime; |
| 592 } | 514 } |
| 593 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 515 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 594 // for details. All rights reserved. Use of this source code is governed by a | 516 // for details. All rights reserved. Use of this source code is governed by a |
| 595 // BSD-style license that can be found in the LICENSE file. | 517 // BSD-style license that can be found in the LICENSE file. |
| 596 | 518 |
| 597 | 519 |
| 598 | 520 |
| 599 @DocsEditable | 521 @DocsEditable |
| 600 @DomName('DynamicsCompressorNode') | 522 @DomName('DynamicsCompressorNode') |
| 601 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode"
{ | 523 class DynamicsCompressorNode extends AudioNode native "*DynamicsCompressorNode"
{ |
| 602 | 524 |
| 603 @DocsEditable | 525 @DocsEditable @DomName('DynamicsCompressorNode.attack') |
| 604 @DomName('DynamicsCompressorNode.attack') | |
| 605 final AudioParam attack; | 526 final AudioParam attack; |
| 606 | 527 |
| 607 @DocsEditable | 528 @DocsEditable @DomName('DynamicsCompressorNode.knee') |
| 608 @DomName('DynamicsCompressorNode.knee') | |
| 609 final AudioParam knee; | 529 final AudioParam knee; |
| 610 | 530 |
| 611 @DocsEditable | 531 @DocsEditable @DomName('DynamicsCompressorNode.ratio') |
| 612 @DomName('DynamicsCompressorNode.ratio') | |
| 613 final AudioParam ratio; | 532 final AudioParam ratio; |
| 614 | 533 |
| 615 @DocsEditable | 534 @DocsEditable @DomName('DynamicsCompressorNode.reduction') |
| 616 @DomName('DynamicsCompressorNode.reduction') | |
| 617 final AudioParam reduction; | 535 final AudioParam reduction; |
| 618 | 536 |
| 619 @DocsEditable | 537 @DocsEditable @DomName('DynamicsCompressorNode.release') |
| 620 @DomName('DynamicsCompressorNode.release') | |
| 621 final AudioParam release; | 538 final AudioParam release; |
| 622 | 539 |
| 623 @DocsEditable | 540 @DocsEditable @DomName('DynamicsCompressorNode.threshold') |
| 624 @DomName('DynamicsCompressorNode.threshold') | |
| 625 final AudioParam threshold; | 541 final AudioParam threshold; |
| 626 } | 542 } |
| 627 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 543 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 628 // for details. All rights reserved. Use of this source code is governed by a | 544 // for details. All rights reserved. Use of this source code is governed by a |
| 629 // BSD-style license that can be found in the LICENSE file. | 545 // BSD-style license that can be found in the LICENSE file. |
| 630 | 546 |
| 631 | 547 |
| 632 | 548 |
| 633 @DocsEditable | 549 @DocsEditable |
| 634 @DomName('GainNode') | 550 @DomName('GainNode') |
| 635 class GainNode extends AudioNode native "*GainNode" { | 551 class GainNode extends AudioNode native "*GainNode" { |
| 636 | 552 |
| 637 @DocsEditable | 553 @DocsEditable @DomName('GainNode.gain') |
| 638 @DomName('GainNode.gain') | |
| 639 final AudioGain gain; | 554 final AudioGain gain; |
| 640 } | 555 } |
| 641 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 556 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 642 // for details. All rights reserved. Use of this source code is governed by a | 557 // for details. All rights reserved. Use of this source code is governed by a |
| 643 // BSD-style license that can be found in the LICENSE file. | 558 // BSD-style license that can be found in the LICENSE file. |
| 644 | 559 |
| 645 | 560 |
| 646 | 561 |
| 647 @DocsEditable | 562 @DocsEditable |
| 648 @DomName('MediaElementAudioSourceNode') | 563 @DomName('MediaElementAudioSourceNode') |
| 649 class MediaElementAudioSourceNode extends AudioSourceNode native "*MediaElementA
udioSourceNode" { | 564 class MediaElementAudioSourceNode extends AudioSourceNode native "*MediaElementA
udioSourceNode" { |
| 650 | 565 |
| 651 @DocsEditable | 566 @DocsEditable @DomName('MediaElementAudioSourceNode.mediaElement') |
| 652 @DomName('MediaElementAudioSourceNode.mediaElement') | |
| 653 final MediaElement mediaElement; | 567 final MediaElement mediaElement; |
| 654 } | 568 } |
| 655 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 569 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 656 // for details. All rights reserved. Use of this source code is governed by a | 570 // for details. All rights reserved. Use of this source code is governed by a |
| 657 // BSD-style license that can be found in the LICENSE file. | 571 // BSD-style license that can be found in the LICENSE file. |
| 658 | 572 |
| 659 | 573 |
| 660 | 574 |
| 661 @DocsEditable | 575 @DocsEditable |
| 662 @DomName('MediaStreamAudioDestinationNode') | 576 @DomName('MediaStreamAudioDestinationNode') |
| 663 class MediaStreamAudioDestinationNode extends AudioSourceNode native "*MediaStre
amAudioDestinationNode" { | 577 class MediaStreamAudioDestinationNode extends AudioSourceNode native "*MediaStre
amAudioDestinationNode" { |
| 664 | 578 |
| 665 @DocsEditable | 579 @DocsEditable @DomName('MediaStreamAudioDestinationNode.stream') |
| 666 @DomName('MediaStreamAudioDestinationNode.stream') | |
| 667 final MediaStream stream; | 580 final MediaStream stream; |
| 668 } | 581 } |
| 669 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 582 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 670 // for details. All rights reserved. Use of this source code is governed by a | 583 // for details. All rights reserved. Use of this source code is governed by a |
| 671 // BSD-style license that can be found in the LICENSE file. | 584 // BSD-style license that can be found in the LICENSE file. |
| 672 | 585 |
| 673 | 586 |
| 674 | 587 |
| 675 @DocsEditable | 588 @DocsEditable |
| 676 @DomName('MediaStreamAudioSourceNode') | 589 @DomName('MediaStreamAudioSourceNode') |
| 677 class MediaStreamAudioSourceNode extends AudioSourceNode native "*MediaStreamAud
ioSourceNode" { | 590 class MediaStreamAudioSourceNode extends AudioSourceNode native "*MediaStreamAud
ioSourceNode" { |
| 678 | 591 |
| 679 @DocsEditable | 592 @DocsEditable @DomName('MediaStreamAudioSourceNode.mediaStream') |
| 680 @DomName('MediaStreamAudioSourceNode.mediaStream') | |
| 681 final MediaStream mediaStream; | 593 final MediaStream mediaStream; |
| 682 } | 594 } |
| 683 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 595 // 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 | 596 // 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. | 597 // BSD-style license that can be found in the LICENSE file. |
| 686 | 598 |
| 687 | 599 |
| 688 | 600 |
| 689 @DocsEditable | 601 @DocsEditable |
| 690 @DomName('OfflineAudioCompletionEvent') | 602 @DomName('OfflineAudioCompletionEvent') |
| 691 class OfflineAudioCompletionEvent extends Event native "*OfflineAudioCompletionE
vent" { | 603 class OfflineAudioCompletionEvent extends Event native "*OfflineAudioCompletionE
vent" { |
| 692 | 604 |
| 693 @DocsEditable | 605 @DocsEditable @DomName('OfflineAudioCompletionEvent.renderedBuffer') |
| 694 @DomName('OfflineAudioCompletionEvent.renderedBuffer') | |
| 695 final AudioBuffer renderedBuffer; | 606 final AudioBuffer renderedBuffer; |
| 696 } | 607 } |
| 697 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 698 // for details. All rights reserved. Use of this source code is governed by a | 609 // for details. All rights reserved. Use of this source code is governed by a |
| 699 // BSD-style license that can be found in the LICENSE file. | 610 // BSD-style license that can be found in the LICENSE file. |
| 700 | 611 |
| 701 | 612 |
| 702 | 613 |
| 703 @DocsEditable | 614 @DocsEditable |
| 704 @DomName('OfflineAudioContext') | 615 @DomName('OfflineAudioContext') |
| (...skipping 24 matching lines...) Expand all Loading... |
| 729 static const int SCHEDULED_STATE = 1; | 640 static const int SCHEDULED_STATE = 1; |
| 730 | 641 |
| 731 static const int SINE = 0; | 642 static const int SINE = 0; |
| 732 | 643 |
| 733 static const int SQUARE = 1; | 644 static const int SQUARE = 1; |
| 734 | 645 |
| 735 static const int TRIANGLE = 3; | 646 static const int TRIANGLE = 3; |
| 736 | 647 |
| 737 static const int UNSCHEDULED_STATE = 0; | 648 static const int UNSCHEDULED_STATE = 0; |
| 738 | 649 |
| 739 @DocsEditable | 650 @DocsEditable @DomName('OscillatorNode.detune') |
| 740 @DomName('OscillatorNode.detune') | |
| 741 final AudioParam detune; | 651 final AudioParam detune; |
| 742 | 652 |
| 743 @DocsEditable | 653 @DocsEditable @DomName('OscillatorNode.frequency') |
| 744 @DomName('OscillatorNode.frequency') | |
| 745 final AudioParam frequency; | 654 final AudioParam frequency; |
| 746 | 655 |
| 747 @DocsEditable | 656 @DocsEditable @DomName('OscillatorNode.playbackState') |
| 748 @DomName('OscillatorNode.playbackState') | |
| 749 final int playbackState; | 657 final int playbackState; |
| 750 | 658 |
| 751 @DocsEditable | 659 @DocsEditable @DomName('OscillatorNode.type') |
| 752 @DomName('OscillatorNode.type') | |
| 753 String type; | 660 String type; |
| 754 | 661 |
| 755 @DocsEditable | 662 @DocsEditable @DomName('OscillatorNode.setWaveTable') |
| 756 @DomName('OscillatorNode.setWaveTable') | |
| 757 void setWaveTable(WaveTable waveTable) native; | 663 void setWaveTable(WaveTable waveTable) native; |
| 758 | 664 |
| 759 @DocsEditable | 665 @DocsEditable @DomName('OscillatorNode.start') |
| 760 @DomName('OscillatorNode.start') | |
| 761 void start(num when) native; | 666 void start(num when) native; |
| 762 | 667 |
| 763 @DocsEditable | 668 @DocsEditable @DomName('OscillatorNode.stop') |
| 764 @DomName('OscillatorNode.stop') | |
| 765 void stop(num when) native; | 669 void stop(num when) native; |
| 766 } | 670 } |
| 767 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 671 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 768 // for details. All rights reserved. Use of this source code is governed by a | 672 // for details. All rights reserved. Use of this source code is governed by a |
| 769 // BSD-style license that can be found in the LICENSE file. | 673 // BSD-style license that can be found in the LICENSE file. |
| 770 | 674 |
| 771 | 675 |
| 772 | 676 |
| 773 @DocsEditable | 677 @DocsEditable |
| 774 @DomName('PannerNode') | 678 @DomName('PannerNode') |
| 775 class PannerNode extends AudioNode native "*PannerNode" { | 679 class PannerNode extends AudioNode native "*PannerNode" { |
| 776 | 680 |
| 777 static const int EQUALPOWER = 0; | 681 static const int EQUALPOWER = 0; |
| 778 | 682 |
| 779 static const int EXPONENTIAL_DISTANCE = 2; | 683 static const int EXPONENTIAL_DISTANCE = 2; |
| 780 | 684 |
| 781 static const int HRTF = 1; | 685 static const int HRTF = 1; |
| 782 | 686 |
| 783 static const int INVERSE_DISTANCE = 1; | 687 static const int INVERSE_DISTANCE = 1; |
| 784 | 688 |
| 785 static const int LINEAR_DISTANCE = 0; | 689 static const int LINEAR_DISTANCE = 0; |
| 786 | 690 |
| 787 static const int SOUNDFIELD = 2; | 691 static const int SOUNDFIELD = 2; |
| 788 | 692 |
| 789 @DocsEditable | 693 @DocsEditable @DomName('PannerNode.coneInnerAngle') |
| 790 @DomName('PannerNode.coneInnerAngle') | |
| 791 num coneInnerAngle; | 694 num coneInnerAngle; |
| 792 | 695 |
| 793 @DocsEditable | 696 @DocsEditable @DomName('PannerNode.coneOuterAngle') |
| 794 @DomName('PannerNode.coneOuterAngle') | |
| 795 num coneOuterAngle; | 697 num coneOuterAngle; |
| 796 | 698 |
| 797 @DocsEditable | 699 @DocsEditable @DomName('PannerNode.coneOuterGain') |
| 798 @DomName('PannerNode.coneOuterGain') | |
| 799 num coneOuterGain; | 700 num coneOuterGain; |
| 800 | 701 |
| 801 @DocsEditable | 702 @DocsEditable @DomName('PannerNode.distanceModel') |
| 802 @DomName('PannerNode.distanceModel') | |
| 803 String distanceModel; | 703 String distanceModel; |
| 804 | 704 |
| 805 @DocsEditable | 705 @DocsEditable @DomName('PannerNode.maxDistance') |
| 806 @DomName('PannerNode.maxDistance') | |
| 807 num maxDistance; | 706 num maxDistance; |
| 808 | 707 |
| 809 @DocsEditable | 708 @DocsEditable @DomName('PannerNode.panningModel') |
| 810 @DomName('PannerNode.panningModel') | |
| 811 String panningModel; | 709 String panningModel; |
| 812 | 710 |
| 813 @DocsEditable | 711 @DocsEditable @DomName('PannerNode.refDistance') |
| 814 @DomName('PannerNode.refDistance') | |
| 815 num refDistance; | 712 num refDistance; |
| 816 | 713 |
| 817 @DocsEditable | 714 @DocsEditable @DomName('PannerNode.rolloffFactor') |
| 818 @DomName('PannerNode.rolloffFactor') | |
| 819 num rolloffFactor; | 715 num rolloffFactor; |
| 820 | 716 |
| 821 @DocsEditable | 717 @DocsEditable @DomName('PannerNode.setOrientation') |
| 822 @DomName('PannerNode.setOrientation') | |
| 823 void setOrientation(num x, num y, num z) native; | 718 void setOrientation(num x, num y, num z) native; |
| 824 | 719 |
| 825 @DocsEditable | 720 @DocsEditable @DomName('PannerNode.setPosition') |
| 826 @DomName('PannerNode.setPosition') | |
| 827 void setPosition(num x, num y, num z) native; | 721 void setPosition(num x, num y, num z) native; |
| 828 | 722 |
| 829 @DocsEditable | 723 @DocsEditable @DomName('PannerNode.setVelocity') |
| 830 @DomName('PannerNode.setVelocity') | |
| 831 void setVelocity(num x, num y, num z) native; | 724 void setVelocity(num x, num y, num z) native; |
| 832 } | 725 } |
| 833 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 726 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 834 // for details. All rights reserved. Use of this source code is governed by a | 727 // for details. All rights reserved. Use of this source code is governed by a |
| 835 // BSD-style license that can be found in the LICENSE file. | 728 // BSD-style license that can be found in the LICENSE file. |
| 836 | 729 |
| 837 | 730 |
| 838 | 731 |
| 839 @DocsEditable | 732 @DocsEditable |
| 840 @DomName('ScriptProcessorNode') | 733 @DomName('ScriptProcessorNode') |
| 841 class ScriptProcessorNode extends AudioNode implements EventTarget native "*Scri
ptProcessorNode" { | 734 class ScriptProcessorNode extends AudioNode implements EventTarget native "*Scri
ptProcessorNode" { |
| 842 | 735 |
| 843 @DocsEditable | 736 @DocsEditable @DomName('ScriptProcessorNode.bufferSize') |
| 844 @DomName('ScriptProcessorNode.bufferSize') | |
| 845 final int bufferSize; | 737 final int bufferSize; |
| 846 } | 738 } |
| 847 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 739 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 848 // for details. All rights reserved. Use of this source code is governed by a | 740 // for details. All rights reserved. Use of this source code is governed by a |
| 849 // BSD-style license that can be found in the LICENSE file. | 741 // BSD-style license that can be found in the LICENSE file. |
| 850 | 742 |
| 851 | 743 |
| 852 | 744 |
| 853 @DocsEditable | 745 @DocsEditable |
| 854 @DomName('WaveShaperNode') | 746 @DomName('WaveShaperNode') |
| 855 class WaveShaperNode extends AudioNode native "*WaveShaperNode" { | 747 class WaveShaperNode extends AudioNode native "*WaveShaperNode" { |
| 856 | 748 |
| 857 @DocsEditable | 749 @DocsEditable @DomName('WaveShaperNode.curve') |
| 858 @DomName('WaveShaperNode.curve') | |
| 859 Float32Array curve; | 750 Float32Array curve; |
| 860 } | 751 } |
| 861 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 752 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 862 // for details. All rights reserved. Use of this source code is governed by a | 753 // for details. All rights reserved. Use of this source code is governed by a |
| 863 // BSD-style license that can be found in the LICENSE file. | 754 // BSD-style license that can be found in the LICENSE file. |
| 864 | 755 |
| 865 | 756 |
| 866 | 757 |
| 867 @DocsEditable | 758 @DocsEditable |
| 868 @DomName('WaveTable') | 759 @DomName('WaveTable') |
| 869 class WaveTable native "*WaveTable" { | 760 class WaveTable native "*WaveTable" { |
| 870 } | 761 } |
| OLD | NEW |