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

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

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