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