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

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

Issue 2822303002: Format all files under the sdk/lib directory. (Closed)
Patch Set: reduced_cl Created 3 years, 8 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
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | sdk/lib/web_gl/dart2js/web_gl_dart2js.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 /** 1 /**
2 * High-fidelity audio programming in the browser. 2 * High-fidelity audio programming in the browser.
3 */ 3 */
4 library dart.dom.web_audio; 4 library dart.dom.web_audio;
5 5
6 import 'dart:async'; 6 import 'dart:async';
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:_internal'; 8 import 'dart:_internal';
9 import 'dart:html'; 9 import 'dart:html';
10 import 'dart:html_common'; 10 import 'dart:html_common';
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 @DomName('AnalyserNode.minDecibels') 48 @DomName('AnalyserNode.minDecibels')
49 @DocsEditable() 49 @DocsEditable()
50 num minDecibels; 50 num minDecibels;
51 51
52 @DomName('AnalyserNode.smoothingTimeConstant') 52 @DomName('AnalyserNode.smoothingTimeConstant')
53 @DocsEditable() 53 @DocsEditable()
54 num smoothingTimeConstant; 54 num smoothingTimeConstant;
55 55
56 @DomName('AnalyserNode.getByteFrequencyData') 56 @DomName('AnalyserNode.getByteFrequencyData')
57 @DocsEditable() 57 @DocsEditable()
58 void getByteFrequencyData(Uint8List array) native ; 58 void getByteFrequencyData(Uint8List array) native;
59 59
60 @DomName('AnalyserNode.getByteTimeDomainData') 60 @DomName('AnalyserNode.getByteTimeDomainData')
61 @DocsEditable() 61 @DocsEditable()
62 void getByteTimeDomainData(Uint8List array) native ; 62 void getByteTimeDomainData(Uint8List array) native;
63 63
64 @DomName('AnalyserNode.getFloatFrequencyData') 64 @DomName('AnalyserNode.getFloatFrequencyData')
65 @DocsEditable() 65 @DocsEditable()
66 void getFloatFrequencyData(Float32List array) native ; 66 void getFloatFrequencyData(Float32List array) native;
67 67
68 @DomName('AnalyserNode.getFloatTimeDomainData') 68 @DomName('AnalyserNode.getFloatTimeDomainData')
69 @DocsEditable() 69 @DocsEditable()
70 @Experimental() // untriaged 70 @Experimental() // untriaged
71 void getFloatTimeDomainData(Float32List array) native ; 71 void getFloatTimeDomainData(Float32List array) native;
72 } 72 }
73 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 73 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
74 // for details. All rights reserved. Use of this source code is governed by a 74 // for details. All rights reserved. Use of this source code is governed by a
75 // BSD-style license that can be found in the LICENSE file. 75 // BSD-style license that can be found in the LICENSE file.
76 76
77 @DocsEditable() 77 @DocsEditable()
78 @DomName('AudioBuffer') 78 @DomName('AudioBuffer')
79 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu ffer-section 79 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu ffer-section
80 @Experimental() 80 @Experimental()
81 @Native("AudioBuffer") 81 @Native("AudioBuffer")
(...skipping 16 matching lines...) Expand all
98 final int numberOfChannels; 98 final int numberOfChannels;
99 99
100 @DomName('AudioBuffer.sampleRate') 100 @DomName('AudioBuffer.sampleRate')
101 @DocsEditable() 101 @DocsEditable()
102 final double sampleRate; 102 final double sampleRate;
103 103
104 @DomName('AudioBuffer.copyFromChannel') 104 @DomName('AudioBuffer.copyFromChannel')
105 @DocsEditable() 105 @DocsEditable()
106 @Experimental() // untriaged 106 @Experimental() // untriaged
107 void copyFromChannel(Float32List destination, int channelNumber, 107 void copyFromChannel(Float32List destination, int channelNumber,
108 [int startInChannel]) native ; 108 [int startInChannel]) native;
109 109
110 @DomName('AudioBuffer.copyToChannel') 110 @DomName('AudioBuffer.copyToChannel')
111 @DocsEditable() 111 @DocsEditable()
112 @Experimental() // untriaged 112 @Experimental() // untriaged
113 void copyToChannel(Float32List source, int channelNumber, 113 void copyToChannel(Float32List source, int channelNumber,
114 [int startInChannel]) native ; 114 [int startInChannel]) native;
115 115
116 @DomName('AudioBuffer.getChannelData') 116 @DomName('AudioBuffer.getChannelData')
117 @DocsEditable() 117 @DocsEditable()
118 Float32List getChannelData(int channelIndex) native ; 118 Float32List getChannelData(int channelIndex) native;
119 } 119 }
120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
121 // for details. All rights reserved. Use of this source code is governed by a 121 // for details. All rights reserved. Use of this source code is governed by a
122 // BSD-style license that can be found in the LICENSE file. 122 // BSD-style license that can be found in the LICENSE file.
123 123
124 // WARNING: Do not edit - generated code. 124 // WARNING: Do not edit - generated code.
125 125
126 @DomName('AudioBufferCallback') 126 @DomName('AudioBufferCallback')
127 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu ffer-section 127 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu ffer-section
128 @Experimental() 128 @Experimental()
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 final double sampleRate; 253 final double sampleRate;
254 254
255 @DomName('AudioContext.state') 255 @DomName('AudioContext.state')
256 @DocsEditable() 256 @DocsEditable()
257 @Experimental() // untriaged 257 @Experimental() // untriaged
258 final String state; 258 final String state;
259 259
260 @DomName('AudioContext.close') 260 @DomName('AudioContext.close')
261 @DocsEditable() 261 @DocsEditable()
262 @Experimental() // untriaged 262 @Experimental() // untriaged
263 Future close() native ; 263 Future close() native;
264 264
265 @DomName('AudioContext.createAnalyser') 265 @DomName('AudioContext.createAnalyser')
266 @DocsEditable() 266 @DocsEditable()
267 AnalyserNode createAnalyser() native ; 267 AnalyserNode createAnalyser() native;
268 268
269 @DomName('AudioContext.createBiquadFilter') 269 @DomName('AudioContext.createBiquadFilter')
270 @DocsEditable() 270 @DocsEditable()
271 BiquadFilterNode createBiquadFilter() native ; 271 BiquadFilterNode createBiquadFilter() native;
272 272
273 @DomName('AudioContext.createBuffer') 273 @DomName('AudioContext.createBuffer')
274 @DocsEditable() 274 @DocsEditable()
275 AudioBuffer createBuffer( 275 AudioBuffer createBuffer(
276 int numberOfChannels, int numberOfFrames, num sampleRate) native ; 276 int numberOfChannels, int numberOfFrames, num sampleRate) native;
277 277
278 @DomName('AudioContext.createBufferSource') 278 @DomName('AudioContext.createBufferSource')
279 @DocsEditable() 279 @DocsEditable()
280 AudioBufferSourceNode createBufferSource() native ; 280 AudioBufferSourceNode createBufferSource() native;
281 281
282 @DomName('AudioContext.createChannelMerger') 282 @DomName('AudioContext.createChannelMerger')
283 @DocsEditable() 283 @DocsEditable()
284 ChannelMergerNode createChannelMerger([int numberOfInputs]) native ; 284 ChannelMergerNode createChannelMerger([int numberOfInputs]) native;
285 285
286 @DomName('AudioContext.createChannelSplitter') 286 @DomName('AudioContext.createChannelSplitter')
287 @DocsEditable() 287 @DocsEditable()
288 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native ; 288 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) native;
289 289
290 @DomName('AudioContext.createConvolver') 290 @DomName('AudioContext.createConvolver')
291 @DocsEditable() 291 @DocsEditable()
292 ConvolverNode createConvolver() native ; 292 ConvolverNode createConvolver() native;
293 293
294 @DomName('AudioContext.createDelay') 294 @DomName('AudioContext.createDelay')
295 @DocsEditable() 295 @DocsEditable()
296 DelayNode createDelay([num maxDelayTime]) native ; 296 DelayNode createDelay([num maxDelayTime]) native;
297 297
298 @DomName('AudioContext.createDynamicsCompressor') 298 @DomName('AudioContext.createDynamicsCompressor')
299 @DocsEditable() 299 @DocsEditable()
300 DynamicsCompressorNode createDynamicsCompressor() native ; 300 DynamicsCompressorNode createDynamicsCompressor() native;
301 301
302 @DomName('AudioContext.createMediaElementSource') 302 @DomName('AudioContext.createMediaElementSource')
303 @DocsEditable() 303 @DocsEditable()
304 MediaElementAudioSourceNode createMediaElementSource( 304 MediaElementAudioSourceNode createMediaElementSource(
305 MediaElement mediaElement) native ; 305 MediaElement mediaElement) native;
306 306
307 @DomName('AudioContext.createMediaStreamDestination') 307 @DomName('AudioContext.createMediaStreamDestination')
308 @DocsEditable() 308 @DocsEditable()
309 MediaStreamAudioDestinationNode createMediaStreamDestination() native ; 309 MediaStreamAudioDestinationNode createMediaStreamDestination() native;
310 310
311 @DomName('AudioContext.createMediaStreamSource') 311 @DomName('AudioContext.createMediaStreamSource')
312 @DocsEditable() 312 @DocsEditable()
313 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) 313 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream)
314 native ; 314 native;
315 315
316 @DomName('AudioContext.createOscillator') 316 @DomName('AudioContext.createOscillator')
317 @DocsEditable() 317 @DocsEditable()
318 OscillatorNode createOscillator() native ; 318 OscillatorNode createOscillator() native;
319 319
320 @DomName('AudioContext.createPanner') 320 @DomName('AudioContext.createPanner')
321 @DocsEditable() 321 @DocsEditable()
322 PannerNode createPanner() native ; 322 PannerNode createPanner() native;
323 323
324 @DomName('AudioContext.createPeriodicWave') 324 @DomName('AudioContext.createPeriodicWave')
325 @DocsEditable() 325 @DocsEditable()
326 @Experimental() // untriaged 326 @Experimental() // untriaged
327 PeriodicWave createPeriodicWave(Float32List real, Float32List imag) native ; 327 PeriodicWave createPeriodicWave(Float32List real, Float32List imag) native;
328 328
329 @DomName('AudioContext.createStereoPanner') 329 @DomName('AudioContext.createStereoPanner')
330 @DocsEditable() 330 @DocsEditable()
331 @Experimental() // untriaged 331 @Experimental() // untriaged
332 StereoPannerNode createStereoPanner() native ; 332 StereoPannerNode createStereoPanner() native;
333 333
334 @DomName('AudioContext.createWaveShaper') 334 @DomName('AudioContext.createWaveShaper')
335 @DocsEditable() 335 @DocsEditable()
336 WaveShaperNode createWaveShaper() native ; 336 WaveShaperNode createWaveShaper() native;
337 337
338 @JSName('decodeAudioData') 338 @JSName('decodeAudioData')
339 @DomName('AudioContext.decodeAudioData') 339 @DomName('AudioContext.decodeAudioData')
340 @DocsEditable() 340 @DocsEditable()
341 void _decodeAudioData( 341 void _decodeAudioData(
342 ByteBuffer audioData, AudioBufferCallback successCallback, 342 ByteBuffer audioData, AudioBufferCallback successCallback,
343 [AudioBufferCallback errorCallback]) native ; 343 [AudioBufferCallback errorCallback]) native;
344 344
345 @DomName('AudioContext.resume') 345 @DomName('AudioContext.resume')
346 @DocsEditable() 346 @DocsEditable()
347 @Experimental() // untriaged 347 @Experimental() // untriaged
348 Future resume() native ; 348 Future resume() native;
349 349
350 @DomName('AudioContext.suspend') 350 @DomName('AudioContext.suspend')
351 @DocsEditable() 351 @DocsEditable()
352 @Experimental() // untriaged 352 @Experimental() // untriaged
353 Future suspend() native ; 353 Future suspend() native;
354 354
355 factory AudioContext() => JS('AudioContext', 355 factory AudioContext() => JS('AudioContext',
356 'new (window.AudioContext || window.webkitAudioContext)()'); 356 'new (window.AudioContext || window.webkitAudioContext)()');
357 357
358 GainNode createGain() { 358 GainNode createGain() {
359 if (JS('bool', '#.createGain !== undefined', this)) { 359 if (JS('bool', '#.createGain !== undefined', this)) {
360 return JS('GainNode', '#.createGain()', this); 360 return JS('GainNode', '#.createGain()', this);
361 } else { 361 } else {
362 return JS('GainNode', '#.createGainNode()', this); 362 return JS('GainNode', '#.createGainNode()', this);
363 } 363 }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 @DomName('AudioListener.dopplerFactor') 435 @DomName('AudioListener.dopplerFactor')
436 @DocsEditable() 436 @DocsEditable()
437 num dopplerFactor; 437 num dopplerFactor;
438 438
439 @DomName('AudioListener.speedOfSound') 439 @DomName('AudioListener.speedOfSound')
440 @DocsEditable() 440 @DocsEditable()
441 num speedOfSound; 441 num speedOfSound;
442 442
443 @DomName('AudioListener.setOrientation') 443 @DomName('AudioListener.setOrientation')
444 @DocsEditable() 444 @DocsEditable()
445 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native ; 445 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native;
446 446
447 @DomName('AudioListener.setPosition') 447 @DomName('AudioListener.setPosition')
448 @DocsEditable() 448 @DocsEditable()
449 void setPosition(num x, num y, num z) native ; 449 void setPosition(num x, num y, num z) native;
450 450
451 @DomName('AudioListener.setVelocity') 451 @DomName('AudioListener.setVelocity')
452 @DocsEditable() 452 @DocsEditable()
453 void setVelocity(num x, num y, num z) native ; 453 void setVelocity(num x, num y, num z) native;
454 } 454 }
455 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 455 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
456 // for details. All rights reserved. Use of this source code is governed by a 456 // for details. All rights reserved. Use of this source code is governed by a
457 // BSD-style license that can be found in the LICENSE file. 457 // BSD-style license that can be found in the LICENSE file.
458 458
459 @DomName('AudioNode') 459 @DomName('AudioNode')
460 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo de-section 460 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo de-section
461 @Experimental() 461 @Experimental()
462 @Native("AudioNode") 462 @Native("AudioNode")
463 class AudioNode extends EventTarget { 463 class AudioNode extends EventTarget {
(...skipping 22 matching lines...) Expand all
486 @DocsEditable() 486 @DocsEditable()
487 final int numberOfInputs; 487 final int numberOfInputs;
488 488
489 @DomName('AudioNode.numberOfOutputs') 489 @DomName('AudioNode.numberOfOutputs')
490 @DocsEditable() 490 @DocsEditable()
491 final int numberOfOutputs; 491 final int numberOfOutputs;
492 492
493 @JSName('connect') 493 @JSName('connect')
494 @DomName('AudioNode.connect') 494 @DomName('AudioNode.connect')
495 @DocsEditable() 495 @DocsEditable()
496 void _connect(destination, [int output, int input]) native ; 496 void _connect(destination, [int output, int input]) native;
497 497
498 @DomName('AudioNode.disconnect') 498 @DomName('AudioNode.disconnect')
499 @DocsEditable() 499 @DocsEditable()
500 void disconnect([destination_OR_output, int output, int input]) native ; 500 void disconnect([destination_OR_output, int output, int input]) native;
501 501
502 @DomName('AudioNode.connect') 502 @DomName('AudioNode.connect')
503 void connectNode(AudioNode destination, [int output = 0, int input = 0]) { 503 void connectNode(AudioNode destination, [int output = 0, int input = 0]) {
504 _connect(destination, output, input); 504 _connect(destination, output, input);
505 } 505 }
506 506
507 @DomName('AudioNode.connect') 507 @DomName('AudioNode.connect')
508 void connectParam(AudioParam destination, [int output = 0]) { 508 void connectParam(AudioParam destination, [int output = 0]) {
509 _connect(destination, output); 509 _connect(destination, output);
510 } 510 }
(...skipping 16 matching lines...) Expand all
527 @DomName('AudioParam.defaultValue') 527 @DomName('AudioParam.defaultValue')
528 @DocsEditable() 528 @DocsEditable()
529 final double defaultValue; 529 final double defaultValue;
530 530
531 @DomName('AudioParam.value') 531 @DomName('AudioParam.value')
532 @DocsEditable() 532 @DocsEditable()
533 num value; 533 num value;
534 534
535 @DomName('AudioParam.cancelScheduledValues') 535 @DomName('AudioParam.cancelScheduledValues')
536 @DocsEditable() 536 @DocsEditable()
537 void cancelScheduledValues(num startTime) native ; 537 void cancelScheduledValues(num startTime) native;
538 538
539 @DomName('AudioParam.exponentialRampToValueAtTime') 539 @DomName('AudioParam.exponentialRampToValueAtTime')
540 @DocsEditable() 540 @DocsEditable()
541 void exponentialRampToValueAtTime(num value, num time) native ; 541 void exponentialRampToValueAtTime(num value, num time) native;
542 542
543 @DomName('AudioParam.linearRampToValueAtTime') 543 @DomName('AudioParam.linearRampToValueAtTime')
544 @DocsEditable() 544 @DocsEditable()
545 void linearRampToValueAtTime(num value, num time) native ; 545 void linearRampToValueAtTime(num value, num time) native;
546 546
547 @DomName('AudioParam.setTargetAtTime') 547 @DomName('AudioParam.setTargetAtTime')
548 @DocsEditable() 548 @DocsEditable()
549 void setTargetAtTime(num target, num time, num timeConstant) native ; 549 void setTargetAtTime(num target, num time, num timeConstant) native;
550 550
551 @DomName('AudioParam.setValueAtTime') 551 @DomName('AudioParam.setValueAtTime')
552 @DocsEditable() 552 @DocsEditable()
553 void setValueAtTime(num value, num time) native ; 553 void setValueAtTime(num value, num time) native;
554 554
555 @DomName('AudioParam.setValueCurveAtTime') 555 @DomName('AudioParam.setValueCurveAtTime')
556 @DocsEditable() 556 @DocsEditable()
557 void setValueCurveAtTime(Float32List values, num time, num duration) native ; 557 void setValueCurveAtTime(Float32List values, num time, num duration) native;
558 } 558 }
559 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 559 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
560 // for details. All rights reserved. Use of this source code is governed by a 560 // for details. All rights reserved. Use of this source code is governed by a
561 // BSD-style license that can be found in the LICENSE file. 561 // BSD-style license that can be found in the LICENSE file.
562 562
563 @DocsEditable() 563 @DocsEditable()
564 @DomName('AudioProcessingEvent') 564 @DomName('AudioProcessingEvent')
565 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr ocessingEvent-section 565 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr ocessingEvent-section
566 @Experimental() 566 @Experimental()
567 @Native("AudioProcessingEvent") 567 @Native("AudioProcessingEvent")
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 @DocsEditable() 630 @DocsEditable()
631 final AudioParam gain; 631 final AudioParam gain;
632 632
633 @DomName('BiquadFilterNode.type') 633 @DomName('BiquadFilterNode.type')
634 @DocsEditable() 634 @DocsEditable()
635 String type; 635 String type;
636 636
637 @DomName('BiquadFilterNode.getFrequencyResponse') 637 @DomName('BiquadFilterNode.getFrequencyResponse')
638 @DocsEditable() 638 @DocsEditable()
639 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, 639 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse,
640 Float32List phaseResponse) native ; 640 Float32List phaseResponse) native;
641 } 641 }
642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
643 // for details. All rights reserved. Use of this source code is governed by a 643 // for details. All rights reserved. Use of this source code is governed by a
644 // BSD-style license that can be found in the LICENSE file. 644 // BSD-style license that can be found in the LICENSE file.
645 645
646 @DocsEditable() 646 @DocsEditable()
647 @DomName('ChannelMergerNode') 647 @DomName('ChannelMergerNode')
648 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel MergerNode-section 648 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel MergerNode-section
649 @Experimental() 649 @Experimental()
650 @Native("ChannelMergerNode,AudioChannelMerger") 650 @Native("ChannelMergerNode,AudioChannelMerger")
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 numberOfChannels, numberOfFrames, sampleRate); 869 numberOfChannels, numberOfFrames, sampleRate);
870 } 870 }
871 static OfflineAudioContext _create_1( 871 static OfflineAudioContext _create_1(
872 numberOfChannels, numberOfFrames, sampleRate) => 872 numberOfChannels, numberOfFrames, sampleRate) =>
873 JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)', 873 JS('OfflineAudioContext', 'new OfflineAudioContext(#,#,#)',
874 numberOfChannels, numberOfFrames, sampleRate); 874 numberOfChannels, numberOfFrames, sampleRate);
875 875
876 @DomName('OfflineAudioContext.startRendering') 876 @DomName('OfflineAudioContext.startRendering')
877 @DocsEditable() 877 @DocsEditable()
878 @Experimental() // untriaged 878 @Experimental() // untriaged
879 Future startRendering() native ; 879 Future startRendering() native;
880 } 880 }
881 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 881 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
882 // for details. All rights reserved. Use of this source code is governed by a 882 // for details. All rights reserved. Use of this source code is governed by a
883 // BSD-style license that can be found in the LICENSE file. 883 // BSD-style license that can be found in the LICENSE file.
884 884
885 @DocsEditable() 885 @DocsEditable()
886 @DomName('OscillatorNode') 886 @DomName('OscillatorNode')
887 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc illatorNode 887 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc illatorNode
888 @Experimental() 888 @Experimental()
889 @Native("OscillatorNode,Oscillator") 889 @Native("OscillatorNode,Oscillator")
(...skipping 23 matching lines...) Expand all
913 @DocsEditable() 913 @DocsEditable()
914 final AudioParam frequency; 914 final AudioParam frequency;
915 915
916 @DomName('OscillatorNode.type') 916 @DomName('OscillatorNode.type')
917 @DocsEditable() 917 @DocsEditable()
918 String type; 918 String type;
919 919
920 @DomName('OscillatorNode.setPeriodicWave') 920 @DomName('OscillatorNode.setPeriodicWave')
921 @DocsEditable() 921 @DocsEditable()
922 @Experimental() // untriaged 922 @Experimental() // untriaged
923 void setPeriodicWave(PeriodicWave periodicWave) native ; 923 void setPeriodicWave(PeriodicWave periodicWave) native;
924 924
925 @DomName('OscillatorNode.start') 925 @DomName('OscillatorNode.start')
926 @DocsEditable() 926 @DocsEditable()
927 void start([num when]) native ; 927 void start([num when]) native;
928 928
929 @DomName('OscillatorNode.stop') 929 @DomName('OscillatorNode.stop')
930 @DocsEditable() 930 @DocsEditable()
931 void stop([num when]) native ; 931 void stop([num when]) native;
932 932
933 /// Stream of `ended` events handled by this [OscillatorNode]. 933 /// Stream of `ended` events handled by this [OscillatorNode].
934 @DomName('OscillatorNode.onended') 934 @DomName('OscillatorNode.onended')
935 @DocsEditable() 935 @DocsEditable()
936 @Experimental() // untriaged 936 @Experimental() // untriaged
937 Stream<Event> get onEnded => endedEvent.forTarget(this); 937 Stream<Event> get onEnded => endedEvent.forTarget(this);
938 } 938 }
939 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 939 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
940 // for details. All rights reserved. Use of this source code is governed by a 940 // for details. All rights reserved. Use of this source code is governed by a
941 // BSD-style license that can be found in the LICENSE file. 941 // BSD-style license that can be found in the LICENSE file.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 @DomName('PannerNode.refDistance') 978 @DomName('PannerNode.refDistance')
979 @DocsEditable() 979 @DocsEditable()
980 num refDistance; 980 num refDistance;
981 981
982 @DomName('PannerNode.rolloffFactor') 982 @DomName('PannerNode.rolloffFactor')
983 @DocsEditable() 983 @DocsEditable()
984 num rolloffFactor; 984 num rolloffFactor;
985 985
986 @DomName('PannerNode.setOrientation') 986 @DomName('PannerNode.setOrientation')
987 @DocsEditable() 987 @DocsEditable()
988 void setOrientation(num x, num y, num z) native ; 988 void setOrientation(num x, num y, num z) native;
989 989
990 @DomName('PannerNode.setPosition') 990 @DomName('PannerNode.setPosition')
991 @DocsEditable() 991 @DocsEditable()
992 void setPosition(num x, num y, num z) native ; 992 void setPosition(num x, num y, num z) native;
993 993
994 @DomName('PannerNode.setVelocity') 994 @DomName('PannerNode.setVelocity')
995 @DocsEditable() 995 @DocsEditable()
996 void setVelocity(num x, num y, num z) native ; 996 void setVelocity(num x, num y, num z) native;
997 } 997 }
998 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 998 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
999 // for details. All rights reserved. Use of this source code is governed by a 999 // for details. All rights reserved. Use of this source code is governed by a
1000 // BSD-style license that can be found in the LICENSE file. 1000 // BSD-style license that can be found in the LICENSE file.
1001 1001
1002 @DocsEditable() 1002 @DocsEditable()
1003 @DomName('PeriodicWave') 1003 @DomName('PeriodicWave')
1004 @Experimental() // untriaged 1004 @Experimental() // untriaged
1005 @Native("PeriodicWave") 1005 @Native("PeriodicWave")
1006 class PeriodicWave extends Interceptor { 1006 class PeriodicWave extends Interceptor {
(...skipping 29 matching lines...) Expand all
1036 static const EventStreamProvider<AudioProcessingEvent> audioProcessEvent = 1036 static const EventStreamProvider<AudioProcessingEvent> audioProcessEvent =
1037 const EventStreamProvider<AudioProcessingEvent>('audioprocess'); 1037 const EventStreamProvider<AudioProcessingEvent>('audioprocess');
1038 1038
1039 @DomName('ScriptProcessorNode.bufferSize') 1039 @DomName('ScriptProcessorNode.bufferSize')
1040 @DocsEditable() 1040 @DocsEditable()
1041 final int bufferSize; 1041 final int bufferSize;
1042 1042
1043 @DomName('ScriptProcessorNode.setEventListener') 1043 @DomName('ScriptProcessorNode.setEventListener')
1044 @DocsEditable() 1044 @DocsEditable()
1045 @Experimental() // untriaged 1045 @Experimental() // untriaged
1046 void setEventListener(EventListener eventListener) native ; 1046 void setEventListener(EventListener eventListener) native;
1047 1047
1048 /// Stream of `audioprocess` events handled by this [ScriptProcessorNode]. 1048 /// Stream of `audioprocess` events handled by this [ScriptProcessorNode].
1049 /** 1049 /**
1050 * Get a Stream that fires events when AudioProcessingEvents occur. 1050 * Get a Stream that fires events when AudioProcessingEvents occur.
1051 * This particular stream is special in that it only allows one listener to a 1051 * This particular stream is special in that it only allows one listener to a
1052 * given stream. Converting the returned Stream [asBroadcast] will likely ruin 1052 * given stream. Converting the returned Stream [asBroadcast] will likely ruin
1053 * the soft-real-time properties which which these events are fired and can 1053 * the soft-real-time properties which which these events are fired and can
1054 * be processed. 1054 * be processed.
1055 */ 1055 */
1056 @DomName('ScriptProcessorNode.onaudioprocess') 1056 @DomName('ScriptProcessorNode.onaudioprocess')
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 } 1094 }
1095 1095
1096 @DomName('WaveShaperNode.curve') 1096 @DomName('WaveShaperNode.curve')
1097 @DocsEditable() 1097 @DocsEditable()
1098 Float32List curve; 1098 Float32List curve;
1099 1099
1100 @DomName('WaveShaperNode.oversample') 1100 @DomName('WaveShaperNode.oversample')
1101 @DocsEditable() 1101 @DocsEditable()
1102 String oversample; 1102 String oversample;
1103 } 1103 }
OLDNEW
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | sdk/lib/web_gl/dart2js/web_gl_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698