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

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

Issue 14367012: Move to new dart:typeddata types for dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | Annotate | Revision Log
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:_collection-dev'; 5 import 'dart:_collection-dev';
6 import 'dart:html'; 6 import 'dart:html';
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:typeddata';
8 import 'dart:_js_helper' show Creates, Returns, convertDartClosureToJS; 9 import 'dart:_js_helper' show Creates, Returns, convertDartClosureToJS;
9 import 'dart:_foreign_helper' show JS; 10 import 'dart:_foreign_helper' show JS;
10 // DO NOT EDIT - unless you are editing documentation as per: 11 // DO NOT EDIT - unless you are editing documentation as per:
11 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 12 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
12 // Auto-generated dart:audio library. 13 // Auto-generated dart:audio library.
13 14
14 15
15 16
16 17
17 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 20 matching lines...) Expand all
38 @DomName('AnalyserNode.minDecibels') 39 @DomName('AnalyserNode.minDecibels')
39 @DocsEditable 40 @DocsEditable
40 num minDecibels; 41 num minDecibels;
41 42
42 @DomName('AnalyserNode.smoothingTimeConstant') 43 @DomName('AnalyserNode.smoothingTimeConstant')
43 @DocsEditable 44 @DocsEditable
44 num smoothingTimeConstant; 45 num smoothingTimeConstant;
45 46
46 @DomName('AnalyserNode.getByteFrequencyData') 47 @DomName('AnalyserNode.getByteFrequencyData')
47 @DocsEditable 48 @DocsEditable
48 void getByteFrequencyData(Uint8Array array) native; 49 void getByteFrequencyData(Uint8List array) native;
49 50
50 @DomName('AnalyserNode.getByteTimeDomainData') 51 @DomName('AnalyserNode.getByteTimeDomainData')
51 @DocsEditable 52 @DocsEditable
52 void getByteTimeDomainData(Uint8Array array) native; 53 void getByteTimeDomainData(Uint8List array) native;
53 54
54 @DomName('AnalyserNode.getFloatFrequencyData') 55 @DomName('AnalyserNode.getFloatFrequencyData')
55 @DocsEditable 56 @DocsEditable
56 void getFloatFrequencyData(Float32Array array) native; 57 void getFloatFrequencyData(Float32List array) native;
57 } 58 }
58 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 59 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
59 // for details. All rights reserved. Use of this source code is governed by a 60 // for details. All rights reserved. Use of this source code is governed by a
60 // BSD-style license that can be found in the LICENSE file. 61 // BSD-style license that can be found in the LICENSE file.
61 62
62 63
63 @DocsEditable 64 @DocsEditable
64 @DomName('AudioBuffer') 65 @DomName('AudioBuffer')
65 class AudioBuffer native "*AudioBuffer" { 66 class AudioBuffer native "*AudioBuffer" {
66 67
(...skipping 12 matching lines...) Expand all
79 @DomName('AudioBuffer.numberOfChannels') 80 @DomName('AudioBuffer.numberOfChannels')
80 @DocsEditable 81 @DocsEditable
81 final int numberOfChannels; 82 final int numberOfChannels;
82 83
83 @DomName('AudioBuffer.sampleRate') 84 @DomName('AudioBuffer.sampleRate')
84 @DocsEditable 85 @DocsEditable
85 final num sampleRate; 86 final num sampleRate;
86 87
87 @DomName('AudioBuffer.getChannelData') 88 @DomName('AudioBuffer.getChannelData')
88 @DocsEditable 89 @DocsEditable
89 @Returns('Float32Array') 90 @Returns('Float32List')
90 @Creates('Float32Array') 91 @Creates('Float32List')
91 List<double> getChannelData(int channelIndex) native; 92 List<double> getChannelData(int channelIndex) native;
92 } 93 }
93 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 94 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
94 // for details. All rights reserved. Use of this source code is governed by a 95 // for details. All rights reserved. Use of this source code is governed by a
95 // BSD-style license that can be found in the LICENSE file. 96 // BSD-style license that can be found in the LICENSE file.
96 97
97 // WARNING: Do not edit - generated code. 98 // WARNING: Do not edit - generated code.
98 99
99 100
100 typedef void AudioBufferCallback(AudioBuffer audioBuffer); 101 typedef void AudioBufferCallback(AudioBuffer audioBuffer);
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 @DomName('AudioContext.createPanner') 264 @DomName('AudioContext.createPanner')
264 @DocsEditable 265 @DocsEditable
265 PannerNode createPanner() native; 266 PannerNode createPanner() native;
266 267
267 @DomName('AudioContext.createWaveShaper') 268 @DomName('AudioContext.createWaveShaper')
268 @DocsEditable 269 @DocsEditable
269 WaveShaperNode createWaveShaper() native; 270 WaveShaperNode createWaveShaper() native;
270 271
271 @DomName('AudioContext.createWaveTable') 272 @DomName('AudioContext.createWaveTable')
272 @DocsEditable 273 @DocsEditable
273 WaveTable createWaveTable(Float32Array real, Float32Array imag) native; 274 WaveTable createWaveTable(Float32List real, Float32List imag) native;
274 275
275 @DomName('AudioContext.decodeAudioData') 276 @DomName('AudioContext.decodeAudioData')
276 @DocsEditable 277 @DocsEditable
277 void decodeAudioData(/*ArrayBuffer*/ audioData, AudioBufferCallback successCal lback, [AudioBufferCallback errorCallback]) native; 278 void decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallback , [AudioBufferCallback errorCallback]) native;
278 279
279 @DomName('AudioContext.startRendering') 280 @DomName('AudioContext.startRendering')
280 @DocsEditable 281 @DocsEditable
281 void startRendering() native; 282 void startRendering() native;
282 283
283 @DomName('AudioContext.oncomplete') 284 @DomName('AudioContext.oncomplete')
284 @DocsEditable 285 @DocsEditable
285 Stream<Event> get onComplete => completeEvent.forTarget(this); 286 Stream<Event> get onComplete => completeEvent.forTarget(this);
286 287
287 factory AudioContext() => JS('AudioContext', 288 factory AudioContext() => JS('AudioContext',
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 @DomName('AudioParam.setTargetAtTime') 443 @DomName('AudioParam.setTargetAtTime')
443 @DocsEditable 444 @DocsEditable
444 void setTargetAtTime(num target, num time, num timeConstant) native; 445 void setTargetAtTime(num target, num time, num timeConstant) native;
445 446
446 @DomName('AudioParam.setValueAtTime') 447 @DomName('AudioParam.setValueAtTime')
447 @DocsEditable 448 @DocsEditable
448 void setValueAtTime(num value, num time) native; 449 void setValueAtTime(num value, num time) native;
449 450
450 @DomName('AudioParam.setValueCurveAtTime') 451 @DomName('AudioParam.setValueCurveAtTime')
451 @DocsEditable 452 @DocsEditable
452 void setValueCurveAtTime(Float32Array values, num time, num duration) native; 453 void setValueCurveAtTime(Float32List values, num time, num duration) native;
453 } 454 }
454 // 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
455 // 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
456 // BSD-style license that can be found in the LICENSE file. 457 // BSD-style license that can be found in the LICENSE file.
457 458
458 459
459 @DocsEditable 460 @DocsEditable
460 @DomName('AudioProcessingEvent') 461 @DomName('AudioProcessingEvent')
461 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" { 462 class AudioProcessingEvent extends Event native "*AudioProcessingEvent" {
462 463
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 @DomName('BiquadFilterNode.gain') 518 @DomName('BiquadFilterNode.gain')
518 @DocsEditable 519 @DocsEditable
519 final AudioParam gain; 520 final AudioParam gain;
520 521
521 @DomName('BiquadFilterNode.type') 522 @DomName('BiquadFilterNode.type')
522 @DocsEditable 523 @DocsEditable
523 String type; 524 String type;
524 525
525 @DomName('BiquadFilterNode.getFrequencyResponse') 526 @DomName('BiquadFilterNode.getFrequencyResponse')
526 @DocsEditable 527 @DocsEditable
527 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse, Float32Array phaseResponse) native; 528 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl oat32List phaseResponse) native;
528 } 529 }
529 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 530 // 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 531 // 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. 532 // BSD-style license that can be found in the LICENSE file.
532 533
533 534
534 @DocsEditable 535 @DocsEditable
535 @DomName('ChannelMergerNode') 536 @DomName('ChannelMergerNode')
536 class ChannelMergerNode extends AudioNode native "*ChannelMergerNode" { 537 class ChannelMergerNode extends AudioNode native "*ChannelMergerNode" {
537 } 538 }
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 // for details. All rights reserved. Use of this source code is governed by a 858 // for details. All rights reserved. Use of this source code is governed by a
858 // BSD-style license that can be found in the LICENSE file. 859 // BSD-style license that can be found in the LICENSE file.
859 860
860 861
861 @DocsEditable 862 @DocsEditable
862 @DomName('WaveShaperNode') 863 @DomName('WaveShaperNode')
863 class WaveShaperNode extends AudioNode native "*WaveShaperNode" { 864 class WaveShaperNode extends AudioNode native "*WaveShaperNode" {
864 865
865 @DomName('WaveShaperNode.curve') 866 @DomName('WaveShaperNode.curve')
866 @DocsEditable 867 @DocsEditable
867 @Returns('Float32Array') 868 @Returns('Float32List')
868 @Creates('Float32Array') 869 @Creates('Float32List')
869 List<double> curve; 870 List<double> curve;
870 } 871 }
871 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 872 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
872 // for details. All rights reserved. Use of this source code is governed by a 873 // for details. All rights reserved. Use of this source code is governed by a
873 // BSD-style license that can be found in the LICENSE file. 874 // BSD-style license that can be found in the LICENSE file.
874 875
875 876
876 @DocsEditable 877 @DocsEditable
877 @DomName('WaveTable') 878 @DomName('WaveTable')
878 class WaveTable native "*WaveTable" { 879 class WaveTable native "*WaveTable" {
879 } 880 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698