OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 // WARNING: Do not edit - generated code. | |
6 | |
7 class AudioContextWrappingImplementation extends DOMWrapperBase implements Audio
Context { | |
8 AudioContextWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
9 | |
10 num get currentTime() { return _ptr.currentTime; } | |
11 | |
12 AudioDestinationNode get destination() { return LevelDom.wrapAudioDestinationN
ode(_ptr.destination); } | |
13 | |
14 AudioListener get listener() { return LevelDom.wrapAudioListener(_ptr.listener
); } | |
15 | |
16 num get sampleRate() { return _ptr.sampleRate; } | |
17 | |
18 RealtimeAnalyserNode createAnalyser() { | |
19 return LevelDom.wrapRealtimeAnalyserNode(_ptr.createAnalyser()); | |
20 } | |
21 | |
22 BiquadFilterNode createBiquadFilter() { | |
23 return LevelDom.wrapBiquadFilterNode(_ptr.createBiquadFilter()); | |
24 } | |
25 | |
26 AudioBuffer createBuffer() { | |
27 return LevelDom.wrapAudioBuffer(_ptr.createBuffer()); | |
28 } | |
29 | |
30 AudioBufferSourceNode createBufferSource() { | |
31 return LevelDom.wrapAudioBufferSourceNode(_ptr.createBufferSource()); | |
32 } | |
33 | |
34 AudioChannelMerger createChannelMerger() { | |
35 return LevelDom.wrapAudioChannelMerger(_ptr.createChannelMerger()); | |
36 } | |
37 | |
38 AudioChannelSplitter createChannelSplitter() { | |
39 return LevelDom.wrapAudioChannelSplitter(_ptr.createChannelSplitter()); | |
40 } | |
41 | |
42 ConvolverNode createConvolver() { | |
43 return LevelDom.wrapConvolverNode(_ptr.createConvolver()); | |
44 } | |
45 | |
46 DelayNode createDelayNode() { | |
47 return LevelDom.wrapDelayNode(_ptr.createDelayNode()); | |
48 } | |
49 | |
50 DynamicsCompressorNode createDynamicsCompressor() { | |
51 return LevelDom.wrapDynamicsCompressorNode(_ptr.createDynamicsCompressor()); | |
52 } | |
53 | |
54 AudioGainNode createGainNode() { | |
55 return LevelDom.wrapAudioGainNode(_ptr.createGainNode()); | |
56 } | |
57 | |
58 HighPass2FilterNode createHighPass2Filter() { | |
59 return LevelDom.wrapHighPass2FilterNode(_ptr.createHighPass2Filter()); | |
60 } | |
61 | |
62 JavaScriptAudioNode createJavaScriptNode(int bufferSize) { | |
63 return LevelDom.wrapJavaScriptAudioNode(_ptr.createJavaScriptNode(bufferSize
)); | |
64 } | |
65 | |
66 LowPass2FilterNode createLowPass2Filter() { | |
67 return LevelDom.wrapLowPass2FilterNode(_ptr.createLowPass2Filter()); | |
68 } | |
69 | |
70 AudioPannerNode createPanner() { | |
71 return LevelDom.wrapAudioPannerNode(_ptr.createPanner()); | |
72 } | |
73 | |
74 WaveShaperNode createWaveShaper() { | |
75 return LevelDom.wrapWaveShaperNode(_ptr.createWaveShaper()); | |
76 } | |
77 | |
78 void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback successCallbac
k, [AudioBufferCallback errorCallback]) { | |
79 if (errorCallback === null) { | |
80 _ptr.decodeAudioData(LevelDom.unwrap(audioData), successCallback); | |
81 return; | |
82 } else { | |
83 _ptr.decodeAudioData(LevelDom.unwrap(audioData), successCallback, errorCal
lback); | |
84 return; | |
85 } | |
86 } | |
87 | |
88 void startRendering() { | |
89 _ptr.startRendering(); | |
90 return; | |
91 } | |
92 } | |
OLD | NEW |