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

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

Issue 14985010: Map lists back to typed arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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:typed_data'; 8 import 'dart:typed_data';
9 import 'dart:_js_helper' show Creates, Returns, convertDartClosureToJS; 9 import 'dart:_js_helper' show Creates, Returns, convertDartClosureToJS;
10 import 'dart:_foreign_helper' show JS; 10 import 'dart:_foreign_helper' show JS;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 @DomName('AudioBuffer.numberOfChannels') 80 @DomName('AudioBuffer.numberOfChannels')
81 @DocsEditable 81 @DocsEditable
82 final int numberOfChannels; 82 final int numberOfChannels;
83 83
84 @DomName('AudioBuffer.sampleRate') 84 @DomName('AudioBuffer.sampleRate')
85 @DocsEditable 85 @DocsEditable
86 final num sampleRate; 86 final num sampleRate;
87 87
88 @DomName('AudioBuffer.getChannelData') 88 @DomName('AudioBuffer.getChannelData')
89 @DocsEditable 89 @DocsEditable
90 @Returns('Float32List') 90 Float32List getChannelData(int channelIndex) native;
91 @Creates('Float32List')
92 List<double> getChannelData(int channelIndex) native;
93 } 91 }
94 // 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
95 // 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
96 // BSD-style license that can be found in the LICENSE file. 94 // BSD-style license that can be found in the LICENSE file.
97 95
98 // WARNING: Do not edit - generated code. 96 // WARNING: Do not edit - generated code.
99 97
100 98
101 typedef void AudioBufferCallback(AudioBuffer audioBuffer); 99 typedef void AudioBufferCallback(AudioBuffer audioBuffer);
102 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 100 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 // for details. All rights reserved. Use of this source code is governed by a 856 // for details. All rights reserved. Use of this source code is governed by a
859 // BSD-style license that can be found in the LICENSE file. 857 // BSD-style license that can be found in the LICENSE file.
860 858
861 859
862 @DocsEditable 860 @DocsEditable
863 @DomName('WaveShaperNode') 861 @DomName('WaveShaperNode')
864 class WaveShaperNode extends AudioNode native "WaveShaperNode" { 862 class WaveShaperNode extends AudioNode native "WaveShaperNode" {
865 863
866 @DomName('WaveShaperNode.curve') 864 @DomName('WaveShaperNode.curve')
867 @DocsEditable 865 @DocsEditable
868 @Returns('Float32List') 866 Float32List curve;
869 @Creates('Float32List')
870 List<double> curve;
871 } 867 }
872 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
873 // for details. All rights reserved. Use of this source code is governed by a 869 // for details. All rights reserved. Use of this source code is governed by a
874 // BSD-style license that can be found in the LICENSE file. 870 // BSD-style license that can be found in the LICENSE file.
875 871
876 872
877 @DocsEditable 873 @DocsEditable
878 @DomName('WaveTable') 874 @DomName('WaveTable')
879 class WaveTable native "WaveTable" { 875 class WaveTable native "WaveTable" {
880 } 876 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_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