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