Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: sdk/lib/web_audio/dart2js/web_audio_dart2js.dart

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

Powered by Google App Engine
This is Rietveld 408576698