OLD | NEW |
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:nativewrappers'; | 5 import 'dart:nativewrappers'; |
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 // WARNING: Do not edit - generated code. | 16 // WARNING: Do not edit - generated code. |
17 | 17 |
18 | 18 |
19 /// @domName AnalyserNode | 19 @DomName('AnalyserNode') |
20 class AnalyserNode extends AudioNode { | 20 class AnalyserNode extends AudioNode { |
21 AnalyserNode.internal() : super.internal(); | 21 AnalyserNode.internal() : super.internal(); |
22 | 22 |
23 | 23 @DomName('AnalyserNode.fftSize') |
24 /** @domName AnalyserNode.fftSize */ | |
25 int get fftSize native "AnalyserNode_fftSize_Getter"; | 24 int get fftSize native "AnalyserNode_fftSize_Getter"; |
26 | 25 |
27 | 26 @DomName('AnalyserNode.fftSize') |
28 /** @domName AnalyserNode.fftSize */ | |
29 void set fftSize(int value) native "AnalyserNode_fftSize_Setter"; | 27 void set fftSize(int value) native "AnalyserNode_fftSize_Setter"; |
30 | 28 |
31 | 29 @DomName('AnalyserNode.frequencyBinCount') |
32 /** @domName AnalyserNode.frequencyBinCount */ | |
33 int get frequencyBinCount native "AnalyserNode_frequencyBinCount_Getter"; | 30 int get frequencyBinCount native "AnalyserNode_frequencyBinCount_Getter"; |
34 | 31 |
35 | 32 @DomName('AnalyserNode.maxDecibels') |
36 /** @domName AnalyserNode.maxDecibels */ | |
37 num get maxDecibels native "AnalyserNode_maxDecibels_Getter"; | 33 num get maxDecibels native "AnalyserNode_maxDecibels_Getter"; |
38 | 34 |
39 | 35 @DomName('AnalyserNode.maxDecibels') |
40 /** @domName AnalyserNode.maxDecibels */ | |
41 void set maxDecibels(num value) native "AnalyserNode_maxDecibels_Setter"; | 36 void set maxDecibels(num value) native "AnalyserNode_maxDecibels_Setter"; |
42 | 37 |
43 | 38 @DomName('AnalyserNode.minDecibels') |
44 /** @domName AnalyserNode.minDecibels */ | |
45 num get minDecibels native "AnalyserNode_minDecibels_Getter"; | 39 num get minDecibels native "AnalyserNode_minDecibels_Getter"; |
46 | 40 |
47 | 41 @DomName('AnalyserNode.minDecibels') |
48 /** @domName AnalyserNode.minDecibels */ | |
49 void set minDecibels(num value) native "AnalyserNode_minDecibels_Setter"; | 42 void set minDecibels(num value) native "AnalyserNode_minDecibels_Setter"; |
50 | 43 |
51 | 44 @DomName('AnalyserNode.smoothingTimeConstant') |
52 /** @domName AnalyserNode.smoothingTimeConstant */ | |
53 num get smoothingTimeConstant native "AnalyserNode_smoothingTimeConstant_Gette
r"; | 45 num get smoothingTimeConstant native "AnalyserNode_smoothingTimeConstant_Gette
r"; |
54 | 46 |
55 | 47 @DomName('AnalyserNode.smoothingTimeConstant') |
56 /** @domName AnalyserNode.smoothingTimeConstant */ | |
57 void set smoothingTimeConstant(num value) native "AnalyserNode_smoothingTimeCo
nstant_Setter"; | 48 void set smoothingTimeConstant(num value) native "AnalyserNode_smoothingTimeCo
nstant_Setter"; |
58 | 49 |
59 | 50 @DomName('AnalyserNode.getByteFrequencyData') |
60 /** @domName AnalyserNode.getByteFrequencyData */ | |
61 void getByteFrequencyData(Uint8Array array) native "AnalyserNode_getByteFreque
ncyData_Callback"; | 51 void getByteFrequencyData(Uint8Array array) native "AnalyserNode_getByteFreque
ncyData_Callback"; |
62 | 52 |
63 | 53 @DomName('AnalyserNode.getByteTimeDomainData') |
64 /** @domName AnalyserNode.getByteTimeDomainData */ | |
65 void getByteTimeDomainData(Uint8Array array) native "AnalyserNode_getByteTimeD
omainData_Callback"; | 54 void getByteTimeDomainData(Uint8Array array) native "AnalyserNode_getByteTimeD
omainData_Callback"; |
66 | 55 |
67 | 56 @DomName('AnalyserNode.getFloatFrequencyData') |
68 /** @domName AnalyserNode.getFloatFrequencyData */ | |
69 void getFloatFrequencyData(Float32Array array) native "AnalyserNode_getFloatFr
equencyData_Callback"; | 57 void getFloatFrequencyData(Float32Array array) native "AnalyserNode_getFloatFr
equencyData_Callback"; |
70 | 58 |
71 } | 59 } |
72 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 60 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
73 // for details. All rights reserved. Use of this source code is governed by a | 61 // for details. All rights reserved. Use of this source code is governed by a |
74 // BSD-style license that can be found in the LICENSE file. | 62 // BSD-style license that can be found in the LICENSE file. |
75 | 63 |
76 // WARNING: Do not edit - generated code. | 64 // WARNING: Do not edit - generated code. |
77 | 65 |
78 | 66 |
79 /// @domName AudioBuffer | 67 @DomName('AudioBuffer') |
80 class AudioBuffer extends NativeFieldWrapperClass1 { | 68 class AudioBuffer extends NativeFieldWrapperClass1 { |
81 AudioBuffer.internal(); | 69 AudioBuffer.internal(); |
82 | 70 |
83 | 71 @DomName('AudioBuffer.duration') |
84 /** @domName AudioBuffer.duration */ | |
85 num get duration native "AudioBuffer_duration_Getter"; | 72 num get duration native "AudioBuffer_duration_Getter"; |
86 | 73 |
87 | 74 @DomName('AudioBuffer.gain') |
88 /** @domName AudioBuffer.gain */ | |
89 num get gain native "AudioBuffer_gain_Getter"; | 75 num get gain native "AudioBuffer_gain_Getter"; |
90 | 76 |
91 | 77 @DomName('AudioBuffer.gain') |
92 /** @domName AudioBuffer.gain */ | |
93 void set gain(num value) native "AudioBuffer_gain_Setter"; | 78 void set gain(num value) native "AudioBuffer_gain_Setter"; |
94 | 79 |
95 | 80 @DomName('AudioBuffer.length') |
96 /** @domName AudioBuffer.length */ | |
97 int get length native "AudioBuffer_length_Getter"; | 81 int get length native "AudioBuffer_length_Getter"; |
98 | 82 |
99 | 83 @DomName('AudioBuffer.numberOfChannels') |
100 /** @domName AudioBuffer.numberOfChannels */ | |
101 int get numberOfChannels native "AudioBuffer_numberOfChannels_Getter"; | 84 int get numberOfChannels native "AudioBuffer_numberOfChannels_Getter"; |
102 | 85 |
103 | 86 @DomName('AudioBuffer.sampleRate') |
104 /** @domName AudioBuffer.sampleRate */ | |
105 num get sampleRate native "AudioBuffer_sampleRate_Getter"; | 87 num get sampleRate native "AudioBuffer_sampleRate_Getter"; |
106 | 88 |
107 | 89 @DomName('AudioBuffer.getChannelData') |
108 /** @domName AudioBuffer.getChannelData */ | |
109 Float32Array getChannelData(int channelIndex) native "AudioBuffer_getChannelDa
ta_Callback"; | 90 Float32Array getChannelData(int channelIndex) native "AudioBuffer_getChannelDa
ta_Callback"; |
110 | 91 |
111 } | 92 } |
112 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 93 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
113 // for details. All rights reserved. Use of this source code is governed by a | 94 // for details. All rights reserved. Use of this source code is governed by a |
114 // BSD-style license that can be found in the LICENSE file. | 95 // BSD-style license that can be found in the LICENSE file. |
115 | 96 |
116 // WARNING: Do not edit - generated code. | 97 // WARNING: Do not edit - generated code. |
117 | 98 |
118 | 99 |
119 typedef void AudioBufferCallback(AudioBuffer audioBuffer); | 100 typedef void AudioBufferCallback(AudioBuffer audioBuffer); |
120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 101 // 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 | 102 // 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. | 103 // BSD-style license that can be found in the LICENSE file. |
123 | 104 |
124 // WARNING: Do not edit - generated code. | 105 // WARNING: Do not edit - generated code. |
125 | 106 |
126 | 107 |
127 /// @domName AudioBufferSourceNode | 108 @DomName('AudioBufferSourceNode') |
128 class AudioBufferSourceNode extends AudioSourceNode { | 109 class AudioBufferSourceNode extends AudioSourceNode { |
129 AudioBufferSourceNode.internal() : super.internal(); | 110 AudioBufferSourceNode.internal() : super.internal(); |
130 | 111 |
131 static const int FINISHED_STATE = 3; | 112 static const int FINISHED_STATE = 3; |
132 | 113 |
133 static const int PLAYING_STATE = 2; | 114 static const int PLAYING_STATE = 2; |
134 | 115 |
135 static const int SCHEDULED_STATE = 1; | 116 static const int SCHEDULED_STATE = 1; |
136 | 117 |
137 static const int UNSCHEDULED_STATE = 0; | 118 static const int UNSCHEDULED_STATE = 0; |
138 | 119 |
139 | 120 @DomName('AudioBufferSourceNode.buffer') |
140 /** @domName AudioBufferSourceNode.buffer */ | |
141 AudioBuffer get buffer native "AudioBufferSourceNode_buffer_Getter"; | 121 AudioBuffer get buffer native "AudioBufferSourceNode_buffer_Getter"; |
142 | 122 |
143 | 123 @DomName('AudioBufferSourceNode.buffer') |
144 /** @domName AudioBufferSourceNode.buffer */ | |
145 void set buffer(AudioBuffer value) native "AudioBufferSourceNode_buffer_Setter
"; | 124 void set buffer(AudioBuffer value) native "AudioBufferSourceNode_buffer_Setter
"; |
146 | 125 |
147 | 126 @DomName('AudioBufferSourceNode.gain') |
148 /** @domName AudioBufferSourceNode.gain */ | |
149 AudioGain get gain native "AudioBufferSourceNode_gain_Getter"; | 127 AudioGain get gain native "AudioBufferSourceNode_gain_Getter"; |
150 | 128 |
151 | 129 @DomName('AudioBufferSourceNode.loop') |
152 /** @domName AudioBufferSourceNode.loop */ | |
153 bool get loop native "AudioBufferSourceNode_loop_Getter"; | 130 bool get loop native "AudioBufferSourceNode_loop_Getter"; |
154 | 131 |
155 | 132 @DomName('AudioBufferSourceNode.loop') |
156 /** @domName AudioBufferSourceNode.loop */ | |
157 void set loop(bool value) native "AudioBufferSourceNode_loop_Setter"; | 133 void set loop(bool value) native "AudioBufferSourceNode_loop_Setter"; |
158 | 134 |
159 | 135 @DomName('AudioBufferSourceNode.loopEnd') |
160 /** @domName AudioBufferSourceNode.loopEnd */ | |
161 num get loopEnd native "AudioBufferSourceNode_loopEnd_Getter"; | 136 num get loopEnd native "AudioBufferSourceNode_loopEnd_Getter"; |
162 | 137 |
163 | 138 @DomName('AudioBufferSourceNode.loopEnd') |
164 /** @domName AudioBufferSourceNode.loopEnd */ | |
165 void set loopEnd(num value) native "AudioBufferSourceNode_loopEnd_Setter"; | 139 void set loopEnd(num value) native "AudioBufferSourceNode_loopEnd_Setter"; |
166 | 140 |
167 | 141 @DomName('AudioBufferSourceNode.loopStart') |
168 /** @domName AudioBufferSourceNode.loopStart */ | |
169 num get loopStart native "AudioBufferSourceNode_loopStart_Getter"; | 142 num get loopStart native "AudioBufferSourceNode_loopStart_Getter"; |
170 | 143 |
171 | 144 @DomName('AudioBufferSourceNode.loopStart') |
172 /** @domName AudioBufferSourceNode.loopStart */ | |
173 void set loopStart(num value) native "AudioBufferSourceNode_loopStart_Setter"; | 145 void set loopStart(num value) native "AudioBufferSourceNode_loopStart_Setter"; |
174 | 146 |
175 | 147 @DomName('AudioBufferSourceNode.playbackRate') |
176 /** @domName AudioBufferSourceNode.playbackRate */ | |
177 AudioParam get playbackRate native "AudioBufferSourceNode_playbackRate_Getter"
; | 148 AudioParam get playbackRate native "AudioBufferSourceNode_playbackRate_Getter"
; |
178 | 149 |
179 | 150 @DomName('AudioBufferSourceNode.playbackState') |
180 /** @domName AudioBufferSourceNode.playbackState */ | |
181 int get playbackState native "AudioBufferSourceNode_playbackState_Getter"; | 151 int get playbackState native "AudioBufferSourceNode_playbackState_Getter"; |
182 | 152 |
183 void start(/*double*/ when, [/*double*/ grainOffset, /*double*/ grainDuration]
) { | 153 void start(/*double*/ when, [/*double*/ grainOffset, /*double*/ grainDuration]
) { |
184 if ((when is num || when == null) && !?grainOffset && !?grainDuration) { | 154 if ((when is num || when == null) && !?grainOffset && !?grainDuration) { |
185 _start_1(when); | 155 _start_1(when); |
186 return; | 156 return; |
187 } | 157 } |
188 if ((when is num || when == null) && (grainOffset is num || grainOffset == n
ull) && !?grainDuration) { | 158 if ((when is num || when == null) && (grainOffset is num || grainOffset == n
ull) && !?grainDuration) { |
189 _start_2(when, grainOffset); | 159 _start_2(when, grainOffset); |
190 return; | 160 return; |
191 } | 161 } |
192 if ((when is num || when == null) && (grainOffset is num || grainOffset == n
ull) && (grainDuration is num || grainDuration == null)) { | 162 if ((when is num || when == null) && (grainOffset is num || grainOffset == n
ull) && (grainDuration is num || grainDuration == null)) { |
193 _start_3(when, grainOffset, grainDuration); | 163 _start_3(when, grainOffset, grainDuration); |
194 return; | 164 return; |
195 } | 165 } |
196 throw new ArgumentError("Incorrect number or type of arguments"); | 166 throw new ArgumentError("Incorrect number or type of arguments"); |
197 } | 167 } |
198 | 168 |
199 | 169 @DomName('AudioBufferSourceNode.start_1') |
200 /** @domName AudioBufferSourceNode.start_1 */ | |
201 void _start_1(when) native "AudioBufferSourceNode_start_1_Callback"; | 170 void _start_1(when) native "AudioBufferSourceNode_start_1_Callback"; |
202 | 171 |
203 | 172 @DomName('AudioBufferSourceNode.start_2') |
204 /** @domName AudioBufferSourceNode.start_2 */ | |
205 void _start_2(when, grainOffset) native "AudioBufferSourceNode_start_2_Callbac
k"; | 173 void _start_2(when, grainOffset) native "AudioBufferSourceNode_start_2_Callbac
k"; |
206 | 174 |
207 | 175 @DomName('AudioBufferSourceNode.start_3') |
208 /** @domName AudioBufferSourceNode.start_3 */ | |
209 void _start_3(when, grainOffset, grainDuration) native "AudioBufferSourceNode_
start_3_Callback"; | 176 void _start_3(when, grainOffset, grainDuration) native "AudioBufferSourceNode_
start_3_Callback"; |
210 | 177 |
211 | 178 @DomName('AudioBufferSourceNode.stop') |
212 /** @domName AudioBufferSourceNode.stop */ | |
213 void stop(num when) native "AudioBufferSourceNode_stop_Callback"; | 179 void stop(num when) native "AudioBufferSourceNode_stop_Callback"; |
214 | 180 |
215 } | 181 } |
216 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 182 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
217 // for details. All rights reserved. Use of this source code is governed by a | 183 // for details. All rights reserved. Use of this source code is governed by a |
218 // BSD-style license that can be found in the LICENSE file. | 184 // BSD-style license that can be found in the LICENSE file. |
219 | 185 |
220 | 186 |
221 /// @domName AudioContext | 187 @DomName('AudioContext') |
222 class AudioContext extends EventTarget { | 188 class AudioContext extends EventTarget { |
223 AudioContext.internal() : super.internal(); | 189 AudioContext.internal() : super.internal(); |
224 | 190 |
225 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); | 191 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi
der<Event>('complete'); |
226 | 192 |
227 ///@docsEditable true | 193 /// @docsEditable true |
228 factory AudioContext() => AudioContext._create(); | 194 factory AudioContext() => AudioContext._create(); |
229 static AudioContext _create() native "AudioContext_constructor_Callback"; | 195 static AudioContext _create() native "AudioContext_constructor_Callback"; |
230 | 196 |
231 /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, Ev
entTarget.dispatchEvent; @docsEditable true | 197 /// @docsEditable true |
| 198 @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, Event
Target.dispatchEvent') |
232 AudioContextEvents get on => | 199 AudioContextEvents get on => |
233 new AudioContextEvents(this); | 200 new AudioContextEvents(this); |
234 | 201 |
235 | 202 @DomName('AudioContext.activeSourceCount') |
236 /** @domName AudioContext.activeSourceCount */ | |
237 int get activeSourceCount native "AudioContext_activeSourceCount_Getter"; | 203 int get activeSourceCount native "AudioContext_activeSourceCount_Getter"; |
238 | 204 |
239 | 205 @DomName('AudioContext.currentTime') |
240 /** @domName AudioContext.currentTime */ | |
241 num get currentTime native "AudioContext_currentTime_Getter"; | 206 num get currentTime native "AudioContext_currentTime_Getter"; |
242 | 207 |
243 | 208 @DomName('AudioContext.destination') |
244 /** @domName AudioContext.destination */ | |
245 AudioDestinationNode get destination native "AudioContext_destination_Getter"; | 209 AudioDestinationNode get destination native "AudioContext_destination_Getter"; |
246 | 210 |
247 | 211 @DomName('AudioContext.listener') |
248 /** @domName AudioContext.listener */ | |
249 AudioListener get listener native "AudioContext_listener_Getter"; | 212 AudioListener get listener native "AudioContext_listener_Getter"; |
250 | 213 |
251 | 214 @DomName('AudioContext.sampleRate') |
252 /** @domName AudioContext.sampleRate */ | |
253 num get sampleRate native "AudioContext_sampleRate_Getter"; | 215 num get sampleRate native "AudioContext_sampleRate_Getter"; |
254 | 216 |
255 | 217 @DomName('AudioContext.createAnalyser') |
256 /** @domName AudioContext.createAnalyser */ | |
257 AnalyserNode createAnalyser() native "AudioContext_createAnalyser_Callback"; | 218 AnalyserNode createAnalyser() native "AudioContext_createAnalyser_Callback"; |
258 | 219 |
259 | 220 @DomName('AudioContext.createBiquadFilter') |
260 /** @domName AudioContext.createBiquadFilter */ | |
261 BiquadFilterNode createBiquadFilter() native "AudioContext_createBiquadFilter_
Callback"; | 221 BiquadFilterNode createBiquadFilter() native "AudioContext_createBiquadFilter_
Callback"; |
262 | 222 |
263 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram
es, [/*float*/ sampleRate]) { | 223 AudioBuffer createBuffer(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFram
es, [/*float*/ sampleRate]) { |
264 if ((buffer_OR_numberOfChannels is int || buffer_OR_numberOfChannels == null
) && (mixToMono_OR_numberOfFrames is int || mixToMono_OR_numberOfFrames == null)
&& (sampleRate is num || sampleRate == null)) { | 224 if ((buffer_OR_numberOfChannels is int || buffer_OR_numberOfChannels == null
) && (mixToMono_OR_numberOfFrames is int || mixToMono_OR_numberOfFrames == null)
&& (sampleRate is num || sampleRate == null)) { |
265 return _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr
ames, sampleRate); | 225 return _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr
ames, sampleRate); |
266 } | 226 } |
267 if ((buffer_OR_numberOfChannels is ArrayBuffer || buffer_OR_numberOfChannels
== null) && (mixToMono_OR_numberOfFrames is bool || mixToMono_OR_numberOfFrames
== null) && !?sampleRate) { | 227 if ((buffer_OR_numberOfChannels is ArrayBuffer || buffer_OR_numberOfChannels
== null) && (mixToMono_OR_numberOfFrames is bool || mixToMono_OR_numberOfFrames
== null) && !?sampleRate) { |
268 return _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr
ames); | 228 return _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFr
ames); |
269 } | 229 } |
270 throw new ArgumentError("Incorrect number or type of arguments"); | 230 throw new ArgumentError("Incorrect number or type of arguments"); |
271 } | 231 } |
272 | 232 |
273 | 233 @DomName('AudioContext.createBuffer_1') |
274 /** @domName AudioContext.createBuffer_1 */ | |
275 AudioBuffer _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF
rames, sampleRate) native "AudioContext_createBuffer_1_Callback"; | 234 AudioBuffer _createBuffer_1(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF
rames, sampleRate) native "AudioContext_createBuffer_1_Callback"; |
276 | 235 |
277 | 236 @DomName('AudioContext.createBuffer_2') |
278 /** @domName AudioContext.createBuffer_2 */ | |
279 AudioBuffer _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF
rames) native "AudioContext_createBuffer_2_Callback"; | 237 AudioBuffer _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfF
rames) native "AudioContext_createBuffer_2_Callback"; |
280 | 238 |
281 | 239 @DomName('AudioContext.createBufferSource') |
282 /** @domName AudioContext.createBufferSource */ | |
283 AudioBufferSourceNode createBufferSource() native "AudioContext_createBufferSo
urce_Callback"; | 240 AudioBufferSourceNode createBufferSource() native "AudioContext_createBufferSo
urce_Callback"; |
284 | 241 |
285 ChannelMergerNode createChannelMerger([/*unsigned long*/ numberOfInputs]) { | 242 ChannelMergerNode createChannelMerger([/*unsigned long*/ numberOfInputs]) { |
286 if (?numberOfInputs) { | 243 if (?numberOfInputs) { |
287 return _createChannelMerger_1(numberOfInputs); | 244 return _createChannelMerger_1(numberOfInputs); |
288 } | 245 } |
289 return _createChannelMerger_2(); | 246 return _createChannelMerger_2(); |
290 } | 247 } |
291 | 248 |
292 | 249 @DomName('AudioContext.createChannelMerger_1') |
293 /** @domName AudioContext.createChannelMerger_1 */ | |
294 ChannelMergerNode _createChannelMerger_1(numberOfInputs) native "AudioContext_
createChannelMerger_1_Callback"; | 250 ChannelMergerNode _createChannelMerger_1(numberOfInputs) native "AudioContext_
createChannelMerger_1_Callback"; |
295 | 251 |
296 | 252 @DomName('AudioContext.createChannelMerger_2') |
297 /** @domName AudioContext.createChannelMerger_2 */ | |
298 ChannelMergerNode _createChannelMerger_2() native "AudioContext_createChannelM
erger_2_Callback"; | 253 ChannelMergerNode _createChannelMerger_2() native "AudioContext_createChannelM
erger_2_Callback"; |
299 | 254 |
300 ChannelSplitterNode createChannelSplitter([/*unsigned long*/ numberOfOutputs])
{ | 255 ChannelSplitterNode createChannelSplitter([/*unsigned long*/ numberOfOutputs])
{ |
301 if (?numberOfOutputs) { | 256 if (?numberOfOutputs) { |
302 return _createChannelSplitter_1(numberOfOutputs); | 257 return _createChannelSplitter_1(numberOfOutputs); |
303 } | 258 } |
304 return _createChannelSplitter_2(); | 259 return _createChannelSplitter_2(); |
305 } | 260 } |
306 | 261 |
307 | 262 @DomName('AudioContext.createChannelSplitter_1') |
308 /** @domName AudioContext.createChannelSplitter_1 */ | |
309 ChannelSplitterNode _createChannelSplitter_1(numberOfOutputs) native "AudioCon
text_createChannelSplitter_1_Callback"; | 263 ChannelSplitterNode _createChannelSplitter_1(numberOfOutputs) native "AudioCon
text_createChannelSplitter_1_Callback"; |
310 | 264 |
311 | 265 @DomName('AudioContext.createChannelSplitter_2') |
312 /** @domName AudioContext.createChannelSplitter_2 */ | |
313 ChannelSplitterNode _createChannelSplitter_2() native "AudioContext_createChan
nelSplitter_2_Callback"; | 266 ChannelSplitterNode _createChannelSplitter_2() native "AudioContext_createChan
nelSplitter_2_Callback"; |
314 | 267 |
315 | 268 @DomName('AudioContext.createConvolver') |
316 /** @domName AudioContext.createConvolver */ | |
317 ConvolverNode createConvolver() native "AudioContext_createConvolver_Callback"
; | 269 ConvolverNode createConvolver() native "AudioContext_createConvolver_Callback"
; |
318 | 270 |
319 DelayNode createDelay([/*double*/ maxDelayTime]) { | 271 DelayNode createDelay([/*double*/ maxDelayTime]) { |
320 if (?maxDelayTime) { | 272 if (?maxDelayTime) { |
321 return _createDelay_1(maxDelayTime); | 273 return _createDelay_1(maxDelayTime); |
322 } | 274 } |
323 return _createDelay_2(); | 275 return _createDelay_2(); |
324 } | 276 } |
325 | 277 |
326 | 278 @DomName('AudioContext.createDelay_1') |
327 /** @domName AudioContext.createDelay_1 */ | |
328 DelayNode _createDelay_1(maxDelayTime) native "AudioContext_createDelay_1_Call
back"; | 279 DelayNode _createDelay_1(maxDelayTime) native "AudioContext_createDelay_1_Call
back"; |
329 | 280 |
330 | 281 @DomName('AudioContext.createDelay_2') |
331 /** @domName AudioContext.createDelay_2 */ | |
332 DelayNode _createDelay_2() native "AudioContext_createDelay_2_Callback"; | 282 DelayNode _createDelay_2() native "AudioContext_createDelay_2_Callback"; |
333 | 283 |
334 | 284 @DomName('AudioContext.createDynamicsCompressor') |
335 /** @domName AudioContext.createDynamicsCompressor */ | |
336 DynamicsCompressorNode createDynamicsCompressor() native "AudioContext_createD
ynamicsCompressor_Callback"; | 285 DynamicsCompressorNode createDynamicsCompressor() native "AudioContext_createD
ynamicsCompressor_Callback"; |
337 | 286 |
338 | 287 @DomName('AudioContext.createGain') |
339 /** @domName AudioContext.createGain */ | |
340 GainNode createGain() native "AudioContext_createGain_Callback"; | 288 GainNode createGain() native "AudioContext_createGain_Callback"; |
341 | 289 |
342 | 290 @DomName('AudioContext.createMediaElementSource') |
343 /** @domName AudioContext.createMediaElementSource */ | |
344 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native "AudioContext_createMediaElementSource_Callback"; | 291 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement
) native "AudioContext_createMediaElementSource_Callback"; |
345 | 292 |
346 | 293 @DomName('AudioContext.createMediaStreamDestination') |
347 /** @domName AudioContext.createMediaStreamDestination */ | |
348 MediaStreamAudioDestinationNode createMediaStreamDestination() native "AudioCo
ntext_createMediaStreamDestination_Callback"; | 294 MediaStreamAudioDestinationNode createMediaStreamDestination() native "AudioCo
ntext_createMediaStreamDestination_Callback"; |
349 | 295 |
350 | 296 @DomName('AudioContext.createMediaStreamSource') |
351 /** @domName AudioContext.createMediaStreamSource */ | |
352 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na
tive "AudioContext_createMediaStreamSource_Callback"; | 297 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) na
tive "AudioContext_createMediaStreamSource_Callback"; |
353 | 298 |
354 | 299 @DomName('AudioContext.createOscillator') |
355 /** @domName AudioContext.createOscillator */ | |
356 OscillatorNode createOscillator() native "AudioContext_createOscillator_Callba
ck"; | 300 OscillatorNode createOscillator() native "AudioContext_createOscillator_Callba
ck"; |
357 | 301 |
358 | 302 @DomName('AudioContext.createPanner') |
359 /** @domName AudioContext.createPanner */ | |
360 PannerNode createPanner() native "AudioContext_createPanner_Callback"; | 303 PannerNode createPanner() native "AudioContext_createPanner_Callback"; |
361 | 304 |
362 ScriptProcessorNode createScriptProcessor(/*unsigned long*/ bufferSize, [/*uns
igned long*/ numberOfInputChannels, /*unsigned long*/ numberOfOutputChannels]) { | 305 ScriptProcessorNode createScriptProcessor(/*unsigned long*/ bufferSize, [/*uns
igned long*/ numberOfInputChannels, /*unsigned long*/ numberOfOutputChannels]) { |
363 if (?numberOfOutputChannels) { | 306 if (?numberOfOutputChannels) { |
364 return _createScriptProcessor_1(bufferSize, numberOfInputChannels, numberO
fOutputChannels); | 307 return _createScriptProcessor_1(bufferSize, numberOfInputChannels, numberO
fOutputChannels); |
365 } | 308 } |
366 if (?numberOfInputChannels) { | 309 if (?numberOfInputChannels) { |
367 return _createScriptProcessor_2(bufferSize, numberOfInputChannels); | 310 return _createScriptProcessor_2(bufferSize, numberOfInputChannels); |
368 } | 311 } |
369 return _createScriptProcessor_3(bufferSize); | 312 return _createScriptProcessor_3(bufferSize); |
370 } | 313 } |
371 | 314 |
372 | 315 @DomName('AudioContext.createScriptProcessor_1') |
373 /** @domName AudioContext.createScriptProcessor_1 */ | |
374 ScriptProcessorNode _createScriptProcessor_1(bufferSize, numberOfInputChannels
, numberOfOutputChannels) native "AudioContext_createScriptProcessor_1_Callback"
; | 316 ScriptProcessorNode _createScriptProcessor_1(bufferSize, numberOfInputChannels
, numberOfOutputChannels) native "AudioContext_createScriptProcessor_1_Callback"
; |
375 | 317 |
376 | 318 @DomName('AudioContext.createScriptProcessor_2') |
377 /** @domName AudioContext.createScriptProcessor_2 */ | |
378 ScriptProcessorNode _createScriptProcessor_2(bufferSize, numberOfInputChannels
) native "AudioContext_createScriptProcessor_2_Callback"; | 319 ScriptProcessorNode _createScriptProcessor_2(bufferSize, numberOfInputChannels
) native "AudioContext_createScriptProcessor_2_Callback"; |
379 | 320 |
380 | 321 @DomName('AudioContext.createScriptProcessor_3') |
381 /** @domName AudioContext.createScriptProcessor_3 */ | |
382 ScriptProcessorNode _createScriptProcessor_3(bufferSize) native "AudioContext_
createScriptProcessor_3_Callback"; | 322 ScriptProcessorNode _createScriptProcessor_3(bufferSize) native "AudioContext_
createScriptProcessor_3_Callback"; |
383 | 323 |
384 | 324 @DomName('AudioContext.createWaveShaper') |
385 /** @domName AudioContext.createWaveShaper */ | |
386 WaveShaperNode createWaveShaper() native "AudioContext_createWaveShaper_Callba
ck"; | 325 WaveShaperNode createWaveShaper() native "AudioContext_createWaveShaper_Callba
ck"; |
387 | 326 |
388 | 327 @DomName('AudioContext.createWaveTable') |
389 /** @domName AudioContext.createWaveTable */ | |
390 WaveTable createWaveTable(Float32Array real, Float32Array imag) native "AudioC
ontext_createWaveTable_Callback"; | 328 WaveTable createWaveTable(Float32Array real, Float32Array imag) native "AudioC
ontext_createWaveTable_Callback"; |
391 | 329 |
392 | 330 @DomName('AudioContext.decodeAudioData') |
393 /** @domName AudioContext.decodeAudioData */ | |
394 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) native "AudioContext_decodeAudioData_Cal
lback"; | 331 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) native "AudioContext_decodeAudioData_Cal
lback"; |
395 | 332 |
396 | 333 @DomName('AudioContext.startRendering') |
397 /** @domName AudioContext.startRendering */ | |
398 void startRendering() native "AudioContext_startRendering_Callback"; | 334 void startRendering() native "AudioContext_startRendering_Callback"; |
399 | 335 |
400 Stream<Event> get onComplete => completeEvent.forTarget(this); | 336 Stream<Event> get onComplete => completeEvent.forTarget(this); |
401 | 337 |
402 } | 338 } |
403 | 339 |
404 /// @docsEditable true | 340 /// @docsEditable true |
405 class AudioContextEvents extends Events { | 341 class AudioContextEvents extends Events { |
406 /// @docsEditable true | 342 /// @docsEditable true |
407 AudioContextEvents(EventTarget _ptr) : super(_ptr); | 343 AudioContextEvents(EventTarget _ptr) : super(_ptr); |
408 | 344 |
409 /// @docsEditable true | 345 /// @docsEditable true |
410 EventListenerList get complete => this['complete']; | 346 EventListenerList get complete => this['complete']; |
411 } | 347 } |
412 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 348 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
413 // for details. All rights reserved. Use of this source code is governed by a | 349 // for details. All rights reserved. Use of this source code is governed by a |
414 // BSD-style license that can be found in the LICENSE file. | 350 // BSD-style license that can be found in the LICENSE file. |
415 | 351 |
416 // WARNING: Do not edit - generated code. | 352 // WARNING: Do not edit - generated code. |
417 | 353 |
418 | 354 |
419 /// @domName AudioDestinationNode | 355 @DomName('AudioDestinationNode') |
420 class AudioDestinationNode extends AudioNode { | 356 class AudioDestinationNode extends AudioNode { |
421 AudioDestinationNode.internal() : super.internal(); | 357 AudioDestinationNode.internal() : super.internal(); |
422 | 358 |
423 | 359 @DomName('AudioDestinationNode.numberOfChannels') |
424 /** @domName AudioDestinationNode.numberOfChannels */ | |
425 int get numberOfChannels native "AudioDestinationNode_numberOfChannels_Getter"
; | 360 int get numberOfChannels native "AudioDestinationNode_numberOfChannels_Getter"
; |
426 | 361 |
427 } | 362 } |
428 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 363 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
429 // for details. All rights reserved. Use of this source code is governed by a | 364 // for details. All rights reserved. Use of this source code is governed by a |
430 // BSD-style license that can be found in the LICENSE file. | 365 // BSD-style license that can be found in the LICENSE file. |
431 | 366 |
432 // WARNING: Do not edit - generated code. | 367 // WARNING: Do not edit - generated code. |
433 | 368 |
434 | 369 |
435 /// @domName AudioGain | 370 @DomName('AudioGain') |
436 class AudioGain extends AudioParam { | 371 class AudioGain extends AudioParam { |
437 AudioGain.internal() : super.internal(); | 372 AudioGain.internal() : super.internal(); |
438 | 373 |
439 } | 374 } |
440 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 375 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
441 // for details. All rights reserved. Use of this source code is governed by a | 376 // for details. All rights reserved. Use of this source code is governed by a |
442 // BSD-style license that can be found in the LICENSE file. | 377 // BSD-style license that can be found in the LICENSE file. |
443 | 378 |
444 // WARNING: Do not edit - generated code. | 379 // WARNING: Do not edit - generated code. |
445 | 380 |
446 | 381 |
447 /// @domName AudioListener | 382 @DomName('AudioListener') |
448 class AudioListener extends NativeFieldWrapperClass1 { | 383 class AudioListener extends NativeFieldWrapperClass1 { |
449 AudioListener.internal(); | 384 AudioListener.internal(); |
450 | 385 |
451 | 386 @DomName('AudioListener.dopplerFactor') |
452 /** @domName AudioListener.dopplerFactor */ | |
453 num get dopplerFactor native "AudioListener_dopplerFactor_Getter"; | 387 num get dopplerFactor native "AudioListener_dopplerFactor_Getter"; |
454 | 388 |
455 | 389 @DomName('AudioListener.dopplerFactor') |
456 /** @domName AudioListener.dopplerFactor */ | |
457 void set dopplerFactor(num value) native "AudioListener_dopplerFactor_Setter"; | 390 void set dopplerFactor(num value) native "AudioListener_dopplerFactor_Setter"; |
458 | 391 |
459 | 392 @DomName('AudioListener.speedOfSound') |
460 /** @domName AudioListener.speedOfSound */ | |
461 num get speedOfSound native "AudioListener_speedOfSound_Getter"; | 393 num get speedOfSound native "AudioListener_speedOfSound_Getter"; |
462 | 394 |
463 | 395 @DomName('AudioListener.speedOfSound') |
464 /** @domName AudioListener.speedOfSound */ | |
465 void set speedOfSound(num value) native "AudioListener_speedOfSound_Setter"; | 396 void set speedOfSound(num value) native "AudioListener_speedOfSound_Setter"; |
466 | 397 |
467 | 398 @DomName('AudioListener.setOrientation') |
468 /** @domName AudioListener.setOrientation */ | |
469 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native "Au
dioListener_setOrientation_Callback"; | 399 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) native "Au
dioListener_setOrientation_Callback"; |
470 | 400 |
471 | 401 @DomName('AudioListener.setPosition') |
472 /** @domName AudioListener.setPosition */ | |
473 void setPosition(num x, num y, num z) native "AudioListener_setPosition_Callba
ck"; | 402 void setPosition(num x, num y, num z) native "AudioListener_setPosition_Callba
ck"; |
474 | 403 |
475 | 404 @DomName('AudioListener.setVelocity') |
476 /** @domName AudioListener.setVelocity */ | |
477 void setVelocity(num x, num y, num z) native "AudioListener_setVelocity_Callba
ck"; | 405 void setVelocity(num x, num y, num z) native "AudioListener_setVelocity_Callba
ck"; |
478 | 406 |
479 } | 407 } |
480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 408 // 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 | 409 // 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. | 410 // BSD-style license that can be found in the LICENSE file. |
483 | 411 |
484 // WARNING: Do not edit - generated code. | 412 // WARNING: Do not edit - generated code. |
485 | 413 |
486 | 414 |
487 /// @domName AudioNode | 415 @DomName('AudioNode') |
488 class AudioNode extends NativeFieldWrapperClass1 { | 416 class AudioNode extends NativeFieldWrapperClass1 { |
489 AudioNode.internal(); | 417 AudioNode.internal(); |
490 | 418 |
491 | 419 @DomName('AudioNode.context') |
492 /** @domName AudioNode.context */ | |
493 AudioContext get context native "AudioNode_context_Getter"; | 420 AudioContext get context native "AudioNode_context_Getter"; |
494 | 421 |
495 | 422 @DomName('AudioNode.numberOfInputs') |
496 /** @domName AudioNode.numberOfInputs */ | |
497 int get numberOfInputs native "AudioNode_numberOfInputs_Getter"; | 423 int get numberOfInputs native "AudioNode_numberOfInputs_Getter"; |
498 | 424 |
499 | 425 @DomName('AudioNode.numberOfOutputs') |
500 /** @domName AudioNode.numberOfOutputs */ | |
501 int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter"; | 426 int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter"; |
502 | 427 |
503 void connect(destination, /*unsigned long*/ output, [/*unsigned long*/ input])
{ | 428 void connect(destination, /*unsigned long*/ output, [/*unsigned long*/ input])
{ |
504 if ((destination is AudioNode || destination == null) && (output is int || o
utput == null) && (input is int || input == null)) { | 429 if ((destination is AudioNode || destination == null) && (output is int || o
utput == null) && (input is int || input == null)) { |
505 _connect_1(destination, output, input); | 430 _connect_1(destination, output, input); |
506 return; | 431 return; |
507 } | 432 } |
508 if ((destination is AudioParam || destination == null) && (output is int ||
output == null) && !?input) { | 433 if ((destination is AudioParam || destination == null) && (output is int ||
output == null) && !?input) { |
509 _connect_2(destination, output); | 434 _connect_2(destination, output); |
510 return; | 435 return; |
511 } | 436 } |
512 throw new ArgumentError("Incorrect number or type of arguments"); | 437 throw new ArgumentError("Incorrect number or type of arguments"); |
513 } | 438 } |
514 | 439 |
515 | 440 @DomName('AudioNode.connect_1') |
516 /** @domName AudioNode.connect_1 */ | |
517 void _connect_1(destination, output, input) native "AudioNode_connect_1_Callba
ck"; | 441 void _connect_1(destination, output, input) native "AudioNode_connect_1_Callba
ck"; |
518 | 442 |
519 | 443 @DomName('AudioNode.connect_2') |
520 /** @domName AudioNode.connect_2 */ | |
521 void _connect_2(destination, output) native "AudioNode_connect_2_Callback"; | 444 void _connect_2(destination, output) native "AudioNode_connect_2_Callback"; |
522 | 445 |
523 | 446 @DomName('AudioNode.disconnect') |
524 /** @domName AudioNode.disconnect */ | |
525 void disconnect(int output) native "AudioNode_disconnect_Callback"; | 447 void disconnect(int output) native "AudioNode_disconnect_Callback"; |
526 | 448 |
527 } | 449 } |
528 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 450 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
529 // for details. All rights reserved. Use of this source code is governed by a | 451 // for details. All rights reserved. Use of this source code is governed by a |
530 // BSD-style license that can be found in the LICENSE file. | 452 // BSD-style license that can be found in the LICENSE file. |
531 | 453 |
532 // WARNING: Do not edit - generated code. | 454 // WARNING: Do not edit - generated code. |
533 | 455 |
534 | 456 |
535 /// @domName AudioParam | 457 @DomName('AudioParam') |
536 class AudioParam extends NativeFieldWrapperClass1 { | 458 class AudioParam extends NativeFieldWrapperClass1 { |
537 AudioParam.internal(); | 459 AudioParam.internal(); |
538 | 460 |
539 | 461 @DomName('AudioParam.defaultValue') |
540 /** @domName AudioParam.defaultValue */ | |
541 num get defaultValue native "AudioParam_defaultValue_Getter"; | 462 num get defaultValue native "AudioParam_defaultValue_Getter"; |
542 | 463 |
543 | 464 @DomName('AudioParam.maxValue') |
544 /** @domName AudioParam.maxValue */ | |
545 num get maxValue native "AudioParam_maxValue_Getter"; | 465 num get maxValue native "AudioParam_maxValue_Getter"; |
546 | 466 |
547 | 467 @DomName('AudioParam.minValue') |
548 /** @domName AudioParam.minValue */ | |
549 num get minValue native "AudioParam_minValue_Getter"; | 468 num get minValue native "AudioParam_minValue_Getter"; |
550 | 469 |
551 | 470 @DomName('AudioParam.name') |
552 /** @domName AudioParam.name */ | |
553 String get name native "AudioParam_name_Getter"; | 471 String get name native "AudioParam_name_Getter"; |
554 | 472 |
555 | 473 @DomName('AudioParam.units') |
556 /** @domName AudioParam.units */ | |
557 int get units native "AudioParam_units_Getter"; | 474 int get units native "AudioParam_units_Getter"; |
558 | 475 |
559 | 476 @DomName('AudioParam.value') |
560 /** @domName AudioParam.value */ | |
561 num get value native "AudioParam_value_Getter"; | 477 num get value native "AudioParam_value_Getter"; |
562 | 478 |
563 | 479 @DomName('AudioParam.value') |
564 /** @domName AudioParam.value */ | |
565 void set value(num value) native "AudioParam_value_Setter"; | 480 void set value(num value) native "AudioParam_value_Setter"; |
566 | 481 |
567 | 482 @DomName('AudioParam.cancelScheduledValues') |
568 /** @domName AudioParam.cancelScheduledValues */ | |
569 void cancelScheduledValues(num startTime) native "AudioParam_cancelScheduledVa
lues_Callback"; | 483 void cancelScheduledValues(num startTime) native "AudioParam_cancelScheduledVa
lues_Callback"; |
570 | 484 |
571 | 485 @DomName('AudioParam.exponentialRampToValueAtTime') |
572 /** @domName AudioParam.exponentialRampToValueAtTime */ | |
573 void exponentialRampToValueAtTime(num value, num time) native "AudioParam_expo
nentialRampToValueAtTime_Callback"; | 486 void exponentialRampToValueAtTime(num value, num time) native "AudioParam_expo
nentialRampToValueAtTime_Callback"; |
574 | 487 |
575 | 488 @DomName('AudioParam.linearRampToValueAtTime') |
576 /** @domName AudioParam.linearRampToValueAtTime */ | |
577 void linearRampToValueAtTime(num value, num time) native "AudioParam_linearRam
pToValueAtTime_Callback"; | 489 void linearRampToValueAtTime(num value, num time) native "AudioParam_linearRam
pToValueAtTime_Callback"; |
578 | 490 |
579 | 491 @DomName('AudioParam.setTargetAtTime') |
580 /** @domName AudioParam.setTargetAtTime */ | |
581 void setTargetAtTime(num target, num time, num timeConstant) native "AudioPara
m_setTargetAtTime_Callback"; | 492 void setTargetAtTime(num target, num time, num timeConstant) native "AudioPara
m_setTargetAtTime_Callback"; |
582 | 493 |
583 | 494 @DomName('AudioParam.setValueAtTime') |
584 /** @domName AudioParam.setValueAtTime */ | |
585 void setValueAtTime(num value, num time) native "AudioParam_setValueAtTime_Cal
lback"; | 495 void setValueAtTime(num value, num time) native "AudioParam_setValueAtTime_Cal
lback"; |
586 | 496 |
587 | 497 @DomName('AudioParam.setValueCurveAtTime') |
588 /** @domName AudioParam.setValueCurveAtTime */ | |
589 void setValueCurveAtTime(Float32Array values, num time, num duration) native "
AudioParam_setValueCurveAtTime_Callback"; | 498 void setValueCurveAtTime(Float32Array values, num time, num duration) native "
AudioParam_setValueCurveAtTime_Callback"; |
590 | 499 |
591 } | 500 } |
592 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
593 // for details. All rights reserved. Use of this source code is governed by a | 502 // for details. All rights reserved. Use of this source code is governed by a |
594 // BSD-style license that can be found in the LICENSE file. | 503 // BSD-style license that can be found in the LICENSE file. |
595 | 504 |
596 // WARNING: Do not edit - generated code. | 505 // WARNING: Do not edit - generated code. |
597 | 506 |
598 | 507 |
599 /// @domName AudioProcessingEvent | 508 @DomName('AudioProcessingEvent') |
600 class AudioProcessingEvent extends Event { | 509 class AudioProcessingEvent extends Event { |
601 AudioProcessingEvent.internal() : super.internal(); | 510 AudioProcessingEvent.internal() : super.internal(); |
602 | 511 |
603 | 512 @DomName('AudioProcessingEvent.inputBuffer') |
604 /** @domName AudioProcessingEvent.inputBuffer */ | |
605 AudioBuffer get inputBuffer native "AudioProcessingEvent_inputBuffer_Getter"; | 513 AudioBuffer get inputBuffer native "AudioProcessingEvent_inputBuffer_Getter"; |
606 | 514 |
607 | 515 @DomName('AudioProcessingEvent.outputBuffer') |
608 /** @domName AudioProcessingEvent.outputBuffer */ | |
609 AudioBuffer get outputBuffer native "AudioProcessingEvent_outputBuffer_Getter"
; | 516 AudioBuffer get outputBuffer native "AudioProcessingEvent_outputBuffer_Getter"
; |
610 | 517 |
611 } | 518 } |
612 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 519 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
613 // for details. All rights reserved. Use of this source code is governed by a | 520 // for details. All rights reserved. Use of this source code is governed by a |
614 // BSD-style license that can be found in the LICENSE file. | 521 // BSD-style license that can be found in the LICENSE file. |
615 | 522 |
616 // WARNING: Do not edit - generated code. | 523 // WARNING: Do not edit - generated code. |
617 | 524 |
618 | 525 |
619 /// @domName AudioSourceNode | 526 @DomName('AudioSourceNode') |
620 class AudioSourceNode extends AudioNode { | 527 class AudioSourceNode extends AudioNode { |
621 AudioSourceNode.internal() : super.internal(); | 528 AudioSourceNode.internal() : super.internal(); |
622 | 529 |
623 } | 530 } |
624 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 531 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
625 // for details. All rights reserved. Use of this source code is governed by a | 532 // for details. All rights reserved. Use of this source code is governed by a |
626 // BSD-style license that can be found in the LICENSE file. | 533 // BSD-style license that can be found in the LICENSE file. |
627 | 534 |
628 // WARNING: Do not edit - generated code. | 535 // WARNING: Do not edit - generated code. |
629 | 536 |
630 | 537 |
631 /// @domName BiquadFilterNode | 538 @DomName('BiquadFilterNode') |
632 class BiquadFilterNode extends AudioNode { | 539 class BiquadFilterNode extends AudioNode { |
633 BiquadFilterNode.internal() : super.internal(); | 540 BiquadFilterNode.internal() : super.internal(); |
634 | 541 |
635 static const int ALLPASS = 7; | 542 static const int ALLPASS = 7; |
636 | 543 |
637 static const int BANDPASS = 2; | 544 static const int BANDPASS = 2; |
638 | 545 |
639 static const int HIGHPASS = 1; | 546 static const int HIGHPASS = 1; |
640 | 547 |
641 static const int HIGHSHELF = 4; | 548 static const int HIGHSHELF = 4; |
642 | 549 |
643 static const int LOWPASS = 0; | 550 static const int LOWPASS = 0; |
644 | 551 |
645 static const int LOWSHELF = 3; | 552 static const int LOWSHELF = 3; |
646 | 553 |
647 static const int NOTCH = 6; | 554 static const int NOTCH = 6; |
648 | 555 |
649 static const int PEAKING = 5; | 556 static const int PEAKING = 5; |
650 | 557 |
651 | 558 @DomName('BiquadFilterNode.Q') |
652 /** @domName BiquadFilterNode.Q */ | |
653 AudioParam get Q native "BiquadFilterNode_Q_Getter"; | 559 AudioParam get Q native "BiquadFilterNode_Q_Getter"; |
654 | 560 |
655 | 561 @DomName('BiquadFilterNode.detune') |
656 /** @domName BiquadFilterNode.detune */ | |
657 AudioParam get detune native "BiquadFilterNode_detune_Getter"; | 562 AudioParam get detune native "BiquadFilterNode_detune_Getter"; |
658 | 563 |
659 | 564 @DomName('BiquadFilterNode.frequency') |
660 /** @domName BiquadFilterNode.frequency */ | |
661 AudioParam get frequency native "BiquadFilterNode_frequency_Getter"; | 565 AudioParam get frequency native "BiquadFilterNode_frequency_Getter"; |
662 | 566 |
663 | 567 @DomName('BiquadFilterNode.gain') |
664 /** @domName BiquadFilterNode.gain */ | |
665 AudioParam get gain native "BiquadFilterNode_gain_Getter"; | 568 AudioParam get gain native "BiquadFilterNode_gain_Getter"; |
666 | 569 |
667 | 570 @DomName('BiquadFilterNode.type') |
668 /** @domName BiquadFilterNode.type */ | |
669 int get type native "BiquadFilterNode_type_Getter"; | 571 int get type native "BiquadFilterNode_type_Getter"; |
670 | 572 |
671 | 573 @DomName('BiquadFilterNode.type') |
672 /** @domName BiquadFilterNode.type */ | |
673 void set type(int value) native "BiquadFilterNode_type_Setter"; | 574 void set type(int value) native "BiquadFilterNode_type_Setter"; |
674 | 575 |
675 | 576 @DomName('BiquadFilterNode.getFrequencyResponse') |
676 /** @domName BiquadFilterNode.getFrequencyResponse */ | |
677 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse,
Float32Array phaseResponse) native "BiquadFilterNode_getFrequencyResponse_Callba
ck"; | 577 void getFrequencyResponse(Float32Array frequencyHz, Float32Array magResponse,
Float32Array phaseResponse) native "BiquadFilterNode_getFrequencyResponse_Callba
ck"; |
678 | 578 |
679 } | 579 } |
680 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
681 // for details. All rights reserved. Use of this source code is governed by a | 581 // for details. All rights reserved. Use of this source code is governed by a |
682 // BSD-style license that can be found in the LICENSE file. | 582 // BSD-style license that can be found in the LICENSE file. |
683 | 583 |
684 // WARNING: Do not edit - generated code. | 584 // WARNING: Do not edit - generated code. |
685 | 585 |
686 | 586 |
687 /// @domName ChannelMergerNode | 587 @DomName('ChannelMergerNode') |
688 class ChannelMergerNode extends AudioNode { | 588 class ChannelMergerNode extends AudioNode { |
689 ChannelMergerNode.internal() : super.internal(); | 589 ChannelMergerNode.internal() : super.internal(); |
690 | 590 |
691 } | 591 } |
692 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 592 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
693 // for details. All rights reserved. Use of this source code is governed by a | 593 // for details. All rights reserved. Use of this source code is governed by a |
694 // BSD-style license that can be found in the LICENSE file. | 594 // BSD-style license that can be found in the LICENSE file. |
695 | 595 |
696 // WARNING: Do not edit - generated code. | 596 // WARNING: Do not edit - generated code. |
697 | 597 |
698 | 598 |
699 /// @domName ChannelSplitterNode | 599 @DomName('ChannelSplitterNode') |
700 class ChannelSplitterNode extends AudioNode { | 600 class ChannelSplitterNode extends AudioNode { |
701 ChannelSplitterNode.internal() : super.internal(); | 601 ChannelSplitterNode.internal() : super.internal(); |
702 | 602 |
703 } | 603 } |
704 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 604 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
705 // for details. All rights reserved. Use of this source code is governed by a | 605 // for details. All rights reserved. Use of this source code is governed by a |
706 // BSD-style license that can be found in the LICENSE file. | 606 // BSD-style license that can be found in the LICENSE file. |
707 | 607 |
708 // WARNING: Do not edit - generated code. | 608 // WARNING: Do not edit - generated code. |
709 | 609 |
710 | 610 |
711 /// @domName ConvolverNode | 611 @DomName('ConvolverNode') |
712 class ConvolverNode extends AudioNode { | 612 class ConvolverNode extends AudioNode { |
713 ConvolverNode.internal() : super.internal(); | 613 ConvolverNode.internal() : super.internal(); |
714 | 614 |
715 | 615 @DomName('ConvolverNode.buffer') |
716 /** @domName ConvolverNode.buffer */ | |
717 AudioBuffer get buffer native "ConvolverNode_buffer_Getter"; | 616 AudioBuffer get buffer native "ConvolverNode_buffer_Getter"; |
718 | 617 |
719 | 618 @DomName('ConvolverNode.buffer') |
720 /** @domName ConvolverNode.buffer */ | |
721 void set buffer(AudioBuffer value) native "ConvolverNode_buffer_Setter"; | 619 void set buffer(AudioBuffer value) native "ConvolverNode_buffer_Setter"; |
722 | 620 |
723 | 621 @DomName('ConvolverNode.normalize') |
724 /** @domName ConvolverNode.normalize */ | |
725 bool get normalize native "ConvolverNode_normalize_Getter"; | 622 bool get normalize native "ConvolverNode_normalize_Getter"; |
726 | 623 |
727 | 624 @DomName('ConvolverNode.normalize') |
728 /** @domName ConvolverNode.normalize */ | |
729 void set normalize(bool value) native "ConvolverNode_normalize_Setter"; | 625 void set normalize(bool value) native "ConvolverNode_normalize_Setter"; |
730 | 626 |
731 } | 627 } |
732 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 628 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
733 // for details. All rights reserved. Use of this source code is governed by a | 629 // for details. All rights reserved. Use of this source code is governed by a |
734 // BSD-style license that can be found in the LICENSE file. | 630 // BSD-style license that can be found in the LICENSE file. |
735 | 631 |
736 // WARNING: Do not edit - generated code. | 632 // WARNING: Do not edit - generated code. |
737 | 633 |
738 | 634 |
739 /// @domName DelayNode | 635 @DomName('DelayNode') |
740 class DelayNode extends AudioNode { | 636 class DelayNode extends AudioNode { |
741 DelayNode.internal() : super.internal(); | 637 DelayNode.internal() : super.internal(); |
742 | 638 |
743 | 639 @DomName('DelayNode.delayTime') |
744 /** @domName DelayNode.delayTime */ | |
745 AudioParam get delayTime native "DelayNode_delayTime_Getter"; | 640 AudioParam get delayTime native "DelayNode_delayTime_Getter"; |
746 | 641 |
747 } | 642 } |
748 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 643 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
749 // for details. All rights reserved. Use of this source code is governed by a | 644 // for details. All rights reserved. Use of this source code is governed by a |
750 // BSD-style license that can be found in the LICENSE file. | 645 // BSD-style license that can be found in the LICENSE file. |
751 | 646 |
752 // WARNING: Do not edit - generated code. | 647 // WARNING: Do not edit - generated code. |
753 | 648 |
754 | 649 |
755 /// @domName DynamicsCompressorNode | 650 @DomName('DynamicsCompressorNode') |
756 class DynamicsCompressorNode extends AudioNode { | 651 class DynamicsCompressorNode extends AudioNode { |
757 DynamicsCompressorNode.internal() : super.internal(); | 652 DynamicsCompressorNode.internal() : super.internal(); |
758 | 653 |
759 | 654 @DomName('DynamicsCompressorNode.attack') |
760 /** @domName DynamicsCompressorNode.attack */ | |
761 AudioParam get attack native "DynamicsCompressorNode_attack_Getter"; | 655 AudioParam get attack native "DynamicsCompressorNode_attack_Getter"; |
762 | 656 |
763 | 657 @DomName('DynamicsCompressorNode.knee') |
764 /** @domName DynamicsCompressorNode.knee */ | |
765 AudioParam get knee native "DynamicsCompressorNode_knee_Getter"; | 658 AudioParam get knee native "DynamicsCompressorNode_knee_Getter"; |
766 | 659 |
767 | 660 @DomName('DynamicsCompressorNode.ratio') |
768 /** @domName DynamicsCompressorNode.ratio */ | |
769 AudioParam get ratio native "DynamicsCompressorNode_ratio_Getter"; | 661 AudioParam get ratio native "DynamicsCompressorNode_ratio_Getter"; |
770 | 662 |
771 | 663 @DomName('DynamicsCompressorNode.reduction') |
772 /** @domName DynamicsCompressorNode.reduction */ | |
773 AudioParam get reduction native "DynamicsCompressorNode_reduction_Getter"; | 664 AudioParam get reduction native "DynamicsCompressorNode_reduction_Getter"; |
774 | 665 |
775 | 666 @DomName('DynamicsCompressorNode.release') |
776 /** @domName DynamicsCompressorNode.release */ | |
777 AudioParam get release native "DynamicsCompressorNode_release_Getter"; | 667 AudioParam get release native "DynamicsCompressorNode_release_Getter"; |
778 | 668 |
779 | 669 @DomName('DynamicsCompressorNode.threshold') |
780 /** @domName DynamicsCompressorNode.threshold */ | |
781 AudioParam get threshold native "DynamicsCompressorNode_threshold_Getter"; | 670 AudioParam get threshold native "DynamicsCompressorNode_threshold_Getter"; |
782 | 671 |
783 } | 672 } |
784 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 673 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
785 // for details. All rights reserved. Use of this source code is governed by a | 674 // for details. All rights reserved. Use of this source code is governed by a |
786 // BSD-style license that can be found in the LICENSE file. | 675 // BSD-style license that can be found in the LICENSE file. |
787 | 676 |
788 // WARNING: Do not edit - generated code. | 677 // WARNING: Do not edit - generated code. |
789 | 678 |
790 | 679 |
791 /// @domName GainNode | 680 @DomName('GainNode') |
792 class GainNode extends AudioNode { | 681 class GainNode extends AudioNode { |
793 GainNode.internal() : super.internal(); | 682 GainNode.internal() : super.internal(); |
794 | 683 |
795 | 684 @DomName('GainNode.gain') |
796 /** @domName GainNode.gain */ | |
797 AudioGain get gain native "GainNode_gain_Getter"; | 685 AudioGain get gain native "GainNode_gain_Getter"; |
798 | 686 |
799 } | 687 } |
800 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 688 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
801 // for details. All rights reserved. Use of this source code is governed by a | 689 // for details. All rights reserved. Use of this source code is governed by a |
802 // BSD-style license that can be found in the LICENSE file. | 690 // BSD-style license that can be found in the LICENSE file. |
803 | 691 |
804 // WARNING: Do not edit - generated code. | 692 // WARNING: Do not edit - generated code. |
805 | 693 |
806 | 694 |
807 /// @domName MediaElementAudioSourceNode | 695 @DomName('MediaElementAudioSourceNode') |
808 class MediaElementAudioSourceNode extends AudioSourceNode { | 696 class MediaElementAudioSourceNode extends AudioSourceNode { |
809 MediaElementAudioSourceNode.internal() : super.internal(); | 697 MediaElementAudioSourceNode.internal() : super.internal(); |
810 | 698 |
811 | 699 @DomName('MediaElementAudioSourceNode.mediaElement') |
812 /** @domName MediaElementAudioSourceNode.mediaElement */ | |
813 MediaElement get mediaElement native "MediaElementAudioSourceNode_mediaElement
_Getter"; | 700 MediaElement get mediaElement native "MediaElementAudioSourceNode_mediaElement
_Getter"; |
814 | 701 |
815 } | 702 } |
816 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
817 // for details. All rights reserved. Use of this source code is governed by a | 704 // for details. All rights reserved. Use of this source code is governed by a |
818 // BSD-style license that can be found in the LICENSE file. | 705 // BSD-style license that can be found in the LICENSE file. |
819 | 706 |
820 // WARNING: Do not edit - generated code. | 707 // WARNING: Do not edit - generated code. |
821 | 708 |
822 | 709 |
823 /// @domName MediaStreamAudioDestinationNode | 710 @DomName('MediaStreamAudioDestinationNode') |
824 class MediaStreamAudioDestinationNode extends AudioSourceNode { | 711 class MediaStreamAudioDestinationNode extends AudioSourceNode { |
825 MediaStreamAudioDestinationNode.internal() : super.internal(); | 712 MediaStreamAudioDestinationNode.internal() : super.internal(); |
826 | 713 |
827 | 714 @DomName('MediaStreamAudioDestinationNode.stream') |
828 /** @domName MediaStreamAudioDestinationNode.stream */ | |
829 MediaStream get stream native "MediaStreamAudioDestinationNode_stream_Getter"; | 715 MediaStream get stream native "MediaStreamAudioDestinationNode_stream_Getter"; |
830 | 716 |
831 } | 717 } |
832 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 718 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
833 // for details. All rights reserved. Use of this source code is governed by a | 719 // for details. All rights reserved. Use of this source code is governed by a |
834 // BSD-style license that can be found in the LICENSE file. | 720 // BSD-style license that can be found in the LICENSE file. |
835 | 721 |
836 // WARNING: Do not edit - generated code. | 722 // WARNING: Do not edit - generated code. |
837 | 723 |
838 | 724 |
839 /// @domName MediaStreamAudioSourceNode | 725 @DomName('MediaStreamAudioSourceNode') |
840 class MediaStreamAudioSourceNode extends AudioSourceNode { | 726 class MediaStreamAudioSourceNode extends AudioSourceNode { |
841 MediaStreamAudioSourceNode.internal() : super.internal(); | 727 MediaStreamAudioSourceNode.internal() : super.internal(); |
842 | 728 |
843 | 729 @DomName('MediaStreamAudioSourceNode.mediaStream') |
844 /** @domName MediaStreamAudioSourceNode.mediaStream */ | |
845 MediaStream get mediaStream native "MediaStreamAudioSourceNode_mediaStream_Get
ter"; | 730 MediaStream get mediaStream native "MediaStreamAudioSourceNode_mediaStream_Get
ter"; |
846 | 731 |
847 } | 732 } |
848 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 733 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
849 // for details. All rights reserved. Use of this source code is governed by a | 734 // for details. All rights reserved. Use of this source code is governed by a |
850 // BSD-style license that can be found in the LICENSE file. | 735 // BSD-style license that can be found in the LICENSE file. |
851 | 736 |
852 // WARNING: Do not edit - generated code. | 737 // WARNING: Do not edit - generated code. |
853 | 738 |
854 | 739 |
855 /// @domName OfflineAudioCompletionEvent | 740 @DomName('OfflineAudioCompletionEvent') |
856 class OfflineAudioCompletionEvent extends Event { | 741 class OfflineAudioCompletionEvent extends Event { |
857 OfflineAudioCompletionEvent.internal() : super.internal(); | 742 OfflineAudioCompletionEvent.internal() : super.internal(); |
858 | 743 |
859 | 744 @DomName('OfflineAudioCompletionEvent.renderedBuffer') |
860 /** @domName OfflineAudioCompletionEvent.renderedBuffer */ | |
861 AudioBuffer get renderedBuffer native "OfflineAudioCompletionEvent_renderedBuf
fer_Getter"; | 745 AudioBuffer get renderedBuffer native "OfflineAudioCompletionEvent_renderedBuf
fer_Getter"; |
862 | 746 |
863 } | 747 } |
864 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 748 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
865 // for details. All rights reserved. Use of this source code is governed by a | 749 // for details. All rights reserved. Use of this source code is governed by a |
866 // BSD-style license that can be found in the LICENSE file. | 750 // BSD-style license that can be found in the LICENSE file. |
867 | 751 |
868 // WARNING: Do not edit - generated code. | 752 // WARNING: Do not edit - generated code. |
869 | 753 |
870 | 754 |
871 /// @domName OfflineAudioContext | 755 @DomName('OfflineAudioContext') |
872 class OfflineAudioContext extends AudioContext implements EventTarget { | 756 class OfflineAudioContext extends AudioContext implements EventTarget { |
873 OfflineAudioContext.internal() : super.internal(); | 757 OfflineAudioContext.internal() : super.internal(); |
874 | 758 |
875 ///@docsEditable true | 759 /// @docsEditable true |
876 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp
leRate) => OfflineAudioContext._create(numberOfChannels, numberOfFrames, sampleR
ate); | 760 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp
leRate) => OfflineAudioContext._create(numberOfChannels, numberOfFrames, sampleR
ate); |
877 static OfflineAudioContext _create(int numberOfChannels, int numberOfFrames, n
um sampleRate) native "OfflineAudioContext_constructor_Callback"; | 761 static OfflineAudioContext _create(int numberOfChannels, int numberOfFrames, n
um sampleRate) native "OfflineAudioContext_constructor_Callback"; |
878 | 762 |
879 } | 763 } |
880 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 764 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
881 // for details. All rights reserved. Use of this source code is governed by a | 765 // for details. All rights reserved. Use of this source code is governed by a |
882 // BSD-style license that can be found in the LICENSE file. | 766 // BSD-style license that can be found in the LICENSE file. |
883 | 767 |
884 // WARNING: Do not edit - generated code. | 768 // WARNING: Do not edit - generated code. |
885 | 769 |
886 | 770 |
887 /// @domName OscillatorNode | 771 @DomName('OscillatorNode') |
888 class OscillatorNode extends AudioSourceNode { | 772 class OscillatorNode extends AudioSourceNode { |
889 OscillatorNode.internal() : super.internal(); | 773 OscillatorNode.internal() : super.internal(); |
890 | 774 |
891 static const int CUSTOM = 4; | 775 static const int CUSTOM = 4; |
892 | 776 |
893 static const int FINISHED_STATE = 3; | 777 static const int FINISHED_STATE = 3; |
894 | 778 |
895 static const int PLAYING_STATE = 2; | 779 static const int PLAYING_STATE = 2; |
896 | 780 |
897 static const int SAWTOOTH = 2; | 781 static const int SAWTOOTH = 2; |
898 | 782 |
899 static const int SCHEDULED_STATE = 1; | 783 static const int SCHEDULED_STATE = 1; |
900 | 784 |
901 static const int SINE = 0; | 785 static const int SINE = 0; |
902 | 786 |
903 static const int SQUARE = 1; | 787 static const int SQUARE = 1; |
904 | 788 |
905 static const int TRIANGLE = 3; | 789 static const int TRIANGLE = 3; |
906 | 790 |
907 static const int UNSCHEDULED_STATE = 0; | 791 static const int UNSCHEDULED_STATE = 0; |
908 | 792 |
909 | 793 @DomName('OscillatorNode.detune') |
910 /** @domName OscillatorNode.detune */ | |
911 AudioParam get detune native "OscillatorNode_detune_Getter"; | 794 AudioParam get detune native "OscillatorNode_detune_Getter"; |
912 | 795 |
913 | 796 @DomName('OscillatorNode.frequency') |
914 /** @domName OscillatorNode.frequency */ | |
915 AudioParam get frequency native "OscillatorNode_frequency_Getter"; | 797 AudioParam get frequency native "OscillatorNode_frequency_Getter"; |
916 | 798 |
917 | 799 @DomName('OscillatorNode.playbackState') |
918 /** @domName OscillatorNode.playbackState */ | |
919 int get playbackState native "OscillatorNode_playbackState_Getter"; | 800 int get playbackState native "OscillatorNode_playbackState_Getter"; |
920 | 801 |
921 | 802 @DomName('OscillatorNode.type') |
922 /** @domName OscillatorNode.type */ | |
923 int get type native "OscillatorNode_type_Getter"; | 803 int get type native "OscillatorNode_type_Getter"; |
924 | 804 |
925 | 805 @DomName('OscillatorNode.type') |
926 /** @domName OscillatorNode.type */ | |
927 void set type(int value) native "OscillatorNode_type_Setter"; | 806 void set type(int value) native "OscillatorNode_type_Setter"; |
928 | 807 |
929 | 808 @DomName('OscillatorNode.setWaveTable') |
930 /** @domName OscillatorNode.setWaveTable */ | |
931 void setWaveTable(WaveTable waveTable) native "OscillatorNode_setWaveTable_Cal
lback"; | 809 void setWaveTable(WaveTable waveTable) native "OscillatorNode_setWaveTable_Cal
lback"; |
932 | 810 |
933 | 811 @DomName('OscillatorNode.start') |
934 /** @domName OscillatorNode.start */ | |
935 void start(num when) native "OscillatorNode_start_Callback"; | 812 void start(num when) native "OscillatorNode_start_Callback"; |
936 | 813 |
937 | 814 @DomName('OscillatorNode.stop') |
938 /** @domName OscillatorNode.stop */ | |
939 void stop(num when) native "OscillatorNode_stop_Callback"; | 815 void stop(num when) native "OscillatorNode_stop_Callback"; |
940 | 816 |
941 } | 817 } |
942 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 818 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
943 // for details. All rights reserved. Use of this source code is governed by a | 819 // for details. All rights reserved. Use of this source code is governed by a |
944 // BSD-style license that can be found in the LICENSE file. | 820 // BSD-style license that can be found in the LICENSE file. |
945 | 821 |
946 // WARNING: Do not edit - generated code. | 822 // WARNING: Do not edit - generated code. |
947 | 823 |
948 | 824 |
949 /// @domName PannerNode | 825 @DomName('PannerNode') |
950 class PannerNode extends AudioNode { | 826 class PannerNode extends AudioNode { |
951 PannerNode.internal() : super.internal(); | 827 PannerNode.internal() : super.internal(); |
952 | 828 |
953 static const int EQUALPOWER = 0; | 829 static const int EQUALPOWER = 0; |
954 | 830 |
955 static const int EXPONENTIAL_DISTANCE = 2; | 831 static const int EXPONENTIAL_DISTANCE = 2; |
956 | 832 |
957 static const int HRTF = 1; | 833 static const int HRTF = 1; |
958 | 834 |
959 static const int INVERSE_DISTANCE = 1; | 835 static const int INVERSE_DISTANCE = 1; |
960 | 836 |
961 static const int LINEAR_DISTANCE = 0; | 837 static const int LINEAR_DISTANCE = 0; |
962 | 838 |
963 static const int SOUNDFIELD = 2; | 839 static const int SOUNDFIELD = 2; |
964 | 840 |
965 | 841 @DomName('PannerNode.coneInnerAngle') |
966 /** @domName PannerNode.coneInnerAngle */ | |
967 num get coneInnerAngle native "PannerNode_coneInnerAngle_Getter"; | 842 num get coneInnerAngle native "PannerNode_coneInnerAngle_Getter"; |
968 | 843 |
969 | 844 @DomName('PannerNode.coneInnerAngle') |
970 /** @domName PannerNode.coneInnerAngle */ | |
971 void set coneInnerAngle(num value) native "PannerNode_coneInnerAngle_Setter"; | 845 void set coneInnerAngle(num value) native "PannerNode_coneInnerAngle_Setter"; |
972 | 846 |
973 | 847 @DomName('PannerNode.coneOuterAngle') |
974 /** @domName PannerNode.coneOuterAngle */ | |
975 num get coneOuterAngle native "PannerNode_coneOuterAngle_Getter"; | 848 num get coneOuterAngle native "PannerNode_coneOuterAngle_Getter"; |
976 | 849 |
977 | 850 @DomName('PannerNode.coneOuterAngle') |
978 /** @domName PannerNode.coneOuterAngle */ | |
979 void set coneOuterAngle(num value) native "PannerNode_coneOuterAngle_Setter"; | 851 void set coneOuterAngle(num value) native "PannerNode_coneOuterAngle_Setter"; |
980 | 852 |
981 | 853 @DomName('PannerNode.coneOuterGain') |
982 /** @domName PannerNode.coneOuterGain */ | |
983 num get coneOuterGain native "PannerNode_coneOuterGain_Getter"; | 854 num get coneOuterGain native "PannerNode_coneOuterGain_Getter"; |
984 | 855 |
985 | 856 @DomName('PannerNode.coneOuterGain') |
986 /** @domName PannerNode.coneOuterGain */ | |
987 void set coneOuterGain(num value) native "PannerNode_coneOuterGain_Setter"; | 857 void set coneOuterGain(num value) native "PannerNode_coneOuterGain_Setter"; |
988 | 858 |
989 | 859 @DomName('PannerNode.distanceModel') |
990 /** @domName PannerNode.distanceModel */ | |
991 int get distanceModel native "PannerNode_distanceModel_Getter"; | 860 int get distanceModel native "PannerNode_distanceModel_Getter"; |
992 | 861 |
993 | 862 @DomName('PannerNode.distanceModel') |
994 /** @domName PannerNode.distanceModel */ | |
995 void set distanceModel(int value) native "PannerNode_distanceModel_Setter"; | 863 void set distanceModel(int value) native "PannerNode_distanceModel_Setter"; |
996 | 864 |
997 | 865 @DomName('PannerNode.maxDistance') |
998 /** @domName PannerNode.maxDistance */ | |
999 num get maxDistance native "PannerNode_maxDistance_Getter"; | 866 num get maxDistance native "PannerNode_maxDistance_Getter"; |
1000 | 867 |
1001 | 868 @DomName('PannerNode.maxDistance') |
1002 /** @domName PannerNode.maxDistance */ | |
1003 void set maxDistance(num value) native "PannerNode_maxDistance_Setter"; | 869 void set maxDistance(num value) native "PannerNode_maxDistance_Setter"; |
1004 | 870 |
1005 | 871 @DomName('PannerNode.panningModel') |
1006 /** @domName PannerNode.panningModel */ | |
1007 int get panningModel native "PannerNode_panningModel_Getter"; | 872 int get panningModel native "PannerNode_panningModel_Getter"; |
1008 | 873 |
1009 | 874 @DomName('PannerNode.panningModel') |
1010 /** @domName PannerNode.panningModel */ | |
1011 void set panningModel(int value) native "PannerNode_panningModel_Setter"; | 875 void set panningModel(int value) native "PannerNode_panningModel_Setter"; |
1012 | 876 |
1013 | 877 @DomName('PannerNode.refDistance') |
1014 /** @domName PannerNode.refDistance */ | |
1015 num get refDistance native "PannerNode_refDistance_Getter"; | 878 num get refDistance native "PannerNode_refDistance_Getter"; |
1016 | 879 |
1017 | 880 @DomName('PannerNode.refDistance') |
1018 /** @domName PannerNode.refDistance */ | |
1019 void set refDistance(num value) native "PannerNode_refDistance_Setter"; | 881 void set refDistance(num value) native "PannerNode_refDistance_Setter"; |
1020 | 882 |
1021 | 883 @DomName('PannerNode.rolloffFactor') |
1022 /** @domName PannerNode.rolloffFactor */ | |
1023 num get rolloffFactor native "PannerNode_rolloffFactor_Getter"; | 884 num get rolloffFactor native "PannerNode_rolloffFactor_Getter"; |
1024 | 885 |
1025 | 886 @DomName('PannerNode.rolloffFactor') |
1026 /** @domName PannerNode.rolloffFactor */ | |
1027 void set rolloffFactor(num value) native "PannerNode_rolloffFactor_Setter"; | 887 void set rolloffFactor(num value) native "PannerNode_rolloffFactor_Setter"; |
1028 | 888 |
1029 | 889 @DomName('PannerNode.setOrientation') |
1030 /** @domName PannerNode.setOrientation */ | |
1031 void setOrientation(num x, num y, num z) native "PannerNode_setOrientation_Cal
lback"; | 890 void setOrientation(num x, num y, num z) native "PannerNode_setOrientation_Cal
lback"; |
1032 | 891 |
1033 | 892 @DomName('PannerNode.setPosition') |
1034 /** @domName PannerNode.setPosition */ | |
1035 void setPosition(num x, num y, num z) native "PannerNode_setPosition_Callback"
; | 893 void setPosition(num x, num y, num z) native "PannerNode_setPosition_Callback"
; |
1036 | 894 |
1037 | 895 @DomName('PannerNode.setVelocity') |
1038 /** @domName PannerNode.setVelocity */ | |
1039 void setVelocity(num x, num y, num z) native "PannerNode_setVelocity_Callback"
; | 896 void setVelocity(num x, num y, num z) native "PannerNode_setVelocity_Callback"
; |
1040 | 897 |
1041 } | 898 } |
1042 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 899 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1043 // for details. All rights reserved. Use of this source code is governed by a | 900 // for details. All rights reserved. Use of this source code is governed by a |
1044 // BSD-style license that can be found in the LICENSE file. | 901 // BSD-style license that can be found in the LICENSE file. |
1045 | 902 |
1046 // WARNING: Do not edit - generated code. | 903 // WARNING: Do not edit - generated code. |
1047 | 904 |
1048 | 905 |
1049 /// @domName ScriptProcessorNode | 906 @DomName('ScriptProcessorNode') |
1050 class ScriptProcessorNode extends AudioNode implements EventTarget { | 907 class ScriptProcessorNode extends AudioNode implements EventTarget { |
1051 ScriptProcessorNode.internal() : super.internal(); | 908 ScriptProcessorNode.internal() : super.internal(); |
1052 | 909 |
1053 | 910 @DomName('ScriptProcessorNode.bufferSize') |
1054 /** @domName ScriptProcessorNode.bufferSize */ | |
1055 int get bufferSize native "ScriptProcessorNode_bufferSize_Getter"; | 911 int get bufferSize native "ScriptProcessorNode_bufferSize_Getter"; |
1056 | 912 |
1057 } | 913 } |
1058 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 914 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1059 // for details. All rights reserved. Use of this source code is governed by a | 915 // for details. All rights reserved. Use of this source code is governed by a |
1060 // BSD-style license that can be found in the LICENSE file. | 916 // BSD-style license that can be found in the LICENSE file. |
1061 | 917 |
1062 // WARNING: Do not edit - generated code. | 918 // WARNING: Do not edit - generated code. |
1063 | 919 |
1064 | 920 |
1065 /// @domName WaveShaperNode | 921 @DomName('WaveShaperNode') |
1066 class WaveShaperNode extends AudioNode { | 922 class WaveShaperNode extends AudioNode { |
1067 WaveShaperNode.internal() : super.internal(); | 923 WaveShaperNode.internal() : super.internal(); |
1068 | 924 |
1069 | 925 @DomName('WaveShaperNode.curve') |
1070 /** @domName WaveShaperNode.curve */ | |
1071 Float32Array get curve native "WaveShaperNode_curve_Getter"; | 926 Float32Array get curve native "WaveShaperNode_curve_Getter"; |
1072 | 927 |
1073 | 928 @DomName('WaveShaperNode.curve') |
1074 /** @domName WaveShaperNode.curve */ | |
1075 void set curve(Float32Array value) native "WaveShaperNode_curve_Setter"; | 929 void set curve(Float32Array value) native "WaveShaperNode_curve_Setter"; |
1076 | 930 |
1077 } | 931 } |
1078 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 932 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1079 // for details. All rights reserved. Use of this source code is governed by a | 933 // for details. All rights reserved. Use of this source code is governed by a |
1080 // BSD-style license that can be found in the LICENSE file. | 934 // BSD-style license that can be found in the LICENSE file. |
1081 | 935 |
1082 // WARNING: Do not edit - generated code. | 936 // WARNING: Do not edit - generated code. |
1083 | 937 |
1084 | 938 |
1085 /// @domName WaveTable | 939 @DomName('WaveTable') |
1086 class WaveTable extends NativeFieldWrapperClass1 { | 940 class WaveTable extends NativeFieldWrapperClass1 { |
1087 WaveTable.internal(); | 941 WaveTable.internal(); |
1088 | 942 |
1089 } | 943 } |
OLD | NEW |