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

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

Issue 12580012: Patchable version of 12929005 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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/typeddata/dartium/typeddata_dartium.dart ('k') | tests/html/typed_arrays_1_test.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 dart.dom.web_audio; 1 library dart.dom.web_audio;
2 2
3 import 'dart:async'; 3 import 'dart:async';
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:html'; 5 import 'dart:html';
6 import 'dart:html_common'; 6 import 'dart:html_common';
7 import 'dart:_js_helper' show Creates, Returns, convertDartClosureToJS; 7 import 'dart:_js_helper' show Creates, Returns, convertDartClosureToJS;
8 import 'dart:_foreign_helper' show JS; 8 import 'dart:_foreign_helper' show JS;
9 // DO NOT EDIT - unless you are editing documentation as per: 9 // DO NOT EDIT - unless you are editing documentation as per:
10 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 10 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
(...skipping 26 matching lines...) Expand all
37 @DomName('AnalyserNode.minDecibels') 37 @DomName('AnalyserNode.minDecibels')
38 @DocsEditable 38 @DocsEditable
39 num minDecibels; 39 num minDecibels;
40 40
41 @DomName('AnalyserNode.smoothingTimeConstant') 41 @DomName('AnalyserNode.smoothingTimeConstant')
42 @DocsEditable 42 @DocsEditable
43 num smoothingTimeConstant; 43 num smoothingTimeConstant;
44 44
45 @DomName('AnalyserNode.getByteFrequencyData') 45 @DomName('AnalyserNode.getByteFrequencyData')
46 @DocsEditable 46 @DocsEditable
47 void getByteFrequencyData(Uint8Array array) native; 47 void getByteFrequencyData(Uint8List array) native;
48 48
49 @DomName('AnalyserNode.getByteTimeDomainData') 49 @DomName('AnalyserNode.getByteTimeDomainData')
50 @DocsEditable 50 @DocsEditable
51 void getByteTimeDomainData(Uint8Array array) native; 51 void getByteTimeDomainData(Uint8List array) native;
52 52
53 @DomName('AnalyserNode.getFloatFrequencyData') 53 @DomName('AnalyserNode.getFloatFrequencyData')
54 @DocsEditable 54 @DocsEditable
55 void getFloatFrequencyData(Float32Array array) native; 55 void getFloatFrequencyData(Float32List array) native;
56 } 56 }
57 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 57 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
58 // for details. All rights reserved. Use of this source code is governed by a 58 // for details. All rights reserved. Use of this source code is governed by a
59 // BSD-style license that can be found in the LICENSE file. 59 // BSD-style license that can be found in the LICENSE file.
60 60
61 61
62 @DocsEditable 62 @DocsEditable
63 @DomName('AudioBuffer') 63 @DomName('AudioBuffer')
64 class AudioBuffer native "*AudioBuffer" { 64 class AudioBuffer native "*AudioBuffer" {
65 65
(...skipping 12 matching lines...) Expand all
78 @DomName('AudioBuffer.numberOfChannels') 78 @DomName('AudioBuffer.numberOfChannels')
79 @DocsEditable 79 @DocsEditable
80 final int numberOfChannels; 80 final int numberOfChannels;
81 81
82 @DomName('AudioBuffer.sampleRate') 82 @DomName('AudioBuffer.sampleRate')
83 @DocsEditable 83 @DocsEditable
84 final num sampleRate; 84 final num sampleRate;
85 85
86 @DomName('AudioBuffer.getChannelData') 86 @DomName('AudioBuffer.getChannelData')
87 @DocsEditable 87 @DocsEditable
88 @Returns('Float32Array') 88 @Returns('Float32List')
89 @Creates('Float32Array') 89 @Creates('Float32List')
90 List<double> getChannelData(int channelIndex) native; 90 List<double> getChannelData(int channelIndex) native;
91 } 91 }
92 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 92 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
93 // for details. All rights reserved. Use of this source code is governed by a 93 // for details. All rights reserved. Use of this source code is governed by a
94 // BSD-style license that can be found in the LICENSE file. 94 // BSD-style license that can be found in the LICENSE file.
95 95
96 // WARNING: Do not edit - generated code. 96 // WARNING: Do not edit - generated code.
97 97
98 98
99 typedef void AudioBufferCallback(AudioBuffer audioBuffer); 99 typedef void AudioBufferCallback(AudioBuffer audioBuffer);
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 @DomName('AudioContext.createPanner') 262 @DomName('AudioContext.createPanner')
263 @DocsEditable 263 @DocsEditable
264 PannerNode createPanner() native; 264 PannerNode createPanner() native;
265 265
266 @DomName('AudioContext.createWaveShaper') 266 @DomName('AudioContext.createWaveShaper')
267 @DocsEditable 267 @DocsEditable
268 WaveShaperNode createWaveShaper() native; 268 WaveShaperNode createWaveShaper() native;
269 269
270 @DomName('AudioContext.createWaveTable') 270 @DomName('AudioContext.createWaveTable')
271 @DocsEditable 271 @DocsEditable
272 WaveTable createWaveTable(Float32Array real, Float32Array imag) native; 272 WaveTable createWaveTable(Float32List real, Float32List imag) native;
273 273
274 @DomName('AudioContext.decodeAudioData') 274 @DomName('AudioContext.decodeAudioData')
275 @DocsEditable 275 @DocsEditable
276 void decodeAudioData(/*ArrayBuffer*/ audioData, AudioBufferCallback successCal lback, [AudioBufferCallback errorCallback]) native; 276 void decodeAudioData(/*ArrayBuffer*/ audioData, AudioBufferCallback successCal lback, [AudioBufferCallback errorCallback]) native;
277 277
278 @DomName('AudioContext.startRendering') 278 @DomName('AudioContext.startRendering')
279 @DocsEditable 279 @DocsEditable
280 void startRendering() native; 280 void startRendering() native;
281 281
282 @DomName('AudioContext.oncomplete') 282 @DomName('AudioContext.oncomplete')
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 @DomName('AudioParam.setTargetAtTime') 450 @DomName('AudioParam.setTargetAtTime')
451 @DocsEditable 451 @DocsEditable
452 void setTargetAtTime(num target, num time, num timeConstant) native; 452 void setTargetAtTime(num target, num time, num timeConstant) native;
453 453
454 @DomName('AudioParam.setValueAtTime') 454 @DomName('AudioParam.setValueAtTime')
455 @DocsEditable 455 @DocsEditable
456 void setValueAtTime(num value, num time) native; 456 void setValueAtTime(num value, num time) native;
457 457
458 @DomName('AudioParam.setValueCurveAtTime') 458 @DomName('AudioParam.setValueCurveAtTime')
459 @DocsEditable 459 @DocsEditable
460 void setValueCurveAtTime(Float32Array values, num time, num duration) native; 460 void setValueCurveAtTime(Float32List values, num time, num duration) native;
461 } 461 }
462 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 462 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
463 // for details. All rights reserved. Use of this source code is governed by a 463 // for details. All rights reserved. Use of this source code is governed by a
464 // BSD-style license that can be found in the LICENSE file. 464 // BSD-style license that can be found in the LICENSE file.
465 465
466 466
467 @DocsEditable 467 @DocsEditable
468 @DomName('AudioProcessingEvent') 468 @DomName('AudioProcessingEvent')
469 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" { 469 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" {
470 470
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 @DomName('BiquadFilterNode.gain') 525 @DomName('BiquadFilterNode.gain')
526 @DocsEditable 526 @DocsEditable
527 final AudioParam gain; 527 final AudioParam gain;
528 528
529 @DomName('BiquadFilterNode.type') 529 @DomName('BiquadFilterNode.type')
530 @DocsEditable 530 @DocsEditable
531 String type; 531 String type;
532 532
533 @DomName('BiquadFilterNode.getFrequencyResponse') 533 @DomName('BiquadFilterNode.getFrequencyResponse')
534 @DocsEditable 534 @DocsEditable
535 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse) native; 535 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl oat32List phaseResponse) native;
536 } 536 }
537 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 537 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
538 // for details. All rights reserved. Use of this source code is governed by a 538 // for details. All rights reserved. Use of this source code is governed by a
539 // BSD-style license that can be found in the LICENSE file. 539 // BSD-style license that can be found in the LICENSE file.
540 540
541 541
542 @DocsEditable 542 @DocsEditable
543 @DomName('ChannelMergerNode') 543 @DomName('ChannelMergerNode')
544 class ChannelMergerNode extends AudioNode native "*ChannelMergerNode" { 544 class ChannelMergerNode extends AudioNode native "*ChannelMergerNode" {
545 } 545 }
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 // for details. All rights reserved. Use of this source code is governed by a 861 // for details. All rights reserved. Use of this source code is governed by a
862 // BSD-style license that can be found in the LICENSE file. 862 // BSD-style license that can be found in the LICENSE file.
863 863
864 864
865 @DocsEditable 865 @DocsEditable
866 @DomName('WaveShaperNode') 866 @DomName('WaveShaperNode')
867 class WaveShaperNode extends AudioNode native "*WaveShaperNode" { 867 class WaveShaperNode extends AudioNode native "*WaveShaperNode" {
868 868
869 @DomName('WaveShaperNode.curve') 869 @DomName('WaveShaperNode.curve')
870 @DocsEditable 870 @DocsEditable
871 @Returns('Float32Array') 871 @Returns('Float32List')
872 @Creates('Float32Array') 872 @Creates('Float32List')
873 List<double> curve; 873 List<double> curve;
874 } 874 }
875 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 875 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
876 // for details. All rights reserved. Use of this source code is governed by a 876 // for details. All rights reserved. Use of this source code is governed by a
877 // BSD-style license that can be found in the LICENSE file. 877 // BSD-style license that can be found in the LICENSE file.
878 878
879 879
880 @DocsEditable 880 @DocsEditable
881 @DomName('WaveTable') 881 @DomName('WaveTable')
882 class WaveTable native "*WaveTable" { 882 class WaveTable native "*WaveTable" {
883 } 883 }
OLDNEW
« no previous file with comments | « sdk/lib/typeddata/dartium/typeddata_dartium.dart ('k') | tests/html/typed_arrays_1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698