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

Side by Side Diff: sdk/lib/web_audio/dartium/web_audio_dartium.dart

Issue 1173403004: Changed to use JSInterop (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Re-gen'd somehow diffs stopped showing up in CL Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | sdk/lib/web_gl/dartium/web_gl_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * High-fidelity audio programming in the browser. 2 * High-fidelity audio programming in the browser.
3 */ 3 */
4 library dart.dom.web_audio; 4 library dart.dom.web_audio;
5 5
6 import 'dart:async'; 6 import 'dart:async';
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:_internal' hide deprecated; 8 import 'dart:_internal' hide deprecated;
9 import 'dart:html'; 9 import 'dart:html';
10 import 'dart:html_common'; 10 import 'dart:html_common';
(...skipping 30 matching lines...) Expand all
41 'MediaStreamAudioSourceNode': () => MediaStreamAudioSourceNode, 41 'MediaStreamAudioSourceNode': () => MediaStreamAudioSourceNode,
42 'OfflineAudioCompletionEvent': () => OfflineAudioCompletionEvent, 42 'OfflineAudioCompletionEvent': () => OfflineAudioCompletionEvent,
43 'OfflineAudioContext': () => OfflineAudioContext, 43 'OfflineAudioContext': () => OfflineAudioContext,
44 'OscillatorNode': () => OscillatorNode, 44 'OscillatorNode': () => OscillatorNode,
45 'PannerNode': () => PannerNode, 45 'PannerNode': () => PannerNode,
46 'PeriodicWave': () => PeriodicWave, 46 'PeriodicWave': () => PeriodicWave,
47 'ScriptProcessorNode': () => ScriptProcessorNode, 47 'ScriptProcessorNode': () => ScriptProcessorNode,
48 'WaveShaperNode': () => WaveShaperNode, 48 'WaveShaperNode': () => WaveShaperNode,
49 49
50 }; 50 };
51
51 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 52 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
52 // for details. All rights reserved. Use of this source code is governed by a 53 // for details. All rights reserved. Use of this source code is governed by a
53 // BSD-style license that can be found in the LICENSE file. 54 // BSD-style license that can be found in the LICENSE file.
54 55
55 // WARNING: Do not edit - generated code. 56 // WARNING: Do not edit - generated code.
56 57
57 58
58 @DocsEditable() 59 @DocsEditable()
59 @DomName('AnalyserNode') 60 @DomName('AnalyserNode')
60 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Analyse rNode 61 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Analyse rNode
61 @Experimental() 62 @Experimental()
62 class AnalyserNode extends AudioNode { 63 class AnalyserNode extends AudioNode {
63 // To suppress missing implicit constructor warnings. 64 // To suppress missing implicit constructor warnings.
64 factory AnalyserNode._() { throw new UnsupportedError("Not supported"); } 65 factory AnalyserNode._() { throw new UnsupportedError("Not supported"); }
65 66
66 @DomName('AnalyserNode.fftSize') 67
67 @DocsEditable() 68 static AnalyserNode internalCreateAnalyserNode() {
68 int get fftSize => _blink.BlinkAnalyserNode.instance.fftSize_Getter_(this); 69 return new AnalyserNode._internalWrap();
70 }
71
72 factory AnalyserNode._internalWrap() {
73 return new AnalyserNode._internal();
74 }
75
76 AnalyserNode._internal() : super._internal();
77
69 78
70 @DomName('AnalyserNode.fftSize') 79 @DomName('AnalyserNode.fftSize')
71 @DocsEditable() 80 @DocsEditable()
72 void set fftSize(int value) => _blink.BlinkAnalyserNode.instance.fftSize_Sette r_(this, value); 81 int get fftSize => _blink.BlinkAnalyserNode.instance.fftSize_Getter_(unwrap_js o(this));
73 82
83 @DomName('AnalyserNode.fftSize')
84 @DocsEditable()
85 void set fftSize(int value) => _blink.BlinkAnalyserNode.instance.fftSize_Sette r_(unwrap_jso(this), value);
86
74 @DomName('AnalyserNode.frequencyBinCount') 87 @DomName('AnalyserNode.frequencyBinCount')
75 @DocsEditable() 88 @DocsEditable()
76 int get frequencyBinCount => _blink.BlinkAnalyserNode.instance.frequencyBinCou nt_Getter_(this); 89 int get frequencyBinCount => _blink.BlinkAnalyserNode.instance.frequencyBinCou nt_Getter_(unwrap_jso(this));
77 90
78 @DomName('AnalyserNode.maxDecibels') 91 @DomName('AnalyserNode.maxDecibels')
79 @DocsEditable() 92 @DocsEditable()
80 num get maxDecibels => _blink.BlinkAnalyserNode.instance.maxDecibels_Getter_(t his); 93 num get maxDecibels => _blink.BlinkAnalyserNode.instance.maxDecibels_Getter_(u nwrap_jso(this));
81 94
82 @DomName('AnalyserNode.maxDecibels') 95 @DomName('AnalyserNode.maxDecibels')
83 @DocsEditable() 96 @DocsEditable()
84 void set maxDecibels(num value) => _blink.BlinkAnalyserNode.instance.maxDecibe ls_Setter_(this, value); 97 void set maxDecibels(num value) => _blink.BlinkAnalyserNode.instance.maxDecibe ls_Setter_(unwrap_jso(this), value);
85 98
86 @DomName('AnalyserNode.minDecibels') 99 @DomName('AnalyserNode.minDecibels')
87 @DocsEditable() 100 @DocsEditable()
88 num get minDecibels => _blink.BlinkAnalyserNode.instance.minDecibels_Getter_(t his); 101 num get minDecibels => _blink.BlinkAnalyserNode.instance.minDecibels_Getter_(u nwrap_jso(this));
89 102
90 @DomName('AnalyserNode.minDecibels') 103 @DomName('AnalyserNode.minDecibels')
91 @DocsEditable() 104 @DocsEditable()
92 void set minDecibels(num value) => _blink.BlinkAnalyserNode.instance.minDecibe ls_Setter_(this, value); 105 void set minDecibels(num value) => _blink.BlinkAnalyserNode.instance.minDecibe ls_Setter_(unwrap_jso(this), value);
93 106
94 @DomName('AnalyserNode.smoothingTimeConstant') 107 @DomName('AnalyserNode.smoothingTimeConstant')
95 @DocsEditable() 108 @DocsEditable()
96 num get smoothingTimeConstant => _blink.BlinkAnalyserNode.instance.smoothingTi meConstant_Getter_(this); 109 num get smoothingTimeConstant => _blink.BlinkAnalyserNode.instance.smoothingTi meConstant_Getter_(unwrap_jso(this));
97 110
98 @DomName('AnalyserNode.smoothingTimeConstant') 111 @DomName('AnalyserNode.smoothingTimeConstant')
99 @DocsEditable() 112 @DocsEditable()
100 void set smoothingTimeConstant(num value) => _blink.BlinkAnalyserNode.instance .smoothingTimeConstant_Setter_(this, value); 113 void set smoothingTimeConstant(num value) => _blink.BlinkAnalyserNode.instance .smoothingTimeConstant_Setter_(unwrap_jso(this), value);
101 114
102 @DomName('AnalyserNode.getByteFrequencyData') 115 @DomName('AnalyserNode.getByteFrequencyData')
103 @DocsEditable() 116 @DocsEditable()
104 void getByteFrequencyData(Uint8List array) => _blink.BlinkAnalyserNode.instanc e.getByteFrequencyData_Callback_1_(this, array); 117 void getByteFrequencyData(Uint8List array) => _blink.BlinkAnalyserNode.instanc e.getByteFrequencyData_Callback_1_(unwrap_jso(this), array);
105 118
106 @DomName('AnalyserNode.getByteTimeDomainData') 119 @DomName('AnalyserNode.getByteTimeDomainData')
107 @DocsEditable() 120 @DocsEditable()
108 void getByteTimeDomainData(Uint8List array) => _blink.BlinkAnalyserNode.instan ce.getByteTimeDomainData_Callback_1_(this, array); 121 void getByteTimeDomainData(Uint8List array) => _blink.BlinkAnalyserNode.instan ce.getByteTimeDomainData_Callback_1_(unwrap_jso(this), array);
109 122
110 @DomName('AnalyserNode.getFloatFrequencyData') 123 @DomName('AnalyserNode.getFloatFrequencyData')
111 @DocsEditable() 124 @DocsEditable()
112 void getFloatFrequencyData(Float32List array) => _blink.BlinkAnalyserNode.inst ance.getFloatFrequencyData_Callback_1_(this, array); 125 void getFloatFrequencyData(Float32List array) => _blink.BlinkAnalyserNode.inst ance.getFloatFrequencyData_Callback_1_(unwrap_jso(this), array);
113 126
114 @DomName('AnalyserNode.getFloatTimeDomainData') 127 @DomName('AnalyserNode.getFloatTimeDomainData')
115 @DocsEditable() 128 @DocsEditable()
116 @Experimental() // untriaged 129 @Experimental() // untriaged
117 void getFloatTimeDomainData(Float32List array) => _blink.BlinkAnalyserNode.ins tance.getFloatTimeDomainData_Callback_1_(this, array); 130 void getFloatTimeDomainData(Float32List array) => _blink.BlinkAnalyserNode.ins tance.getFloatTimeDomainData_Callback_1_(unwrap_jso(this), array);
118 131
119 } 132 }
120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 133 // 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 134 // 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. 135 // BSD-style license that can be found in the LICENSE file.
123 136
124 // WARNING: Do not edit - generated code. 137 // WARNING: Do not edit - generated code.
125 138
126 139
127 @DocsEditable() 140 @DocsEditable()
128 @DomName('AudioBuffer') 141 @DomName('AudioBuffer')
129 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu ffer-section 142 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu ffer-section
130 @Experimental() 143 @Experimental()
131 class AudioBuffer extends NativeFieldWrapperClass2 { 144 class AudioBuffer extends NativeFieldWrapperClass2 {
132 // To suppress missing implicit constructor warnings. 145 // To suppress missing implicit constructor warnings.
133 factory AudioBuffer._() { throw new UnsupportedError("Not supported"); } 146 factory AudioBuffer._() { throw new UnsupportedError("Not supported"); }
134 147
148 static AudioBuffer internalCreateAudioBuffer() {
149 return new AudioBuffer._internalWrap();
150 }
151
152 JsObject blink_jsObject = null;
153
154 factory AudioBuffer._internalWrap() {
155 return new AudioBuffer._internal();
156 }
157
158 AudioBuffer._internal() { }
159
160 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
161
135 @DomName('AudioBuffer.duration') 162 @DomName('AudioBuffer.duration')
136 @DocsEditable() 163 @DocsEditable()
137 double get duration => _blink.BlinkAudioBuffer.instance.duration_Getter_(this) ; 164 double get duration => _blink.BlinkAudioBuffer.instance.duration_Getter_(unwra p_jso(this));
138 165
139 @DomName('AudioBuffer.length') 166 @DomName('AudioBuffer.length')
140 @DocsEditable() 167 @DocsEditable()
141 int get length => _blink.BlinkAudioBuffer.instance.length_Getter_(this); 168 int get length => _blink.BlinkAudioBuffer.instance.length_Getter_(unwrap_jso(t his));
142 169
143 @DomName('AudioBuffer.numberOfChannels') 170 @DomName('AudioBuffer.numberOfChannels')
144 @DocsEditable() 171 @DocsEditable()
145 int get numberOfChannels => _blink.BlinkAudioBuffer.instance.numberOfChannels_ Getter_(this); 172 int get numberOfChannels => _blink.BlinkAudioBuffer.instance.numberOfChannels_ Getter_(unwrap_jso(this));
146 173
147 @DomName('AudioBuffer.sampleRate') 174 @DomName('AudioBuffer.sampleRate')
148 @DocsEditable() 175 @DocsEditable()
149 double get sampleRate => _blink.BlinkAudioBuffer.instance.sampleRate_Getter_(t his); 176 double get sampleRate => _blink.BlinkAudioBuffer.instance.sampleRate_Getter_(u nwrap_jso(this));
150 177
151 @DomName('AudioBuffer.getChannelData') 178 @DomName('AudioBuffer.getChannelData')
152 @DocsEditable() 179 @DocsEditable()
153 Float32List getChannelData(int channelIndex) => _blink.BlinkAudioBuffer.instan ce.getChannelData_Callback_1_(this, channelIndex); 180 Float32List getChannelData(int channelIndex) => _blink.BlinkAudioBuffer.instan ce.getChannelData_Callback_1_(unwrap_jso(this), channelIndex);
154 181
155 } 182 }
156 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 183 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
157 // for details. All rights reserved. Use of this source code is governed by a 184 // for details. All rights reserved. Use of this source code is governed by a
158 // BSD-style license that can be found in the LICENSE file. 185 // BSD-style license that can be found in the LICENSE file.
159 186
160 // WARNING: Do not edit - generated code. 187 // WARNING: Do not edit - generated code.
161 188
162 189
163 @DomName('AudioBufferCallback') 190 @DomName('AudioBufferCallback')
164 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu ffer-section 191 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBu ffer-section
(...skipping 20 matching lines...) Expand all
185 * Static factory designed to expose `ended` events to event 212 * Static factory designed to expose `ended` events to event
186 * handlers that are not necessarily instances of [AudioBufferSourceNode]. 213 * handlers that are not necessarily instances of [AudioBufferSourceNode].
187 * 214 *
188 * See [EventStreamProvider] for usage information. 215 * See [EventStreamProvider] for usage information.
189 */ 216 */
190 @DomName('AudioBufferSourceNode.endedEvent') 217 @DomName('AudioBufferSourceNode.endedEvent')
191 @DocsEditable() 218 @DocsEditable()
192 @Experimental() // untriaged 219 @Experimental() // untriaged
193 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended'); 220 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended');
194 221
195 @DomName('AudioBufferSourceNode.buffer') 222
196 @DocsEditable() 223 static AudioBufferSourceNode internalCreateAudioBufferSourceNode() {
197 AudioBuffer get buffer => _blink.BlinkAudioBufferSourceNode.instance.buffer_Ge tter_(this); 224 return new AudioBufferSourceNode._internalWrap();
225 }
226
227 factory AudioBufferSourceNode._internalWrap() {
228 return new AudioBufferSourceNode._internal();
229 }
230
231 AudioBufferSourceNode._internal() : super._internal();
232
198 233
199 @DomName('AudioBufferSourceNode.buffer') 234 @DomName('AudioBufferSourceNode.buffer')
200 @DocsEditable() 235 @DocsEditable()
201 void set buffer(AudioBuffer value) => _blink.BlinkAudioBufferSourceNode.instan ce.buffer_Setter_(this, value); 236 AudioBuffer get buffer => wrap_jso(_blink.BlinkAudioBufferSourceNode.instance. buffer_Getter_(unwrap_jso(this)));
202 237
238 @DomName('AudioBufferSourceNode.buffer')
239 @DocsEditable()
240 void set buffer(AudioBuffer value) => _blink.BlinkAudioBufferSourceNode.instan ce.buffer_Setter_(unwrap_jso(this), unwrap_jso(value));
241
203 @DomName('AudioBufferSourceNode.loop') 242 @DomName('AudioBufferSourceNode.loop')
204 @DocsEditable() 243 @DocsEditable()
205 bool get loop => _blink.BlinkAudioBufferSourceNode.instance.loop_Getter_(this) ; 244 bool get loop => _blink.BlinkAudioBufferSourceNode.instance.loop_Getter_(unwra p_jso(this));
206 245
207 @DomName('AudioBufferSourceNode.loop') 246 @DomName('AudioBufferSourceNode.loop')
208 @DocsEditable() 247 @DocsEditable()
209 void set loop(bool value) => _blink.BlinkAudioBufferSourceNode.instance.loop_S etter_(this, value); 248 void set loop(bool value) => _blink.BlinkAudioBufferSourceNode.instance.loop_S etter_(unwrap_jso(this), value);
210 249
211 @DomName('AudioBufferSourceNode.loopEnd') 250 @DomName('AudioBufferSourceNode.loopEnd')
212 @DocsEditable() 251 @DocsEditable()
213 num get loopEnd => _blink.BlinkAudioBufferSourceNode.instance.loopEnd_Getter_( this); 252 num get loopEnd => _blink.BlinkAudioBufferSourceNode.instance.loopEnd_Getter_( unwrap_jso(this));
214 253
215 @DomName('AudioBufferSourceNode.loopEnd') 254 @DomName('AudioBufferSourceNode.loopEnd')
216 @DocsEditable() 255 @DocsEditable()
217 void set loopEnd(num value) => _blink.BlinkAudioBufferSourceNode.instance.loop End_Setter_(this, value); 256 void set loopEnd(num value) => _blink.BlinkAudioBufferSourceNode.instance.loop End_Setter_(unwrap_jso(this), value);
218 257
219 @DomName('AudioBufferSourceNode.loopStart') 258 @DomName('AudioBufferSourceNode.loopStart')
220 @DocsEditable() 259 @DocsEditable()
221 num get loopStart => _blink.BlinkAudioBufferSourceNode.instance.loopStart_Gett er_(this); 260 num get loopStart => _blink.BlinkAudioBufferSourceNode.instance.loopStart_Gett er_(unwrap_jso(this));
222 261
223 @DomName('AudioBufferSourceNode.loopStart') 262 @DomName('AudioBufferSourceNode.loopStart')
224 @DocsEditable() 263 @DocsEditable()
225 void set loopStart(num value) => _blink.BlinkAudioBufferSourceNode.instance.lo opStart_Setter_(this, value); 264 void set loopStart(num value) => _blink.BlinkAudioBufferSourceNode.instance.lo opStart_Setter_(unwrap_jso(this), value);
226 265
227 @DomName('AudioBufferSourceNode.playbackRate') 266 @DomName('AudioBufferSourceNode.playbackRate')
228 @DocsEditable() 267 @DocsEditable()
229 AudioParam get playbackRate => _blink.BlinkAudioBufferSourceNode.instance.play backRate_Getter_(this); 268 AudioParam get playbackRate => wrap_jso(_blink.BlinkAudioBufferSourceNode.inst ance.playbackRate_Getter_(unwrap_jso(this)));
230 269
231 void start([num when, num grainOffset, num grainDuration]) { 270 void start([num when, num grainOffset, num grainDuration]) {
232 if (grainDuration != null) { 271 if (grainDuration != null) {
233 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_3_(this, when, g rainOffset, grainDuration); 272 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_3_(unwrap_jso(th is), when, grainOffset, grainDuration);
234 return; 273 return;
235 } 274 }
236 if (grainOffset != null) { 275 if (grainOffset != null) {
237 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_2_(this, when, g rainOffset); 276 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_2_(unwrap_jso(th is), when, grainOffset);
238 return; 277 return;
239 } 278 }
240 if (when != null) { 279 if (when != null) {
241 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_1_(this, when); 280 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_1_(unwrap_jso(th is), when);
242 return; 281 return;
243 } 282 }
244 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_0_(this); 283 _blink.BlinkAudioBufferSourceNode.instance.start_Callback_0_(unwrap_jso(this ));
245 return; 284 return;
246 } 285 }
247 286
248 void stop([num when]) { 287 void stop([num when]) {
249 if (when != null) { 288 if (when != null) {
250 _blink.BlinkAudioBufferSourceNode.instance.stop_Callback_1_(this, when); 289 _blink.BlinkAudioBufferSourceNode.instance.stop_Callback_1_(unwrap_jso(thi s), when);
251 return; 290 return;
252 } 291 }
253 _blink.BlinkAudioBufferSourceNode.instance.stop_Callback_0_(this); 292 _blink.BlinkAudioBufferSourceNode.instance.stop_Callback_0_(unwrap_jso(this) );
254 return; 293 return;
255 } 294 }
256 295
257 /// Stream of `ended` events handled by this [AudioBufferSourceNode]. 296 /// Stream of `ended` events handled by this [AudioBufferSourceNode].
258 @DomName('AudioBufferSourceNode.onended') 297 @DomName('AudioBufferSourceNode.onended')
259 @DocsEditable() 298 @DocsEditable()
260 @Experimental() // untriaged 299 @Experimental() // untriaged
261 Stream<Event> get onEnded => endedEvent.forTarget(this); 300 Stream<Event> get onEnded => endedEvent.forTarget(this);
262 301
263 } 302 }
(...skipping 20 matching lines...) Expand all
284 @DomName('AudioContext.completeEvent') 323 @DomName('AudioContext.completeEvent')
285 @DocsEditable() 324 @DocsEditable()
286 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi der<Event>('complete'); 325 static const EventStreamProvider<Event> completeEvent = const EventStreamProvi der<Event>('complete');
287 326
288 @DomName('AudioContext.AudioContext') 327 @DomName('AudioContext.AudioContext')
289 @DocsEditable() 328 @DocsEditable()
290 factory AudioContext() { 329 factory AudioContext() {
291 return _blink.BlinkAudioContext.instance.constructorCallback_0_(); 330 return _blink.BlinkAudioContext.instance.constructorCallback_0_();
292 } 331 }
293 332
333
334 static AudioContext internalCreateAudioContext() {
335 return new AudioContext._internalWrap();
336 }
337
338 factory AudioContext._internalWrap() {
339 return new AudioContext._internal();
340 }
341
342 AudioContext._internal() : super._internal();
343
344
294 /// Checks if this type is supported on the current platform. 345 /// Checks if this type is supported on the current platform.
295 static bool get supported => true; 346 static bool get supported => true;
296 347
297 @DomName('AudioContext.currentTime') 348 @DomName('AudioContext.currentTime')
298 @DocsEditable() 349 @DocsEditable()
299 double get currentTime => _blink.BlinkAudioContext.instance.currentTime_Getter _(this); 350 double get currentTime => _blink.BlinkAudioContext.instance.currentTime_Getter _(unwrap_jso(this));
300 351
301 @DomName('AudioContext.destination') 352 @DomName('AudioContext.destination')
302 @DocsEditable() 353 @DocsEditable()
303 AudioDestinationNode get destination => _blink.BlinkAudioContext.instance.dest ination_Getter_(this); 354 AudioDestinationNode get destination => wrap_jso(_blink.BlinkAudioContext.inst ance.destination_Getter_(unwrap_jso(this)));
304 355
305 @DomName('AudioContext.listener') 356 @DomName('AudioContext.listener')
306 @DocsEditable() 357 @DocsEditable()
307 AudioListener get listener => _blink.BlinkAudioContext.instance.listener_Gette r_(this); 358 AudioListener get listener => wrap_jso(_blink.BlinkAudioContext.instance.liste ner_Getter_(unwrap_jso(this)));
308 359
309 @DomName('AudioContext.sampleRate') 360 @DomName('AudioContext.sampleRate')
310 @DocsEditable() 361 @DocsEditable()
311 double get sampleRate => _blink.BlinkAudioContext.instance.sampleRate_Getter_( this); 362 double get sampleRate => _blink.BlinkAudioContext.instance.sampleRate_Getter_( unwrap_jso(this));
312 363
313 @DomName('AudioContext.createAnalyser') 364 @DomName('AudioContext.createAnalyser')
314 @DocsEditable() 365 @DocsEditable()
315 AnalyserNode createAnalyser() => _blink.BlinkAudioContext.instance.createAnaly ser_Callback_0_(this); 366 AnalyserNode createAnalyser() => wrap_jso(_blink.BlinkAudioContext.instance.cr eateAnalyser_Callback_0_(unwrap_jso(this)));
316 367
317 @DomName('AudioContext.createBiquadFilter') 368 @DomName('AudioContext.createBiquadFilter')
318 @DocsEditable() 369 @DocsEditable()
319 BiquadFilterNode createBiquadFilter() => _blink.BlinkAudioContext.instance.cre ateBiquadFilter_Callback_0_(this); 370 BiquadFilterNode createBiquadFilter() => wrap_jso(_blink.BlinkAudioContext.ins tance.createBiquadFilter_Callback_0_(unwrap_jso(this)));
320 371
321 @DomName('AudioContext.createBuffer') 372 @DomName('AudioContext.createBuffer')
322 @DocsEditable() 373 @DocsEditable()
323 AudioBuffer createBuffer(int numberOfChannels, int numberOfFrames, num sampleR ate) => _blink.BlinkAudioContext.instance.createBuffer_Callback_3_(this, numberO fChannels, numberOfFrames, sampleRate); 374 AudioBuffer createBuffer(int numberOfChannels, int numberOfFrames, num sampleR ate) => wrap_jso(_blink.BlinkAudioContext.instance.createBuffer_Callback_3_(unwr ap_jso(this), numberOfChannels, numberOfFrames, sampleRate));
324 375
325 @DomName('AudioContext.createBufferSource') 376 @DomName('AudioContext.createBufferSource')
326 @DocsEditable() 377 @DocsEditable()
327 AudioBufferSourceNode createBufferSource() => _blink.BlinkAudioContext.instanc e.createBufferSource_Callback_0_(this); 378 AudioBufferSourceNode createBufferSource() => wrap_jso(_blink.BlinkAudioContex t.instance.createBufferSource_Callback_0_(unwrap_jso(this)));
328 379
329 ChannelMergerNode createChannelMerger([int numberOfInputs]) { 380 ChannelMergerNode createChannelMerger([int numberOfInputs]) {
330 if (numberOfInputs != null) { 381 if (numberOfInputs != null) {
331 return _blink.BlinkAudioContext.instance.createChannelMerger_Callback_1_(t his, numberOfInputs); 382 return wrap_jso(_blink.BlinkAudioContext.instance.createChannelMerger_Call back_1_(unwrap_jso(this), numberOfInputs));
332 } 383 }
333 return _blink.BlinkAudioContext.instance.createChannelMerger_Callback_0_(thi s); 384 return wrap_jso(_blink.BlinkAudioContext.instance.createChannelMerger_Callba ck_0_(unwrap_jso(this)));
334 } 385 }
335 386
336 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) { 387 ChannelSplitterNode createChannelSplitter([int numberOfOutputs]) {
337 if (numberOfOutputs != null) { 388 if (numberOfOutputs != null) {
338 return _blink.BlinkAudioContext.instance.createChannelSplitter_Callback_1_ (this, numberOfOutputs); 389 return wrap_jso(_blink.BlinkAudioContext.instance.createChannelSplitter_Ca llback_1_(unwrap_jso(this), numberOfOutputs));
339 } 390 }
340 return _blink.BlinkAudioContext.instance.createChannelSplitter_Callback_0_(t his); 391 return wrap_jso(_blink.BlinkAudioContext.instance.createChannelSplitter_Call back_0_(unwrap_jso(this)));
341 } 392 }
342 393
343 @DomName('AudioContext.createConvolver') 394 @DomName('AudioContext.createConvolver')
344 @DocsEditable() 395 @DocsEditable()
345 ConvolverNode createConvolver() => _blink.BlinkAudioContext.instance.createCon volver_Callback_0_(this); 396 ConvolverNode createConvolver() => wrap_jso(_blink.BlinkAudioContext.instance. createConvolver_Callback_0_(unwrap_jso(this)));
346 397
347 DelayNode createDelay([num maxDelayTime]) { 398 DelayNode createDelay([num maxDelayTime]) {
348 if (maxDelayTime != null) { 399 if (maxDelayTime != null) {
349 return _blink.BlinkAudioContext.instance.createDelay_Callback_1_(this, max DelayTime); 400 return wrap_jso(_blink.BlinkAudioContext.instance.createDelay_Callback_1_( unwrap_jso(this), maxDelayTime));
350 } 401 }
351 return _blink.BlinkAudioContext.instance.createDelay_Callback_0_(this); 402 return wrap_jso(_blink.BlinkAudioContext.instance.createDelay_Callback_0_(un wrap_jso(this)));
352 } 403 }
353 404
354 @DomName('AudioContext.createDynamicsCompressor') 405 @DomName('AudioContext.createDynamicsCompressor')
355 @DocsEditable() 406 @DocsEditable()
356 DynamicsCompressorNode createDynamicsCompressor() => _blink.BlinkAudioContext. instance.createDynamicsCompressor_Callback_0_(this); 407 DynamicsCompressorNode createDynamicsCompressor() => wrap_jso(_blink.BlinkAudi oContext.instance.createDynamicsCompressor_Callback_0_(unwrap_jso(this)));
357 408
358 @DomName('AudioContext.createGain') 409 @DomName('AudioContext.createGain')
359 @DocsEditable() 410 @DocsEditable()
360 GainNode createGain() => _blink.BlinkAudioContext.instance.createGain_Callback _0_(this); 411 GainNode createGain() => wrap_jso(_blink.BlinkAudioContext.instance.createGain _Callback_0_(unwrap_jso(this)));
361 412
362 @DomName('AudioContext.createMediaElementSource') 413 @DomName('AudioContext.createMediaElementSource')
363 @DocsEditable() 414 @DocsEditable()
364 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement ) => _blink.BlinkAudioContext.instance.createMediaElementSource_Callback_1_(this , mediaElement); 415 MediaElementAudioSourceNode createMediaElementSource(MediaElement mediaElement ) => wrap_jso(_blink.BlinkAudioContext.instance.createMediaElementSource_Callbac k_1_(unwrap_jso(this), unwrap_jso(mediaElement)));
365 416
366 @DomName('AudioContext.createMediaStreamDestination') 417 @DomName('AudioContext.createMediaStreamDestination')
367 @DocsEditable() 418 @DocsEditable()
368 MediaStreamAudioDestinationNode createMediaStreamDestination() => _blink.Blink AudioContext.instance.createMediaStreamDestination_Callback_0_(this); 419 MediaStreamAudioDestinationNode createMediaStreamDestination() => wrap_jso(_bl ink.BlinkAudioContext.instance.createMediaStreamDestination_Callback_0_(unwrap_j so(this)));
369 420
370 @DomName('AudioContext.createMediaStreamSource') 421 @DomName('AudioContext.createMediaStreamSource')
371 @DocsEditable() 422 @DocsEditable()
372 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) => _blink.BlinkAudioContext.instance.createMediaStreamSource_Callback_1_(this, med iaStream); 423 MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream) => wrap_jso(_blink.BlinkAudioContext.instance.createMediaStreamSource_Callback_1_( unwrap_jso(this), unwrap_jso(mediaStream)));
373 424
374 @DomName('AudioContext.createOscillator') 425 @DomName('AudioContext.createOscillator')
375 @DocsEditable() 426 @DocsEditable()
376 OscillatorNode createOscillator() => _blink.BlinkAudioContext.instance.createO scillator_Callback_0_(this); 427 OscillatorNode createOscillator() => wrap_jso(_blink.BlinkAudioContext.instanc e.createOscillator_Callback_0_(unwrap_jso(this)));
377 428
378 @DomName('AudioContext.createPanner') 429 @DomName('AudioContext.createPanner')
379 @DocsEditable() 430 @DocsEditable()
380 PannerNode createPanner() => _blink.BlinkAudioContext.instance.createPanner_Ca llback_0_(this); 431 PannerNode createPanner() => wrap_jso(_blink.BlinkAudioContext.instance.create Panner_Callback_0_(unwrap_jso(this)));
381 432
382 @DomName('AudioContext.createPeriodicWave') 433 @DomName('AudioContext.createPeriodicWave')
383 @DocsEditable() 434 @DocsEditable()
384 @Experimental() // untriaged 435 @Experimental() // untriaged
385 PeriodicWave createPeriodicWave(Float32List real, Float32List imag) => _blink. BlinkAudioContext.instance.createPeriodicWave_Callback_2_(this, real, imag); 436 PeriodicWave createPeriodicWave(Float32List real, Float32List imag) => wrap_js o(_blink.BlinkAudioContext.instance.createPeriodicWave_Callback_2_(unwrap_jso(th is), real, imag));
386 437
387 ScriptProcessorNode createScriptProcessor([int bufferSize, int numberOfInputCh annels, int numberOfOutputChannels]) { 438 ScriptProcessorNode createScriptProcessor([int bufferSize, int numberOfInputCh annels, int numberOfOutputChannels]) {
388 if (numberOfOutputChannels != null) { 439 if (numberOfOutputChannels != null) {
389 return _blink.BlinkAudioContext.instance.createScriptProcessor_Callback_3_ (this, bufferSize, numberOfInputChannels, numberOfOutputChannels); 440 return wrap_jso(_blink.BlinkAudioContext.instance.createScriptProcessor_Ca llback_3_(unwrap_jso(this), bufferSize, numberOfInputChannels, numberOfOutputCha nnels));
390 } 441 }
391 if (numberOfInputChannels != null) { 442 if (numberOfInputChannels != null) {
392 return _blink.BlinkAudioContext.instance.createScriptProcessor_Callback_2_ (this, bufferSize, numberOfInputChannels); 443 return wrap_jso(_blink.BlinkAudioContext.instance.createScriptProcessor_Ca llback_2_(unwrap_jso(this), bufferSize, numberOfInputChannels));
393 } 444 }
394 if (bufferSize != null) { 445 if (bufferSize != null) {
395 return _blink.BlinkAudioContext.instance.createScriptProcessor_Callback_1_ (this, bufferSize); 446 return wrap_jso(_blink.BlinkAudioContext.instance.createScriptProcessor_Ca llback_1_(unwrap_jso(this), bufferSize));
396 } 447 }
397 return _blink.BlinkAudioContext.instance.createScriptProcessor_Callback_0_(t his); 448 return wrap_jso(_blink.BlinkAudioContext.instance.createScriptProcessor_Call back_0_(unwrap_jso(this)));
398 } 449 }
399 450
400 @DomName('AudioContext.createWaveShaper') 451 @DomName('AudioContext.createWaveShaper')
401 @DocsEditable() 452 @DocsEditable()
402 WaveShaperNode createWaveShaper() => _blink.BlinkAudioContext.instance.createW aveShaper_Callback_0_(this); 453 WaveShaperNode createWaveShaper() => wrap_jso(_blink.BlinkAudioContext.instanc e.createWaveShaper_Callback_0_(unwrap_jso(this)));
403 454
404 @DomName('AudioContext.decodeAudioData') 455 @DomName('AudioContext.decodeAudioData')
405 @DocsEditable() 456 @DocsEditable()
406 void _decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallbac k, [AudioBufferCallback errorCallback]) => _blink.BlinkAudioContext.instance.dec odeAudioData_Callback_3_(this, audioData, successCallback, errorCallback); 457 void _decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallbac k, [AudioBufferCallback errorCallback]) => _blink.BlinkAudioContext.instance.dec odeAudioData_Callback_3_(unwrap_jso(this), audioData, unwrap_jso(successCallback ), unwrap_jso(errorCallback));
407 458
408 @DomName('AudioContext.startRendering') 459 @DomName('AudioContext.startRendering')
409 @DocsEditable() 460 @DocsEditable()
410 void startRendering() => _blink.BlinkAudioContext.instance.startRendering_Call back_0_(this); 461 void startRendering() => _blink.BlinkAudioContext.instance.startRendering_Call back_0_(unwrap_jso(this));
411 462
412 /// Stream of `complete` events handled by this [AudioContext]. 463 /// Stream of `complete` events handled by this [AudioContext].
413 @DomName('AudioContext.oncomplete') 464 @DomName('AudioContext.oncomplete')
414 @DocsEditable() 465 @DocsEditable()
415 Stream<Event> get onComplete => completeEvent.forTarget(this); 466 Stream<Event> get onComplete => completeEvent.forTarget(this);
416 467
417 @DomName('AudioContext.decodeAudioData') 468 @DomName('AudioContext.decodeAudioData')
418 Future<AudioBuffer> decodeAudioData(ByteBuffer audioData) { 469 Future<AudioBuffer> decodeAudioData(ByteBuffer audioData) {
419 var completer = new Completer<AudioBuffer>(); 470 var completer = new Completer<AudioBuffer>();
420 _decodeAudioData(audioData, 471 _decodeAudioData(audioData,
421 (value) { completer.complete(value); }, 472 (value) { completer.complete(value); },
(...skipping 15 matching lines...) Expand all
437 488
438 489
439 @DocsEditable() 490 @DocsEditable()
440 @DomName('AudioDestinationNode') 491 @DomName('AudioDestinationNode')
441 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe stinationNode-section 492 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioDe stinationNode-section
442 @Experimental() 493 @Experimental()
443 class AudioDestinationNode extends AudioNode { 494 class AudioDestinationNode extends AudioNode {
444 // To suppress missing implicit constructor warnings. 495 // To suppress missing implicit constructor warnings.
445 factory AudioDestinationNode._() { throw new UnsupportedError("Not supported") ; } 496 factory AudioDestinationNode._() { throw new UnsupportedError("Not supported") ; }
446 497
498
499 static AudioDestinationNode internalCreateAudioDestinationNode() {
500 return new AudioDestinationNode._internalWrap();
501 }
502
503 factory AudioDestinationNode._internalWrap() {
504 return new AudioDestinationNode._internal();
505 }
506
507 AudioDestinationNode._internal() : super._internal();
508
509
447 @DomName('AudioDestinationNode.maxChannelCount') 510 @DomName('AudioDestinationNode.maxChannelCount')
448 @DocsEditable() 511 @DocsEditable()
449 int get maxChannelCount => _blink.BlinkAudioDestinationNode.instance.maxChanne lCount_Getter_(this); 512 int get maxChannelCount => _blink.BlinkAudioDestinationNode.instance.maxChanne lCount_Getter_(unwrap_jso(this));
450 513
451 } 514 }
452 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 515 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
453 // for details. All rights reserved. Use of this source code is governed by a 516 // for details. All rights reserved. Use of this source code is governed by a
454 // BSD-style license that can be found in the LICENSE file. 517 // BSD-style license that can be found in the LICENSE file.
455 518
456 // WARNING: Do not edit - generated code. 519 // WARNING: Do not edit - generated code.
457 520
458 521
459 @DocsEditable() 522 @DocsEditable()
460 @DomName('AudioListener') 523 @DomName('AudioListener')
461 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi stener-section 524 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioLi stener-section
462 @Experimental() 525 @Experimental()
463 class AudioListener extends NativeFieldWrapperClass2 { 526 class AudioListener extends NativeFieldWrapperClass2 {
464 // To suppress missing implicit constructor warnings. 527 // To suppress missing implicit constructor warnings.
465 factory AudioListener._() { throw new UnsupportedError("Not supported"); } 528 factory AudioListener._() { throw new UnsupportedError("Not supported"); }
466 529
467 @DomName('AudioListener.dopplerFactor') 530 static AudioListener internalCreateAudioListener() {
468 @DocsEditable() 531 return new AudioListener._internalWrap();
469 num get dopplerFactor => _blink.BlinkAudioListener.instance.dopplerFactor_Gett er_(this); 532 }
533
534 JsObject blink_jsObject = null;
535
536 factory AudioListener._internalWrap() {
537 return new AudioListener._internal();
538 }
539
540 AudioListener._internal() { }
541
542 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
470 543
471 @DomName('AudioListener.dopplerFactor') 544 @DomName('AudioListener.dopplerFactor')
472 @DocsEditable() 545 @DocsEditable()
473 void set dopplerFactor(num value) => _blink.BlinkAudioListener.instance.dopple rFactor_Setter_(this, value); 546 num get dopplerFactor => _blink.BlinkAudioListener.instance.dopplerFactor_Gett er_(unwrap_jso(this));
474 547
548 @DomName('AudioListener.dopplerFactor')
549 @DocsEditable()
550 void set dopplerFactor(num value) => _blink.BlinkAudioListener.instance.dopple rFactor_Setter_(unwrap_jso(this), value);
551
475 @DomName('AudioListener.speedOfSound') 552 @DomName('AudioListener.speedOfSound')
476 @DocsEditable() 553 @DocsEditable()
477 num get speedOfSound => _blink.BlinkAudioListener.instance.speedOfSound_Getter _(this); 554 num get speedOfSound => _blink.BlinkAudioListener.instance.speedOfSound_Getter _(unwrap_jso(this));
478 555
479 @DomName('AudioListener.speedOfSound') 556 @DomName('AudioListener.speedOfSound')
480 @DocsEditable() 557 @DocsEditable()
481 void set speedOfSound(num value) => _blink.BlinkAudioListener.instance.speedOf Sound_Setter_(this, value); 558 void set speedOfSound(num value) => _blink.BlinkAudioListener.instance.speedOf Sound_Setter_(unwrap_jso(this), value);
482 559
483 @DomName('AudioListener.setOrientation') 560 @DomName('AudioListener.setOrientation')
484 @DocsEditable() 561 @DocsEditable()
485 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) => _blink. BlinkAudioListener.instance.setOrientation_Callback_6_(this, x, y, z, xUp, yUp, zUp); 562 void setOrientation(num x, num y, num z, num xUp, num yUp, num zUp) => _blink. BlinkAudioListener.instance.setOrientation_Callback_6_(unwrap_jso(this), x, y, z , xUp, yUp, zUp);
486 563
487 @DomName('AudioListener.setPosition') 564 @DomName('AudioListener.setPosition')
488 @DocsEditable() 565 @DocsEditable()
489 void setPosition(num x, num y, num z) => _blink.BlinkAudioListener.instance.se tPosition_Callback_3_(this, x, y, z); 566 void setPosition(num x, num y, num z) => _blink.BlinkAudioListener.instance.se tPosition_Callback_3_(unwrap_jso(this), x, y, z);
490 567
491 @DomName('AudioListener.setVelocity') 568 @DomName('AudioListener.setVelocity')
492 @DocsEditable() 569 @DocsEditable()
493 void setVelocity(num x, num y, num z) => _blink.BlinkAudioListener.instance.se tVelocity_Callback_3_(this, x, y, z); 570 void setVelocity(num x, num y, num z) => _blink.BlinkAudioListener.instance.se tVelocity_Callback_3_(unwrap_jso(this), x, y, z);
494 571
495 } 572 }
496 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 573 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
497 // for details. All rights reserved. Use of this source code is governed by a 574 // for details. All rights reserved. Use of this source code is governed by a
498 // BSD-style license that can be found in the LICENSE file. 575 // BSD-style license that can be found in the LICENSE file.
499 576
500 577
501 @DomName('AudioNode') 578 @DomName('AudioNode')
502 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo de-section 579 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioNo de-section
503 @Experimental() 580 @Experimental()
504 class AudioNode extends EventTarget { 581 class AudioNode extends EventTarget {
505 // To suppress missing implicit constructor warnings. 582 // To suppress missing implicit constructor warnings.
506 factory AudioNode._() { throw new UnsupportedError("Not supported"); } 583 factory AudioNode._() { throw new UnsupportedError("Not supported"); }
507 584
508 @DomName('AudioNode.channelCount') 585
509 @DocsEditable() 586 static AudioNode internalCreateAudioNode() {
510 int get channelCount => _blink.BlinkAudioNode.instance.channelCount_Getter_(th is); 587 return new AudioNode._internalWrap();
588 }
589
590 factory AudioNode._internalWrap() {
591 return new AudioNode._internal();
592 }
593
594 AudioNode._internal() : super._internal();
595
511 596
512 @DomName('AudioNode.channelCount') 597 @DomName('AudioNode.channelCount')
513 @DocsEditable() 598 @DocsEditable()
514 void set channelCount(int value) => _blink.BlinkAudioNode.instance.channelCoun t_Setter_(this, value); 599 int get channelCount => _blink.BlinkAudioNode.instance.channelCount_Getter_(un wrap_jso(this));
515 600
601 @DomName('AudioNode.channelCount')
602 @DocsEditable()
603 void set channelCount(int value) => _blink.BlinkAudioNode.instance.channelCoun t_Setter_(unwrap_jso(this), value);
604
516 @DomName('AudioNode.channelCountMode') 605 @DomName('AudioNode.channelCountMode')
517 @DocsEditable() 606 @DocsEditable()
518 String get channelCountMode => _blink.BlinkAudioNode.instance.channelCountMode _Getter_(this); 607 String get channelCountMode => _blink.BlinkAudioNode.instance.channelCountMode _Getter_(unwrap_jso(this));
519 608
520 @DomName('AudioNode.channelCountMode') 609 @DomName('AudioNode.channelCountMode')
521 @DocsEditable() 610 @DocsEditable()
522 void set channelCountMode(String value) => _blink.BlinkAudioNode.instance.chan nelCountMode_Setter_(this, value); 611 void set channelCountMode(String value) => _blink.BlinkAudioNode.instance.chan nelCountMode_Setter_(unwrap_jso(this), value);
523 612
524 @DomName('AudioNode.channelInterpretation') 613 @DomName('AudioNode.channelInterpretation')
525 @DocsEditable() 614 @DocsEditable()
526 String get channelInterpretation => _blink.BlinkAudioNode.instance.channelInte rpretation_Getter_(this); 615 String get channelInterpretation => _blink.BlinkAudioNode.instance.channelInte rpretation_Getter_(unwrap_jso(this));
527 616
528 @DomName('AudioNode.channelInterpretation') 617 @DomName('AudioNode.channelInterpretation')
529 @DocsEditable() 618 @DocsEditable()
530 void set channelInterpretation(String value) => _blink.BlinkAudioNode.instance .channelInterpretation_Setter_(this, value); 619 void set channelInterpretation(String value) => _blink.BlinkAudioNode.instance .channelInterpretation_Setter_(unwrap_jso(this), value);
531 620
532 @DomName('AudioNode.context') 621 @DomName('AudioNode.context')
533 @DocsEditable() 622 @DocsEditable()
534 AudioContext get context => _blink.BlinkAudioNode.instance.context_Getter_(thi s); 623 AudioContext get context => wrap_jso(_blink.BlinkAudioNode.instance.context_Ge tter_(unwrap_jso(this)));
535 624
536 @DomName('AudioNode.numberOfInputs') 625 @DomName('AudioNode.numberOfInputs')
537 @DocsEditable() 626 @DocsEditable()
538 int get numberOfInputs => _blink.BlinkAudioNode.instance.numberOfInputs_Getter _(this); 627 int get numberOfInputs => _blink.BlinkAudioNode.instance.numberOfInputs_Getter _(unwrap_jso(this));
539 628
540 @DomName('AudioNode.numberOfOutputs') 629 @DomName('AudioNode.numberOfOutputs')
541 @DocsEditable() 630 @DocsEditable()
542 int get numberOfOutputs => _blink.BlinkAudioNode.instance.numberOfOutputs_Gett er_(this); 631 int get numberOfOutputs => _blink.BlinkAudioNode.instance.numberOfOutputs_Gett er_(unwrap_jso(this));
543 632
544 void _connect(destination, int output, [int input]) { 633 void _connect(destination, int output, [int input]) {
545 if ((input is int || input == null) && (output is int || output == null) && (destination is AudioNode || destination == null)) { 634 if ((input is int || input == null) && (output is int || output == null) && (destination is AudioNode || destination == null)) {
546 _blink.BlinkAudioNode.instance.connect_Callback_3_(this, destination, outp ut, input); 635 _blink.BlinkAudioNode.instance.connect_Callback_3_(unwrap_jso(this), unwra p_jso(destination), output, input);
547 return; 636 return;
548 } 637 }
549 if ((output is int || output == null) && (destination is AudioParam || desti nation == null) && input == null) { 638 if ((output is int || output == null) && (destination is AudioParam || desti nation == null) && input == null) {
550 _blink.BlinkAudioNode.instance.connect_Callback_2_(this, destination, outp ut); 639 _blink.BlinkAudioNode.instance.connect_Callback_2_(unwrap_jso(this), unwra p_jso(destination), output);
551 return; 640 return;
552 } 641 }
553 throw new ArgumentError("Incorrect number or type of arguments"); 642 throw new ArgumentError("Incorrect number or type of arguments");
554 } 643 }
555 644
556 @DomName('AudioNode.disconnect') 645 @DomName('AudioNode.disconnect')
557 @DocsEditable() 646 @DocsEditable()
558 void disconnect(int output) => _blink.BlinkAudioNode.instance.disconnect_Callb ack_1_(this, output); 647 void disconnect(int output) => _blink.BlinkAudioNode.instance.disconnect_Callb ack_1_(unwrap_jso(this), output);
559 648
560 @DomName('AudioNode.connect') 649 @DomName('AudioNode.connect')
561 void connectNode(AudioNode destination, [int output = 0, int input = 0]) => 650 void connectNode(AudioNode destination, [int output = 0, int input = 0]) =>
562 _connect(destination, output, input); 651 _connect(destination, output, input);
563 652
564 @DomName('AudioNode.connect') 653 @DomName('AudioNode.connect')
565 void connectParam(AudioParam destination, [int output = 0]) => 654 void connectParam(AudioParam destination, [int output = 0]) =>
566 _connect(destination, output); 655 _connect(destination, output);
567 } 656 }
568 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 657 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
569 // for details. All rights reserved. Use of this source code is governed by a 658 // for details. All rights reserved. Use of this source code is governed by a
570 // BSD-style license that can be found in the LICENSE file. 659 // BSD-style license that can be found in the LICENSE file.
571 660
572 // WARNING: Do not edit - generated code. 661 // WARNING: Do not edit - generated code.
573 662
574 663
575 @DocsEditable() 664 @DocsEditable()
576 @DomName('AudioParam') 665 @DomName('AudioParam')
577 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa ram 666 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPa ram
578 @Experimental() 667 @Experimental()
579 class AudioParam extends NativeFieldWrapperClass2 { 668 class AudioParam extends NativeFieldWrapperClass2 {
580 // To suppress missing implicit constructor warnings. 669 // To suppress missing implicit constructor warnings.
581 factory AudioParam._() { throw new UnsupportedError("Not supported"); } 670 factory AudioParam._() { throw new UnsupportedError("Not supported"); }
582 671
672 static AudioParam internalCreateAudioParam() {
673 return new AudioParam._internalWrap();
674 }
675
676 JsObject blink_jsObject = null;
677
678 factory AudioParam._internalWrap() {
679 return new AudioParam._internal();
680 }
681
682 AudioParam._internal() { }
683
684 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
685
583 @DomName('AudioParam.defaultValue') 686 @DomName('AudioParam.defaultValue')
584 @DocsEditable() 687 @DocsEditable()
585 double get defaultValue => _blink.BlinkAudioParam.instance.defaultValue_Getter _(this); 688 double get defaultValue => _blink.BlinkAudioParam.instance.defaultValue_Getter _(unwrap_jso(this));
586 689
587 @DomName('AudioParam.value') 690 @DomName('AudioParam.value')
588 @DocsEditable() 691 @DocsEditable()
589 num get value => _blink.BlinkAudioParam.instance.value_Getter_(this); 692 num get value => _blink.BlinkAudioParam.instance.value_Getter_(unwrap_jso(this ));
590 693
591 @DomName('AudioParam.value') 694 @DomName('AudioParam.value')
592 @DocsEditable() 695 @DocsEditable()
593 void set value(num value) => _blink.BlinkAudioParam.instance.value_Setter_(thi s, value); 696 void set value(num value) => _blink.BlinkAudioParam.instance.value_Setter_(unw rap_jso(this), value);
594 697
595 @DomName('AudioParam.cancelScheduledValues') 698 @DomName('AudioParam.cancelScheduledValues')
596 @DocsEditable() 699 @DocsEditable()
597 void cancelScheduledValues(num startTime) => _blink.BlinkAudioParam.instance.c ancelScheduledValues_Callback_1_(this, startTime); 700 void cancelScheduledValues(num startTime) => _blink.BlinkAudioParam.instance.c ancelScheduledValues_Callback_1_(unwrap_jso(this), startTime);
598 701
599 @DomName('AudioParam.exponentialRampToValueAtTime') 702 @DomName('AudioParam.exponentialRampToValueAtTime')
600 @DocsEditable() 703 @DocsEditable()
601 void exponentialRampToValueAtTime(num value, num time) => _blink.BlinkAudioPar am.instance.exponentialRampToValueAtTime_Callback_2_(this, value, time); 704 void exponentialRampToValueAtTime(num value, num time) => _blink.BlinkAudioPar am.instance.exponentialRampToValueAtTime_Callback_2_(unwrap_jso(this), value, ti me);
602 705
603 @DomName('AudioParam.linearRampToValueAtTime') 706 @DomName('AudioParam.linearRampToValueAtTime')
604 @DocsEditable() 707 @DocsEditable()
605 void linearRampToValueAtTime(num value, num time) => _blink.BlinkAudioParam.in stance.linearRampToValueAtTime_Callback_2_(this, value, time); 708 void linearRampToValueAtTime(num value, num time) => _blink.BlinkAudioParam.in stance.linearRampToValueAtTime_Callback_2_(unwrap_jso(this), value, time);
606 709
607 @DomName('AudioParam.setTargetAtTime') 710 @DomName('AudioParam.setTargetAtTime')
608 @DocsEditable() 711 @DocsEditable()
609 void setTargetAtTime(num target, num time, num timeConstant) => _blink.BlinkAu dioParam.instance.setTargetAtTime_Callback_3_(this, target, time, timeConstant); 712 void setTargetAtTime(num target, num time, num timeConstant) => _blink.BlinkAu dioParam.instance.setTargetAtTime_Callback_3_(unwrap_jso(this), target, time, ti meConstant);
610 713
611 @DomName('AudioParam.setValueAtTime') 714 @DomName('AudioParam.setValueAtTime')
612 @DocsEditable() 715 @DocsEditable()
613 void setValueAtTime(num value, num time) => _blink.BlinkAudioParam.instance.se tValueAtTime_Callback_2_(this, value, time); 716 void setValueAtTime(num value, num time) => _blink.BlinkAudioParam.instance.se tValueAtTime_Callback_2_(unwrap_jso(this), value, time);
614 717
615 @DomName('AudioParam.setValueCurveAtTime') 718 @DomName('AudioParam.setValueCurveAtTime')
616 @DocsEditable() 719 @DocsEditable()
617 void setValueCurveAtTime(Float32List values, num time, num duration) => _blink .BlinkAudioParam.instance.setValueCurveAtTime_Callback_3_(this, values, time, du ration); 720 void setValueCurveAtTime(Float32List values, num time, num duration) => _blink .BlinkAudioParam.instance.setValueCurveAtTime_Callback_3_(unwrap_jso(this), valu es, time, duration);
618 721
619 } 722 }
620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 723 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
621 // for details. All rights reserved. Use of this source code is governed by a 724 // for details. All rights reserved. Use of this source code is governed by a
622 // BSD-style license that can be found in the LICENSE file. 725 // BSD-style license that can be found in the LICENSE file.
623 726
624 // WARNING: Do not edit - generated code. 727 // WARNING: Do not edit - generated code.
625 728
626 729
627 @DocsEditable() 730 @DocsEditable()
628 @DomName('AudioProcessingEvent') 731 @DomName('AudioProcessingEvent')
629 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr ocessingEvent-section 732 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioPr ocessingEvent-section
630 @Experimental() 733 @Experimental()
631 class AudioProcessingEvent extends Event { 734 class AudioProcessingEvent extends Event {
632 // To suppress missing implicit constructor warnings. 735 // To suppress missing implicit constructor warnings.
633 factory AudioProcessingEvent._() { throw new UnsupportedError("Not supported") ; } 736 factory AudioProcessingEvent._() { throw new UnsupportedError("Not supported") ; }
634 737
738
739 static AudioProcessingEvent internalCreateAudioProcessingEvent() {
740 return new AudioProcessingEvent._internalWrap();
741 }
742
743 factory AudioProcessingEvent._internalWrap() {
744 return new AudioProcessingEvent._internal();
745 }
746
747 AudioProcessingEvent._internal() : super._internal();
748
749
635 @DomName('AudioProcessingEvent.inputBuffer') 750 @DomName('AudioProcessingEvent.inputBuffer')
636 @DocsEditable() 751 @DocsEditable()
637 AudioBuffer get inputBuffer => _blink.BlinkAudioProcessingEvent.instance.input Buffer_Getter_(this); 752 AudioBuffer get inputBuffer => wrap_jso(_blink.BlinkAudioProcessingEvent.insta nce.inputBuffer_Getter_(unwrap_jso(this)));
638 753
639 @DomName('AudioProcessingEvent.outputBuffer') 754 @DomName('AudioProcessingEvent.outputBuffer')
640 @DocsEditable() 755 @DocsEditable()
641 AudioBuffer get outputBuffer => _blink.BlinkAudioProcessingEvent.instance.outp utBuffer_Getter_(this); 756 AudioBuffer get outputBuffer => wrap_jso(_blink.BlinkAudioProcessingEvent.inst ance.outputBuffer_Getter_(unwrap_jso(this)));
642 757
643 @DomName('AudioProcessingEvent.playbackTime') 758 @DomName('AudioProcessingEvent.playbackTime')
644 @DocsEditable() 759 @DocsEditable()
645 @Experimental() // untriaged 760 @Experimental() // untriaged
646 double get playbackTime => _blink.BlinkAudioProcessingEvent.instance.playbackT ime_Getter_(this); 761 double get playbackTime => _blink.BlinkAudioProcessingEvent.instance.playbackT ime_Getter_(unwrap_jso(this));
647 762
648 } 763 }
649 // 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
650 // 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
651 // BSD-style license that can be found in the LICENSE file. 766 // BSD-style license that can be found in the LICENSE file.
652 767
653 // WARNING: Do not edit - generated code. 768 // WARNING: Do not edit - generated code.
654 769
655 770
656 @DocsEditable() 771 @DocsEditable()
657 @DomName('AudioSourceNode') 772 @DomName('AudioSourceNode')
658 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html 773 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html
659 @Experimental() 774 @Experimental()
660 class AudioSourceNode extends AudioNode { 775 class AudioSourceNode extends AudioNode {
661 // To suppress missing implicit constructor warnings. 776 // To suppress missing implicit constructor warnings.
662 factory AudioSourceNode._() { throw new UnsupportedError("Not supported"); } 777 factory AudioSourceNode._() { throw new UnsupportedError("Not supported"); }
663 778
779
780 static AudioSourceNode internalCreateAudioSourceNode() {
781 return new AudioSourceNode._internalWrap();
782 }
783
784 factory AudioSourceNode._internalWrap() {
785 return new AudioSourceNode._internal();
786 }
787
788 AudioSourceNode._internal() : super._internal();
789
790
664 } 791 }
665 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 792 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
666 // for details. All rights reserved. Use of this source code is governed by a 793 // for details. All rights reserved. Use of this source code is governed by a
667 // BSD-style license that can be found in the LICENSE file. 794 // BSD-style license that can be found in the LICENSE file.
668 795
669 // WARNING: Do not edit - generated code. 796 // WARNING: Do not edit - generated code.
670 797
671 798
672 @DocsEditable() 799 @DocsEditable()
673 @DomName('BiquadFilterNode') 800 @DomName('BiquadFilterNode')
674 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF ilterNode-section 801 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadF ilterNode-section
675 @Experimental() 802 @Experimental()
676 class BiquadFilterNode extends AudioNode { 803 class BiquadFilterNode extends AudioNode {
677 // To suppress missing implicit constructor warnings. 804 // To suppress missing implicit constructor warnings.
678 factory BiquadFilterNode._() { throw new UnsupportedError("Not supported"); } 805 factory BiquadFilterNode._() { throw new UnsupportedError("Not supported"); }
679 806
807
808 static BiquadFilterNode internalCreateBiquadFilterNode() {
809 return new BiquadFilterNode._internalWrap();
810 }
811
812 factory BiquadFilterNode._internalWrap() {
813 return new BiquadFilterNode._internal();
814 }
815
816 BiquadFilterNode._internal() : super._internal();
817
818
680 @DomName('BiquadFilterNode.Q') 819 @DomName('BiquadFilterNode.Q')
681 @DocsEditable() 820 @DocsEditable()
682 AudioParam get Q => _blink.BlinkBiquadFilterNode.instance.Q_Getter_(this); 821 AudioParam get Q => wrap_jso(_blink.BlinkBiquadFilterNode.instance.Q_Getter_(u nwrap_jso(this)));
683 822
684 @DomName('BiquadFilterNode.detune') 823 @DomName('BiquadFilterNode.detune')
685 @DocsEditable() 824 @DocsEditable()
686 AudioParam get detune => _blink.BlinkBiquadFilterNode.instance.detune_Getter_( this); 825 AudioParam get detune => wrap_jso(_blink.BlinkBiquadFilterNode.instance.detune _Getter_(unwrap_jso(this)));
687 826
688 @DomName('BiquadFilterNode.frequency') 827 @DomName('BiquadFilterNode.frequency')
689 @DocsEditable() 828 @DocsEditable()
690 AudioParam get frequency => _blink.BlinkBiquadFilterNode.instance.frequency_Ge tter_(this); 829 AudioParam get frequency => wrap_jso(_blink.BlinkBiquadFilterNode.instance.fre quency_Getter_(unwrap_jso(this)));
691 830
692 @DomName('BiquadFilterNode.gain') 831 @DomName('BiquadFilterNode.gain')
693 @DocsEditable() 832 @DocsEditable()
694 AudioParam get gain => _blink.BlinkBiquadFilterNode.instance.gain_Getter_(this ); 833 AudioParam get gain => wrap_jso(_blink.BlinkBiquadFilterNode.instance.gain_Get ter_(unwrap_jso(this)));
695 834
696 @DomName('BiquadFilterNode.type') 835 @DomName('BiquadFilterNode.type')
697 @DocsEditable() 836 @DocsEditable()
698 String get type => _blink.BlinkBiquadFilterNode.instance.type_Getter_(this); 837 String get type => _blink.BlinkBiquadFilterNode.instance.type_Getter_(unwrap_j so(this));
699 838
700 @DomName('BiquadFilterNode.type') 839 @DomName('BiquadFilterNode.type')
701 @DocsEditable() 840 @DocsEditable()
702 void set type(String value) => _blink.BlinkBiquadFilterNode.instance.type_Sett er_(this, value); 841 void set type(String value) => _blink.BlinkBiquadFilterNode.instance.type_Sett er_(unwrap_jso(this), value);
703 842
704 @DomName('BiquadFilterNode.getFrequencyResponse') 843 @DomName('BiquadFilterNode.getFrequencyResponse')
705 @DocsEditable() 844 @DocsEditable()
706 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl oat32List phaseResponse) => _blink.BlinkBiquadFilterNode.instance.getFrequencyRe sponse_Callback_3_(this, frequencyHz, magResponse, phaseResponse); 845 void getFrequencyResponse(Float32List frequencyHz, Float32List magResponse, Fl oat32List phaseResponse) => _blink.BlinkBiquadFilterNode.instance.getFrequencyRe sponse_Callback_3_(unwrap_jso(this), frequencyHz, magResponse, phaseResponse);
707 846
708 } 847 }
709 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 848 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
710 // for details. All rights reserved. Use of this source code is governed by a 849 // for details. All rights reserved. Use of this source code is governed by a
711 // BSD-style license that can be found in the LICENSE file. 850 // BSD-style license that can be found in the LICENSE file.
712 851
713 // WARNING: Do not edit - generated code. 852 // WARNING: Do not edit - generated code.
714 853
715 854
716 @DocsEditable() 855 @DocsEditable()
717 @DomName('ChannelMergerNode') 856 @DomName('ChannelMergerNode')
718 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel MergerNode-section 857 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel MergerNode-section
719 @Experimental() 858 @Experimental()
720 class ChannelMergerNode extends AudioNode { 859 class ChannelMergerNode extends AudioNode {
721 // To suppress missing implicit constructor warnings. 860 // To suppress missing implicit constructor warnings.
722 factory ChannelMergerNode._() { throw new UnsupportedError("Not supported"); } 861 factory ChannelMergerNode._() { throw new UnsupportedError("Not supported"); }
723 862
863
864 static ChannelMergerNode internalCreateChannelMergerNode() {
865 return new ChannelMergerNode._internalWrap();
866 }
867
868 factory ChannelMergerNode._internalWrap() {
869 return new ChannelMergerNode._internal();
870 }
871
872 ChannelMergerNode._internal() : super._internal();
873
874
724 } 875 }
725 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 876 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
726 // for details. All rights reserved. Use of this source code is governed by a 877 // for details. All rights reserved. Use of this source code is governed by a
727 // BSD-style license that can be found in the LICENSE file. 878 // BSD-style license that can be found in the LICENSE file.
728 879
729 // WARNING: Do not edit - generated code. 880 // WARNING: Do not edit - generated code.
730 881
731 882
732 @DocsEditable() 883 @DocsEditable()
733 @DomName('ChannelSplitterNode') 884 @DomName('ChannelSplitterNode')
734 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel SplitterNode-section 885 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Channel SplitterNode-section
735 @Experimental() 886 @Experimental()
736 class ChannelSplitterNode extends AudioNode { 887 class ChannelSplitterNode extends AudioNode {
737 // To suppress missing implicit constructor warnings. 888 // To suppress missing implicit constructor warnings.
738 factory ChannelSplitterNode._() { throw new UnsupportedError("Not supported"); } 889 factory ChannelSplitterNode._() { throw new UnsupportedError("Not supported"); }
739 890
891
892 static ChannelSplitterNode internalCreateChannelSplitterNode() {
893 return new ChannelSplitterNode._internalWrap();
894 }
895
896 factory ChannelSplitterNode._internalWrap() {
897 return new ChannelSplitterNode._internal();
898 }
899
900 ChannelSplitterNode._internal() : super._internal();
901
902
740 } 903 }
741 // 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
742 // 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
743 // BSD-style license that can be found in the LICENSE file. 906 // BSD-style license that can be found in the LICENSE file.
744 907
745 // WARNING: Do not edit - generated code. 908 // WARNING: Do not edit - generated code.
746 909
747 910
748 @DocsEditable() 911 @DocsEditable()
749 @DomName('ConvolverNode') 912 @DomName('ConvolverNode')
750 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv erNode 913 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Convolv erNode
751 @Experimental() 914 @Experimental()
752 class ConvolverNode extends AudioNode { 915 class ConvolverNode extends AudioNode {
753 // To suppress missing implicit constructor warnings. 916 // To suppress missing implicit constructor warnings.
754 factory ConvolverNode._() { throw new UnsupportedError("Not supported"); } 917 factory ConvolverNode._() { throw new UnsupportedError("Not supported"); }
755 918
756 @DomName('ConvolverNode.buffer') 919
757 @DocsEditable() 920 static ConvolverNode internalCreateConvolverNode() {
758 AudioBuffer get buffer => _blink.BlinkConvolverNode.instance.buffer_Getter_(th is); 921 return new ConvolverNode._internalWrap();
922 }
923
924 factory ConvolverNode._internalWrap() {
925 return new ConvolverNode._internal();
926 }
927
928 ConvolverNode._internal() : super._internal();
929
759 930
760 @DomName('ConvolverNode.buffer') 931 @DomName('ConvolverNode.buffer')
761 @DocsEditable() 932 @DocsEditable()
762 void set buffer(AudioBuffer value) => _blink.BlinkConvolverNode.instance.buffe r_Setter_(this, value); 933 AudioBuffer get buffer => wrap_jso(_blink.BlinkConvolverNode.instance.buffer_G etter_(unwrap_jso(this)));
763 934
935 @DomName('ConvolverNode.buffer')
936 @DocsEditable()
937 void set buffer(AudioBuffer value) => _blink.BlinkConvolverNode.instance.buffe r_Setter_(unwrap_jso(this), unwrap_jso(value));
938
764 @DomName('ConvolverNode.normalize') 939 @DomName('ConvolverNode.normalize')
765 @DocsEditable() 940 @DocsEditable()
766 bool get normalize => _blink.BlinkConvolverNode.instance.normalize_Getter_(thi s); 941 bool get normalize => _blink.BlinkConvolverNode.instance.normalize_Getter_(unw rap_jso(this));
767 942
768 @DomName('ConvolverNode.normalize') 943 @DomName('ConvolverNode.normalize')
769 @DocsEditable() 944 @DocsEditable()
770 void set normalize(bool value) => _blink.BlinkConvolverNode.instance.normalize _Setter_(this, value); 945 void set normalize(bool value) => _blink.BlinkConvolverNode.instance.normalize _Setter_(unwrap_jso(this), value);
771 946
772 } 947 }
773 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 948 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
774 // for details. All rights reserved. Use of this source code is governed by a 949 // for details. All rights reserved. Use of this source code is governed by a
775 // BSD-style license that can be found in the LICENSE file. 950 // BSD-style license that can be found in the LICENSE file.
776 951
777 // WARNING: Do not edit - generated code. 952 // WARNING: Do not edit - generated code.
778 953
779 954
780 @DocsEditable() 955 @DocsEditable()
781 @DomName('DelayNode') 956 @DomName('DelayNode')
782 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo de 957 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#DelayNo de
783 @Experimental() 958 @Experimental()
784 class DelayNode extends AudioNode { 959 class DelayNode extends AudioNode {
785 // To suppress missing implicit constructor warnings. 960 // To suppress missing implicit constructor warnings.
786 factory DelayNode._() { throw new UnsupportedError("Not supported"); } 961 factory DelayNode._() { throw new UnsupportedError("Not supported"); }
787 962
963
964 static DelayNode internalCreateDelayNode() {
965 return new DelayNode._internalWrap();
966 }
967
968 factory DelayNode._internalWrap() {
969 return new DelayNode._internal();
970 }
971
972 DelayNode._internal() : super._internal();
973
974
788 @DomName('DelayNode.delayTime') 975 @DomName('DelayNode.delayTime')
789 @DocsEditable() 976 @DocsEditable()
790 AudioParam get delayTime => _blink.BlinkDelayNode.instance.delayTime_Getter_(t his); 977 AudioParam get delayTime => wrap_jso(_blink.BlinkDelayNode.instance.delayTime_ Getter_(unwrap_jso(this)));
791 978
792 } 979 }
793 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 980 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
794 // for details. All rights reserved. Use of this source code is governed by a 981 // for details. All rights reserved. Use of this source code is governed by a
795 // BSD-style license that can be found in the LICENSE file. 982 // BSD-style license that can be found in the LICENSE file.
796 983
797 // WARNING: Do not edit - generated code. 984 // WARNING: Do not edit - generated code.
798 985
799 986
800 @DocsEditable() 987 @DocsEditable()
801 @DomName('DynamicsCompressorNode') 988 @DomName('DynamicsCompressorNode')
802 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic sCompressorNode 989 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Dynamic sCompressorNode
803 @Experimental() 990 @Experimental()
804 class DynamicsCompressorNode extends AudioNode { 991 class DynamicsCompressorNode extends AudioNode {
805 // To suppress missing implicit constructor warnings. 992 // To suppress missing implicit constructor warnings.
806 factory DynamicsCompressorNode._() { throw new UnsupportedError("Not supported "); } 993 factory DynamicsCompressorNode._() { throw new UnsupportedError("Not supported "); }
807 994
995
996 static DynamicsCompressorNode internalCreateDynamicsCompressorNode() {
997 return new DynamicsCompressorNode._internalWrap();
998 }
999
1000 factory DynamicsCompressorNode._internalWrap() {
1001 return new DynamicsCompressorNode._internal();
1002 }
1003
1004 DynamicsCompressorNode._internal() : super._internal();
1005
1006
808 @DomName('DynamicsCompressorNode.attack') 1007 @DomName('DynamicsCompressorNode.attack')
809 @DocsEditable() 1008 @DocsEditable()
810 AudioParam get attack => _blink.BlinkDynamicsCompressorNode.instance.attack_Ge tter_(this); 1009 AudioParam get attack => wrap_jso(_blink.BlinkDynamicsCompressorNode.instance. attack_Getter_(unwrap_jso(this)));
811 1010
812 @DomName('DynamicsCompressorNode.knee') 1011 @DomName('DynamicsCompressorNode.knee')
813 @DocsEditable() 1012 @DocsEditable()
814 AudioParam get knee => _blink.BlinkDynamicsCompressorNode.instance.knee_Getter _(this); 1013 AudioParam get knee => wrap_jso(_blink.BlinkDynamicsCompressorNode.instance.kn ee_Getter_(unwrap_jso(this)));
815 1014
816 @DomName('DynamicsCompressorNode.ratio') 1015 @DomName('DynamicsCompressorNode.ratio')
817 @DocsEditable() 1016 @DocsEditable()
818 AudioParam get ratio => _blink.BlinkDynamicsCompressorNode.instance.ratio_Gett er_(this); 1017 AudioParam get ratio => wrap_jso(_blink.BlinkDynamicsCompressorNode.instance.r atio_Getter_(unwrap_jso(this)));
819 1018
820 @DomName('DynamicsCompressorNode.reduction') 1019 @DomName('DynamicsCompressorNode.reduction')
821 @DocsEditable() 1020 @DocsEditable()
822 AudioParam get reduction => _blink.BlinkDynamicsCompressorNode.instance.reduct ion_Getter_(this); 1021 AudioParam get reduction => wrap_jso(_blink.BlinkDynamicsCompressorNode.instan ce.reduction_Getter_(unwrap_jso(this)));
823 1022
824 @DomName('DynamicsCompressorNode.release') 1023 @DomName('DynamicsCompressorNode.release')
825 @DocsEditable() 1024 @DocsEditable()
826 AudioParam get release => _blink.BlinkDynamicsCompressorNode.instance.release_ Getter_(this); 1025 AudioParam get release => wrap_jso(_blink.BlinkDynamicsCompressorNode.instance .release_Getter_(unwrap_jso(this)));
827 1026
828 @DomName('DynamicsCompressorNode.threshold') 1027 @DomName('DynamicsCompressorNode.threshold')
829 @DocsEditable() 1028 @DocsEditable()
830 AudioParam get threshold => _blink.BlinkDynamicsCompressorNode.instance.thresh old_Getter_(this); 1029 AudioParam get threshold => wrap_jso(_blink.BlinkDynamicsCompressorNode.instan ce.threshold_Getter_(unwrap_jso(this)));
831 1030
832 } 1031 }
833 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1032 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
834 // for details. All rights reserved. Use of this source code is governed by a 1033 // for details. All rights reserved. Use of this source code is governed by a
835 // BSD-style license that can be found in the LICENSE file. 1034 // BSD-style license that can be found in the LICENSE file.
836 1035
837 // WARNING: Do not edit - generated code. 1036 // WARNING: Do not edit - generated code.
838 1037
839 1038
840 @DocsEditable() 1039 @DocsEditable()
841 @DomName('GainNode') 1040 @DomName('GainNode')
842 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod e 1041 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#GainNod e
843 @Experimental() 1042 @Experimental()
844 class GainNode extends AudioNode { 1043 class GainNode extends AudioNode {
845 // To suppress missing implicit constructor warnings. 1044 // To suppress missing implicit constructor warnings.
846 factory GainNode._() { throw new UnsupportedError("Not supported"); } 1045 factory GainNode._() { throw new UnsupportedError("Not supported"); }
847 1046
1047
1048 static GainNode internalCreateGainNode() {
1049 return new GainNode._internalWrap();
1050 }
1051
1052 factory GainNode._internalWrap() {
1053 return new GainNode._internal();
1054 }
1055
1056 GainNode._internal() : super._internal();
1057
1058
848 @DomName('GainNode.gain') 1059 @DomName('GainNode.gain')
849 @DocsEditable() 1060 @DocsEditable()
850 AudioParam get gain => _blink.BlinkGainNode.instance.gain_Getter_(this); 1061 AudioParam get gain => wrap_jso(_blink.BlinkGainNode.instance.gain_Getter_(unw rap_jso(this)));
851 1062
852 } 1063 }
853 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1064 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
854 // for details. All rights reserved. Use of this source code is governed by a 1065 // for details. All rights reserved. Use of this source code is governed by a
855 // BSD-style license that can be found in the LICENSE file. 1066 // BSD-style license that can be found in the LICENSE file.
856 1067
857 // WARNING: Do not edit - generated code. 1068 // WARNING: Do not edit - generated code.
858 1069
859 1070
860 @DocsEditable() 1071 @DocsEditable()
861 @DomName('MediaElementAudioSourceNode') 1072 @DomName('MediaElementAudioSourceNode')
862 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl ementAudioSourceNode 1073 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaEl ementAudioSourceNode
863 @Experimental() 1074 @Experimental()
864 class MediaElementAudioSourceNode extends AudioSourceNode { 1075 class MediaElementAudioSourceNode extends AudioSourceNode {
865 // To suppress missing implicit constructor warnings. 1076 // To suppress missing implicit constructor warnings.
866 factory MediaElementAudioSourceNode._() { throw new UnsupportedError("Not supp orted"); } 1077 factory MediaElementAudioSourceNode._() { throw new UnsupportedError("Not supp orted"); }
867 1078
1079
1080 static MediaElementAudioSourceNode internalCreateMediaElementAudioSourceNode() {
1081 return new MediaElementAudioSourceNode._internalWrap();
1082 }
1083
1084 factory MediaElementAudioSourceNode._internalWrap() {
1085 return new MediaElementAudioSourceNode._internal();
1086 }
1087
1088 MediaElementAudioSourceNode._internal() : super._internal();
1089
1090
868 @DomName('MediaElementAudioSourceNode.mediaElement') 1091 @DomName('MediaElementAudioSourceNode.mediaElement')
869 @DocsEditable() 1092 @DocsEditable()
870 @Experimental() // non-standard 1093 @Experimental() // non-standard
871 MediaElement get mediaElement => _blink.BlinkMediaElementAudioSourceNode.insta nce.mediaElement_Getter_(this); 1094 MediaElement get mediaElement => wrap_jso(_blink.BlinkMediaElementAudioSourceN ode.instance.mediaElement_Getter_(unwrap_jso(this)));
872 1095
873 } 1096 }
874 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1097 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
875 // for details. All rights reserved. Use of this source code is governed by a 1098 // for details. All rights reserved. Use of this source code is governed by a
876 // BSD-style license that can be found in the LICENSE file. 1099 // BSD-style license that can be found in the LICENSE file.
877 1100
878 // WARNING: Do not edit - generated code. 1101 // WARNING: Do not edit - generated code.
879 1102
880 1103
881 @DocsEditable() 1104 @DocsEditable()
882 @DomName('MediaStreamAudioDestinationNode') 1105 @DomName('MediaStreamAudioDestinationNode')
883 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt reamAudioDestinationNode 1106 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt reamAudioDestinationNode
884 @Experimental() 1107 @Experimental()
885 class MediaStreamAudioDestinationNode extends AudioNode { 1108 class MediaStreamAudioDestinationNode extends AudioNode {
886 // To suppress missing implicit constructor warnings. 1109 // To suppress missing implicit constructor warnings.
887 factory MediaStreamAudioDestinationNode._() { throw new UnsupportedError("Not supported"); } 1110 factory MediaStreamAudioDestinationNode._() { throw new UnsupportedError("Not supported"); }
888 1111
1112
1113 static MediaStreamAudioDestinationNode internalCreateMediaStreamAudioDestinati onNode() {
1114 return new MediaStreamAudioDestinationNode._internalWrap();
1115 }
1116
1117 factory MediaStreamAudioDestinationNode._internalWrap() {
1118 return new MediaStreamAudioDestinationNode._internal();
1119 }
1120
1121 MediaStreamAudioDestinationNode._internal() : super._internal();
1122
1123
889 @DomName('MediaStreamAudioDestinationNode.stream') 1124 @DomName('MediaStreamAudioDestinationNode.stream')
890 @DocsEditable() 1125 @DocsEditable()
891 MediaStream get stream => _blink.BlinkMediaStreamAudioDestinationNode.instance .stream_Getter_(this); 1126 MediaStream get stream => wrap_jso(_blink.BlinkMediaStreamAudioDestinationNode .instance.stream_Getter_(unwrap_jso(this)));
892 1127
893 } 1128 }
894 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1129 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
895 // for details. All rights reserved. Use of this source code is governed by a 1130 // for details. All rights reserved. Use of this source code is governed by a
896 // BSD-style license that can be found in the LICENSE file. 1131 // BSD-style license that can be found in the LICENSE file.
897 1132
898 // WARNING: Do not edit - generated code. 1133 // WARNING: Do not edit - generated code.
899 1134
900 1135
901 @DocsEditable() 1136 @DocsEditable()
902 @DomName('MediaStreamAudioSourceNode') 1137 @DomName('MediaStreamAudioSourceNode')
903 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt reamAudioSourceNode 1138 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaSt reamAudioSourceNode
904 @Experimental() 1139 @Experimental()
905 class MediaStreamAudioSourceNode extends AudioSourceNode { 1140 class MediaStreamAudioSourceNode extends AudioSourceNode {
906 // To suppress missing implicit constructor warnings. 1141 // To suppress missing implicit constructor warnings.
907 factory MediaStreamAudioSourceNode._() { throw new UnsupportedError("Not suppo rted"); } 1142 factory MediaStreamAudioSourceNode._() { throw new UnsupportedError("Not suppo rted"); }
908 1143
1144
1145 static MediaStreamAudioSourceNode internalCreateMediaStreamAudioSourceNode() {
1146 return new MediaStreamAudioSourceNode._internalWrap();
1147 }
1148
1149 factory MediaStreamAudioSourceNode._internalWrap() {
1150 return new MediaStreamAudioSourceNode._internal();
1151 }
1152
1153 MediaStreamAudioSourceNode._internal() : super._internal();
1154
1155
909 @DomName('MediaStreamAudioSourceNode.mediaStream') 1156 @DomName('MediaStreamAudioSourceNode.mediaStream')
910 @DocsEditable() 1157 @DocsEditable()
911 MediaStream get mediaStream => _blink.BlinkMediaStreamAudioSourceNode.instance .mediaStream_Getter_(this); 1158 MediaStream get mediaStream => wrap_jso(_blink.BlinkMediaStreamAudioSourceNode .instance.mediaStream_Getter_(unwrap_jso(this)));
912 1159
913 } 1160 }
914 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1161 // 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 1162 // 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. 1163 // BSD-style license that can be found in the LICENSE file.
917 1164
918 // WARNING: Do not edit - generated code. 1165 // WARNING: Do not edit - generated code.
919 1166
920 1167
921 @DocsEditable() 1168 @DocsEditable()
922 @DomName('OfflineAudioCompletionEvent') 1169 @DomName('OfflineAudioCompletionEvent')
923 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline AudioCompletionEvent-section 1170 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline AudioCompletionEvent-section
924 @Experimental() 1171 @Experimental()
925 class OfflineAudioCompletionEvent extends Event { 1172 class OfflineAudioCompletionEvent extends Event {
926 // To suppress missing implicit constructor warnings. 1173 // To suppress missing implicit constructor warnings.
927 factory OfflineAudioCompletionEvent._() { throw new UnsupportedError("Not supp orted"); } 1174 factory OfflineAudioCompletionEvent._() { throw new UnsupportedError("Not supp orted"); }
928 1175
1176
1177 static OfflineAudioCompletionEvent internalCreateOfflineAudioCompletionEvent() {
1178 return new OfflineAudioCompletionEvent._internalWrap();
1179 }
1180
1181 factory OfflineAudioCompletionEvent._internalWrap() {
1182 return new OfflineAudioCompletionEvent._internal();
1183 }
1184
1185 OfflineAudioCompletionEvent._internal() : super._internal();
1186
1187
929 @DomName('OfflineAudioCompletionEvent.renderedBuffer') 1188 @DomName('OfflineAudioCompletionEvent.renderedBuffer')
930 @DocsEditable() 1189 @DocsEditable()
931 AudioBuffer get renderedBuffer => _blink.BlinkOfflineAudioCompletionEvent.inst ance.renderedBuffer_Getter_(this); 1190 AudioBuffer get renderedBuffer => wrap_jso(_blink.BlinkOfflineAudioCompletionE vent.instance.renderedBuffer_Getter_(unwrap_jso(this)));
932 1191
933 } 1192 }
934 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1193 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
935 // for details. All rights reserved. Use of this source code is governed by a 1194 // for details. All rights reserved. Use of this source code is governed by a
936 // BSD-style license that can be found in the LICENSE file. 1195 // BSD-style license that can be found in the LICENSE file.
937 1196
938 // WARNING: Do not edit - generated code. 1197 // WARNING: Do not edit - generated code.
939 1198
940 1199
941 @DocsEditable() 1200 @DocsEditable()
942 @DomName('OfflineAudioContext') 1201 @DomName('OfflineAudioContext')
943 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline AudioContext-section 1202 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#Offline AudioContext-section
944 @Experimental() 1203 @Experimental()
945 class OfflineAudioContext extends AudioContext { 1204 class OfflineAudioContext extends AudioContext {
946 // To suppress missing implicit constructor warnings. 1205 // To suppress missing implicit constructor warnings.
947 factory OfflineAudioContext._() { throw new UnsupportedError("Not supported"); } 1206 factory OfflineAudioContext._() { throw new UnsupportedError("Not supported"); }
948 1207
949 @DomName('OfflineAudioContext.OfflineAudioContext') 1208 @DomName('OfflineAudioContext.OfflineAudioContext')
950 @DocsEditable() 1209 @DocsEditable()
951 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp leRate) { 1210 factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num samp leRate) {
952 return _blink.BlinkOfflineAudioContext.instance.constructorCallback_3_(numbe rOfChannels, numberOfFrames, sampleRate); 1211 return _blink.BlinkOfflineAudioContext.instance.constructorCallback_3_(numbe rOfChannels, numberOfFrames, sampleRate);
953 } 1212 }
954 1213
1214
1215 static OfflineAudioContext internalCreateOfflineAudioContext() {
1216 return new OfflineAudioContext._internalWrap();
1217 }
1218
1219 factory OfflineAudioContext._internalWrap() {
1220 return new OfflineAudioContext._internal();
1221 }
1222
1223 OfflineAudioContext._internal() : super._internal();
1224
1225
955 } 1226 }
956 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1227 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
957 // for details. All rights reserved. Use of this source code is governed by a 1228 // for details. All rights reserved. Use of this source code is governed by a
958 // BSD-style license that can be found in the LICENSE file. 1229 // BSD-style license that can be found in the LICENSE file.
959 1230
960 // WARNING: Do not edit - generated code. 1231 // WARNING: Do not edit - generated code.
961 1232
962 1233
963 @DocsEditable() 1234 @DocsEditable()
964 @DomName('OscillatorNode') 1235 @DomName('OscillatorNode')
965 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc illatorNode 1236 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Osc illatorNode
966 @Experimental() 1237 @Experimental()
967 class OscillatorNode extends AudioSourceNode { 1238 class OscillatorNode extends AudioSourceNode {
968 // To suppress missing implicit constructor warnings. 1239 // To suppress missing implicit constructor warnings.
969 factory OscillatorNode._() { throw new UnsupportedError("Not supported"); } 1240 factory OscillatorNode._() { throw new UnsupportedError("Not supported"); }
970 1241
971 /** 1242 /**
972 * Static factory designed to expose `ended` events to event 1243 * Static factory designed to expose `ended` events to event
973 * handlers that are not necessarily instances of [OscillatorNode]. 1244 * handlers that are not necessarily instances of [OscillatorNode].
974 * 1245 *
975 * See [EventStreamProvider] for usage information. 1246 * See [EventStreamProvider] for usage information.
976 */ 1247 */
977 @DomName('OscillatorNode.endedEvent') 1248 @DomName('OscillatorNode.endedEvent')
978 @DocsEditable() 1249 @DocsEditable()
979 @Experimental() // untriaged 1250 @Experimental() // untriaged
980 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended'); 1251 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider <Event>('ended');
981 1252
1253
1254 static OscillatorNode internalCreateOscillatorNode() {
1255 return new OscillatorNode._internalWrap();
1256 }
1257
1258 factory OscillatorNode._internalWrap() {
1259 return new OscillatorNode._internal();
1260 }
1261
1262 OscillatorNode._internal() : super._internal();
1263
1264
982 @DomName('OscillatorNode.detune') 1265 @DomName('OscillatorNode.detune')
983 @DocsEditable() 1266 @DocsEditable()
984 AudioParam get detune => _blink.BlinkOscillatorNode.instance.detune_Getter_(th is); 1267 AudioParam get detune => wrap_jso(_blink.BlinkOscillatorNode.instance.detune_G etter_(unwrap_jso(this)));
985 1268
986 @DomName('OscillatorNode.frequency') 1269 @DomName('OscillatorNode.frequency')
987 @DocsEditable() 1270 @DocsEditable()
988 AudioParam get frequency => _blink.BlinkOscillatorNode.instance.frequency_Gett er_(this); 1271 AudioParam get frequency => wrap_jso(_blink.BlinkOscillatorNode.instance.frequ ency_Getter_(unwrap_jso(this)));
989 1272
990 @DomName('OscillatorNode.type') 1273 @DomName('OscillatorNode.type')
991 @DocsEditable() 1274 @DocsEditable()
992 String get type => _blink.BlinkOscillatorNode.instance.type_Getter_(this); 1275 String get type => _blink.BlinkOscillatorNode.instance.type_Getter_(unwrap_jso (this));
993 1276
994 @DomName('OscillatorNode.type') 1277 @DomName('OscillatorNode.type')
995 @DocsEditable() 1278 @DocsEditable()
996 void set type(String value) => _blink.BlinkOscillatorNode.instance.type_Setter _(this, value); 1279 void set type(String value) => _blink.BlinkOscillatorNode.instance.type_Setter _(unwrap_jso(this), value);
997 1280
998 @DomName('OscillatorNode.noteOff') 1281 @DomName('OscillatorNode.noteOff')
999 @DocsEditable() 1282 @DocsEditable()
1000 void noteOff(num when) => _blink.BlinkOscillatorNode.instance.noteOff_Callback _1_(this, when); 1283 void noteOff(num when) => _blink.BlinkOscillatorNode.instance.noteOff_Callback _1_(unwrap_jso(this), when);
1001 1284
1002 @DomName('OscillatorNode.noteOn') 1285 @DomName('OscillatorNode.noteOn')
1003 @DocsEditable() 1286 @DocsEditable()
1004 void noteOn(num when) => _blink.BlinkOscillatorNode.instance.noteOn_Callback_1 _(this, when); 1287 void noteOn(num when) => _blink.BlinkOscillatorNode.instance.noteOn_Callback_1 _(unwrap_jso(this), when);
1005 1288
1006 @DomName('OscillatorNode.setPeriodicWave') 1289 @DomName('OscillatorNode.setPeriodicWave')
1007 @DocsEditable() 1290 @DocsEditable()
1008 @Experimental() // untriaged 1291 @Experimental() // untriaged
1009 void setPeriodicWave(PeriodicWave periodicWave) => _blink.BlinkOscillatorNode. instance.setPeriodicWave_Callback_1_(this, periodicWave); 1292 void setPeriodicWave(PeriodicWave periodicWave) => _blink.BlinkOscillatorNode. instance.setPeriodicWave_Callback_1_(unwrap_jso(this), unwrap_jso(periodicWave)) ;
1010 1293
1011 void start([num when]) { 1294 void start([num when]) {
1012 if (when != null) { 1295 if (when != null) {
1013 _blink.BlinkOscillatorNode.instance.start_Callback_1_(this, when); 1296 _blink.BlinkOscillatorNode.instance.start_Callback_1_(unwrap_jso(this), wh en);
1014 return; 1297 return;
1015 } 1298 }
1016 _blink.BlinkOscillatorNode.instance.start_Callback_0_(this); 1299 _blink.BlinkOscillatorNode.instance.start_Callback_0_(unwrap_jso(this));
1017 return; 1300 return;
1018 } 1301 }
1019 1302
1020 void stop([num when]) { 1303 void stop([num when]) {
1021 if (when != null) { 1304 if (when != null) {
1022 _blink.BlinkOscillatorNode.instance.stop_Callback_1_(this, when); 1305 _blink.BlinkOscillatorNode.instance.stop_Callback_1_(unwrap_jso(this), whe n);
1023 return; 1306 return;
1024 } 1307 }
1025 _blink.BlinkOscillatorNode.instance.stop_Callback_0_(this); 1308 _blink.BlinkOscillatorNode.instance.stop_Callback_0_(unwrap_jso(this));
1026 return; 1309 return;
1027 } 1310 }
1028 1311
1029 /// Stream of `ended` events handled by this [OscillatorNode]. 1312 /// Stream of `ended` events handled by this [OscillatorNode].
1030 @DomName('OscillatorNode.onended') 1313 @DomName('OscillatorNode.onended')
1031 @DocsEditable() 1314 @DocsEditable()
1032 @Experimental() // untriaged 1315 @Experimental() // untriaged
1033 Stream<Event> get onEnded => endedEvent.forTarget(this); 1316 Stream<Event> get onEnded => endedEvent.forTarget(this);
1034 1317
1035 } 1318 }
1036 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1319 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1037 // for details. All rights reserved. Use of this source code is governed by a 1320 // for details. All rights reserved. Use of this source code is governed by a
1038 // BSD-style license that can be found in the LICENSE file. 1321 // BSD-style license that can be found in the LICENSE file.
1039 1322
1040 // WARNING: Do not edit - generated code. 1323 // WARNING: Do not edit - generated code.
1041 1324
1042 1325
1043 @DocsEditable() 1326 @DocsEditable()
1044 @DomName('PannerNode') 1327 @DomName('PannerNode')
1045 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN ode 1328 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#PannerN ode
1046 @Experimental() 1329 @Experimental()
1047 class PannerNode extends AudioNode { 1330 class PannerNode extends AudioNode {
1048 // To suppress missing implicit constructor warnings. 1331 // To suppress missing implicit constructor warnings.
1049 factory PannerNode._() { throw new UnsupportedError("Not supported"); } 1332 factory PannerNode._() { throw new UnsupportedError("Not supported"); }
1050 1333
1051 @DomName('PannerNode.coneInnerAngle') 1334
1052 @DocsEditable() 1335 static PannerNode internalCreatePannerNode() {
1053 num get coneInnerAngle => _blink.BlinkPannerNode.instance.coneInnerAngle_Gette r_(this); 1336 return new PannerNode._internalWrap();
1337 }
1338
1339 factory PannerNode._internalWrap() {
1340 return new PannerNode._internal();
1341 }
1342
1343 PannerNode._internal() : super._internal();
1344
1054 1345
1055 @DomName('PannerNode.coneInnerAngle') 1346 @DomName('PannerNode.coneInnerAngle')
1056 @DocsEditable() 1347 @DocsEditable()
1057 void set coneInnerAngle(num value) => _blink.BlinkPannerNode.instance.coneInne rAngle_Setter_(this, value); 1348 num get coneInnerAngle => _blink.BlinkPannerNode.instance.coneInnerAngle_Gette r_(unwrap_jso(this));
1058 1349
1350 @DomName('PannerNode.coneInnerAngle')
1351 @DocsEditable()
1352 void set coneInnerAngle(num value) => _blink.BlinkPannerNode.instance.coneInne rAngle_Setter_(unwrap_jso(this), value);
1353
1059 @DomName('PannerNode.coneOuterAngle') 1354 @DomName('PannerNode.coneOuterAngle')
1060 @DocsEditable() 1355 @DocsEditable()
1061 num get coneOuterAngle => _blink.BlinkPannerNode.instance.coneOuterAngle_Gette r_(this); 1356 num get coneOuterAngle => _blink.BlinkPannerNode.instance.coneOuterAngle_Gette r_(unwrap_jso(this));
1062 1357
1063 @DomName('PannerNode.coneOuterAngle') 1358 @DomName('PannerNode.coneOuterAngle')
1064 @DocsEditable() 1359 @DocsEditable()
1065 void set coneOuterAngle(num value) => _blink.BlinkPannerNode.instance.coneOute rAngle_Setter_(this, value); 1360 void set coneOuterAngle(num value) => _blink.BlinkPannerNode.instance.coneOute rAngle_Setter_(unwrap_jso(this), value);
1066 1361
1067 @DomName('PannerNode.coneOuterGain') 1362 @DomName('PannerNode.coneOuterGain')
1068 @DocsEditable() 1363 @DocsEditable()
1069 num get coneOuterGain => _blink.BlinkPannerNode.instance.coneOuterGain_Getter_ (this); 1364 num get coneOuterGain => _blink.BlinkPannerNode.instance.coneOuterGain_Getter_ (unwrap_jso(this));
1070 1365
1071 @DomName('PannerNode.coneOuterGain') 1366 @DomName('PannerNode.coneOuterGain')
1072 @DocsEditable() 1367 @DocsEditable()
1073 void set coneOuterGain(num value) => _blink.BlinkPannerNode.instance.coneOuter Gain_Setter_(this, value); 1368 void set coneOuterGain(num value) => _blink.BlinkPannerNode.instance.coneOuter Gain_Setter_(unwrap_jso(this), value);
1074 1369
1075 @DomName('PannerNode.distanceModel') 1370 @DomName('PannerNode.distanceModel')
1076 @DocsEditable() 1371 @DocsEditable()
1077 String get distanceModel => _blink.BlinkPannerNode.instance.distanceModel_Gett er_(this); 1372 String get distanceModel => _blink.BlinkPannerNode.instance.distanceModel_Gett er_(unwrap_jso(this));
1078 1373
1079 @DomName('PannerNode.distanceModel') 1374 @DomName('PannerNode.distanceModel')
1080 @DocsEditable() 1375 @DocsEditable()
1081 void set distanceModel(String value) => _blink.BlinkPannerNode.instance.distan ceModel_Setter_(this, value); 1376 void set distanceModel(String value) => _blink.BlinkPannerNode.instance.distan ceModel_Setter_(unwrap_jso(this), value);
1082 1377
1083 @DomName('PannerNode.maxDistance') 1378 @DomName('PannerNode.maxDistance')
1084 @DocsEditable() 1379 @DocsEditable()
1085 num get maxDistance => _blink.BlinkPannerNode.instance.maxDistance_Getter_(thi s); 1380 num get maxDistance => _blink.BlinkPannerNode.instance.maxDistance_Getter_(unw rap_jso(this));
1086 1381
1087 @DomName('PannerNode.maxDistance') 1382 @DomName('PannerNode.maxDistance')
1088 @DocsEditable() 1383 @DocsEditable()
1089 void set maxDistance(num value) => _blink.BlinkPannerNode.instance.maxDistance _Setter_(this, value); 1384 void set maxDistance(num value) => _blink.BlinkPannerNode.instance.maxDistance _Setter_(unwrap_jso(this), value);
1090 1385
1091 @DomName('PannerNode.panningModel') 1386 @DomName('PannerNode.panningModel')
1092 @DocsEditable() 1387 @DocsEditable()
1093 String get panningModel => _blink.BlinkPannerNode.instance.panningModel_Getter _(this); 1388 String get panningModel => _blink.BlinkPannerNode.instance.panningModel_Getter _(unwrap_jso(this));
1094 1389
1095 @DomName('PannerNode.panningModel') 1390 @DomName('PannerNode.panningModel')
1096 @DocsEditable() 1391 @DocsEditable()
1097 void set panningModel(String value) => _blink.BlinkPannerNode.instance.panning Model_Setter_(this, value); 1392 void set panningModel(String value) => _blink.BlinkPannerNode.instance.panning Model_Setter_(unwrap_jso(this), value);
1098 1393
1099 @DomName('PannerNode.refDistance') 1394 @DomName('PannerNode.refDistance')
1100 @DocsEditable() 1395 @DocsEditable()
1101 num get refDistance => _blink.BlinkPannerNode.instance.refDistance_Getter_(thi s); 1396 num get refDistance => _blink.BlinkPannerNode.instance.refDistance_Getter_(unw rap_jso(this));
1102 1397
1103 @DomName('PannerNode.refDistance') 1398 @DomName('PannerNode.refDistance')
1104 @DocsEditable() 1399 @DocsEditable()
1105 void set refDistance(num value) => _blink.BlinkPannerNode.instance.refDistance _Setter_(this, value); 1400 void set refDistance(num value) => _blink.BlinkPannerNode.instance.refDistance _Setter_(unwrap_jso(this), value);
1106 1401
1107 @DomName('PannerNode.rolloffFactor') 1402 @DomName('PannerNode.rolloffFactor')
1108 @DocsEditable() 1403 @DocsEditable()
1109 num get rolloffFactor => _blink.BlinkPannerNode.instance.rolloffFactor_Getter_ (this); 1404 num get rolloffFactor => _blink.BlinkPannerNode.instance.rolloffFactor_Getter_ (unwrap_jso(this));
1110 1405
1111 @DomName('PannerNode.rolloffFactor') 1406 @DomName('PannerNode.rolloffFactor')
1112 @DocsEditable() 1407 @DocsEditable()
1113 void set rolloffFactor(num value) => _blink.BlinkPannerNode.instance.rolloffFa ctor_Setter_(this, value); 1408 void set rolloffFactor(num value) => _blink.BlinkPannerNode.instance.rolloffFa ctor_Setter_(unwrap_jso(this), value);
1114 1409
1115 @DomName('PannerNode.setOrientation') 1410 @DomName('PannerNode.setOrientation')
1116 @DocsEditable() 1411 @DocsEditable()
1117 void setOrientation(num x, num y, num z) => _blink.BlinkPannerNode.instance.se tOrientation_Callback_3_(this, x, y, z); 1412 void setOrientation(num x, num y, num z) => _blink.BlinkPannerNode.instance.se tOrientation_Callback_3_(unwrap_jso(this), x, y, z);
1118 1413
1119 @DomName('PannerNode.setPosition') 1414 @DomName('PannerNode.setPosition')
1120 @DocsEditable() 1415 @DocsEditable()
1121 void setPosition(num x, num y, num z) => _blink.BlinkPannerNode.instance.setPo sition_Callback_3_(this, x, y, z); 1416 void setPosition(num x, num y, num z) => _blink.BlinkPannerNode.instance.setPo sition_Callback_3_(unwrap_jso(this), x, y, z);
1122 1417
1123 @DomName('PannerNode.setVelocity') 1418 @DomName('PannerNode.setVelocity')
1124 @DocsEditable() 1419 @DocsEditable()
1125 void setVelocity(num x, num y, num z) => _blink.BlinkPannerNode.instance.setVe locity_Callback_3_(this, x, y, z); 1420 void setVelocity(num x, num y, num z) => _blink.BlinkPannerNode.instance.setVe locity_Callback_3_(unwrap_jso(this), x, y, z);
1126 1421
1127 } 1422 }
1128 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1423 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1129 // for details. All rights reserved. Use of this source code is governed by a 1424 // for details. All rights reserved. Use of this source code is governed by a
1130 // BSD-style license that can be found in the LICENSE file. 1425 // BSD-style license that can be found in the LICENSE file.
1131 1426
1132 // WARNING: Do not edit - generated code. 1427 // WARNING: Do not edit - generated code.
1133 1428
1134 1429
1135 @DocsEditable() 1430 @DocsEditable()
1136 @DomName('PeriodicWave') 1431 @DomName('PeriodicWave')
1137 @Experimental() // untriaged 1432 @Experimental() // untriaged
1138 class PeriodicWave extends NativeFieldWrapperClass2 { 1433 class PeriodicWave extends NativeFieldWrapperClass2 {
1139 // To suppress missing implicit constructor warnings. 1434 // To suppress missing implicit constructor warnings.
1140 factory PeriodicWave._() { throw new UnsupportedError("Not supported"); } 1435 factory PeriodicWave._() { throw new UnsupportedError("Not supported"); }
1141 1436
1437 static PeriodicWave internalCreatePeriodicWave() {
1438 return new PeriodicWave._internalWrap();
1439 }
1440
1441 JsObject blink_jsObject = null;
1442
1443 factory PeriodicWave._internalWrap() {
1444 return new PeriodicWave._internal();
1445 }
1446
1447 PeriodicWave._internal() { }
1448
1449 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
1450
1142 } 1451 }
1143 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1452 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1144 // for details. All rights reserved. Use of this source code is governed by a 1453 // for details. All rights reserved. Use of this source code is governed by a
1145 // BSD-style license that can be found in the LICENSE file. 1454 // BSD-style license that can be found in the LICENSE file.
1146 1455
1147 // WARNING: Do not edit - generated code. 1456 // WARNING: Do not edit - generated code.
1148 1457
1149 1458
1150 @DocsEditable() 1459 @DocsEditable()
1151 @DomName('ScriptProcessorNode') 1460 @DomName('ScriptProcessorNode')
1152 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP rocessorNode 1461 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptP rocessorNode
1153 @Experimental() 1462 @Experimental()
1154 class ScriptProcessorNode extends AudioNode { 1463 class ScriptProcessorNode extends AudioNode {
1155 // To suppress missing implicit constructor warnings. 1464 // To suppress missing implicit constructor warnings.
1156 factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported"); } 1465 factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported"); }
1157 1466
1158 /** 1467 /**
1159 * Static factory designed to expose `audioprocess` events to event 1468 * Static factory designed to expose `audioprocess` events to event
1160 * handlers that are not necessarily instances of [ScriptProcessorNode]. 1469 * handlers that are not necessarily instances of [ScriptProcessorNode].
1161 * 1470 *
1162 * See [EventStreamProvider] for usage information. 1471 * See [EventStreamProvider] for usage information.
1163 */ 1472 */
1164 @DomName('ScriptProcessorNode.audioprocessEvent') 1473 @DomName('ScriptProcessorNode.audioprocessEvent')
1165 @DocsEditable() 1474 @DocsEditable()
1166 @Experimental() // untriaged 1475 @Experimental() // untriaged
1167 static const EventStreamProvider<AudioProcessingEvent> audioProcessEvent = con st EventStreamProvider<AudioProcessingEvent>('audioprocess'); 1476 static const EventStreamProvider<AudioProcessingEvent> audioProcessEvent = con st EventStreamProvider<AudioProcessingEvent>('audioprocess');
1168 1477
1478
1479 static ScriptProcessorNode internalCreateScriptProcessorNode() {
1480 return new ScriptProcessorNode._internalWrap();
1481 }
1482
1483 factory ScriptProcessorNode._internalWrap() {
1484 return new ScriptProcessorNode._internal();
1485 }
1486
1487 ScriptProcessorNode._internal() : super._internal();
1488
1489
1169 @DomName('ScriptProcessorNode.bufferSize') 1490 @DomName('ScriptProcessorNode.bufferSize')
1170 @DocsEditable() 1491 @DocsEditable()
1171 int get bufferSize => _blink.BlinkScriptProcessorNode.instance.bufferSize_Gett er_(this); 1492 int get bufferSize => _blink.BlinkScriptProcessorNode.instance.bufferSize_Gett er_(unwrap_jso(this));
1172 1493
1173 @DomName('ScriptProcessorNode.setEventListener') 1494 @DomName('ScriptProcessorNode.setEventListener')
1174 @DocsEditable() 1495 @DocsEditable()
1175 @Experimental() // untriaged 1496 @Experimental() // untriaged
1176 void setEventListener(EventListener eventListener) => _blink.BlinkScriptProces sorNode.instance.setEventListener_Callback_1_(this, eventListener); 1497 void setEventListener(EventListener eventListener) => _blink.BlinkScriptProces sorNode.instance.setEventListener_Callback_1_(unwrap_jso(this), unwrap_jso(event Listener));
1177 1498
1178 /// Stream of `audioprocess` events handled by this [ScriptProcessorNode]. 1499 /// Stream of `audioprocess` events handled by this [ScriptProcessorNode].
1179 /** 1500 /**
1180 * Get a Stream that fires events when AudioProcessingEvents occur. 1501 * Get a Stream that fires events when AudioProcessingEvents occur.
1181 * This particular stream is special in that it only allows one listener to a 1502 * This particular stream is special in that it only allows one listener to a
1182 * given stream. Converting the returned Stream [asBroadcast] will likely ruin 1503 * given stream. Converting the returned Stream [asBroadcast] will likely ruin
1183 * the soft-real-time properties which which these events are fired and can 1504 * the soft-real-time properties which which these events are fired and can
1184 * be processed. 1505 * be processed.
1185 */ 1506 */
1186 @DomName('ScriptProcessorNode.onaudioprocess') 1507 @DomName('ScriptProcessorNode.onaudioprocess')
1187 @DocsEditable() 1508 @DocsEditable()
1188 @Experimental() // untriaged 1509 @Experimental() // untriaged
1189 Stream<AudioProcessingEvent> get onAudioProcess => audioProcessEvent.forTarget (this); 1510 Stream<AudioProcessingEvent> get onAudioProcess => audioProcessEvent.forTarget (this);
1190 1511
1191 } 1512 }
1192 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1513 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1193 // for details. All rights reserved. Use of this source code is governed by a 1514 // for details. All rights reserved. Use of this source code is governed by a
1194 // BSD-style license that can be found in the LICENSE file. 1515 // BSD-style license that can be found in the LICENSE file.
1195 1516
1196 // WARNING: Do not edit - generated code. 1517 // WARNING: Do not edit - generated code.
1197 1518
1198 1519
1199 @DocsEditable() 1520 @DocsEditable()
1200 @DomName('WaveShaperNode') 1521 @DomName('WaveShaperNode')
1201 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav eShaperNode 1522 // https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#dfn-Wav eShaperNode
1202 @Experimental() 1523 @Experimental()
1203 class WaveShaperNode extends AudioNode { 1524 class WaveShaperNode extends AudioNode {
1204 // To suppress missing implicit constructor warnings. 1525 // To suppress missing implicit constructor warnings.
1205 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); } 1526 factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); }
1206 1527
1207 @DomName('WaveShaperNode.curve') 1528
1208 @DocsEditable() 1529 static WaveShaperNode internalCreateWaveShaperNode() {
1209 Float32List get curve => _blink.BlinkWaveShaperNode.instance.curve_Getter_(thi s); 1530 return new WaveShaperNode._internalWrap();
1531 }
1532
1533 factory WaveShaperNode._internalWrap() {
1534 return new WaveShaperNode._internal();
1535 }
1536
1537 WaveShaperNode._internal() : super._internal();
1538
1210 1539
1211 @DomName('WaveShaperNode.curve') 1540 @DomName('WaveShaperNode.curve')
1212 @DocsEditable() 1541 @DocsEditable()
1213 void set curve(Float32List value) => _blink.BlinkWaveShaperNode.instance.curve _Setter_(this, value); 1542 Float32List get curve => wrap_jso(_blink.BlinkWaveShaperNode.instance.curve_Ge tter_(unwrap_jso(this)));
1214 1543
1544 @DomName('WaveShaperNode.curve')
1545 @DocsEditable()
1546 void set curve(Float32List value) => _blink.BlinkWaveShaperNode.instance.curve _Setter_(unwrap_jso(this), unwrap_jso(value));
1547
1215 @DomName('WaveShaperNode.oversample') 1548 @DomName('WaveShaperNode.oversample')
1216 @DocsEditable() 1549 @DocsEditable()
1217 String get oversample => _blink.BlinkWaveShaperNode.instance.oversample_Getter _(this); 1550 String get oversample => _blink.BlinkWaveShaperNode.instance.oversample_Getter _(unwrap_jso(this));
1218 1551
1219 @DomName('WaveShaperNode.oversample') 1552 @DomName('WaveShaperNode.oversample')
1220 @DocsEditable() 1553 @DocsEditable()
1221 void set oversample(String value) => _blink.BlinkWaveShaperNode.instance.overs ample_Setter_(this, value); 1554 void set oversample(String value) => _blink.BlinkWaveShaperNode.instance.overs ample_Setter_(unwrap_jso(this), value);
1222 1555
1223 } 1556 }
OLDNEW
« no previous file with comments | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | sdk/lib/web_gl/dartium/web_gl_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698