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