OLD | NEW |
1 | 1 |
2 class _AudioContextJs extends _DOMTypeJs implements AudioContext native "*AudioC
ontext" { | 2 class _AudioContextJs extends _DOMTypeJs implements AudioContext native "*AudioC
ontext" { |
3 AudioContext() native; | 3 AudioContext() native; |
4 | 4 |
5 | 5 |
6 num get currentTime() native "return this.currentTime;"; | 6 final num currentTime; |
7 | 7 |
8 _AudioDestinationNodeJs get destination() native "return this.destination;"; | 8 final _AudioDestinationNodeJs destination; |
9 | 9 |
10 _AudioListenerJs get listener() native "return this.listener;"; | 10 final _AudioListenerJs listener; |
11 | 11 |
12 EventListener get oncomplete() native "return this.oncomplete;"; | 12 EventListener oncomplete; |
13 | 13 |
14 void set oncomplete(EventListener value) native "this.oncomplete = value;"; | 14 final num sampleRate; |
15 | |
16 num get sampleRate() native "return this.sampleRate;"; | |
17 | 15 |
18 _RealtimeAnalyserNodeJs createAnalyser() native; | 16 _RealtimeAnalyserNodeJs createAnalyser() native; |
19 | 17 |
20 _BiquadFilterNodeJs createBiquadFilter() native; | 18 _BiquadFilterNodeJs createBiquadFilter() native; |
21 | 19 |
22 _AudioBufferJs createBuffer(var buffer_OR_numberOfChannels, var mixToMono_OR_n
umberOfFrames, [num sampleRate = null]) native; | 20 _AudioBufferJs createBuffer(var buffer_OR_numberOfChannels, var mixToMono_OR_n
umberOfFrames, [num sampleRate = null]) native; |
23 | 21 |
24 _AudioBufferSourceNodeJs createBufferSource() native; | 22 _AudioBufferSourceNodeJs createBufferSource() native; |
25 | 23 |
26 _AudioChannelMergerJs createChannelMerger() native; | 24 _AudioChannelMergerJs createChannelMerger() native; |
(...skipping 17 matching lines...) Expand all Loading... |
44 _MediaElementAudioSourceNodeJs createMediaElementSource(_HTMLMediaElementJs me
diaElement) native; | 42 _MediaElementAudioSourceNodeJs createMediaElementSource(_HTMLMediaElementJs me
diaElement) native; |
45 | 43 |
46 _AudioPannerNodeJs createPanner() native; | 44 _AudioPannerNodeJs createPanner() native; |
47 | 45 |
48 _WaveShaperNodeJs createWaveShaper() native; | 46 _WaveShaperNodeJs createWaveShaper() native; |
49 | 47 |
50 void decodeAudioData(_ArrayBufferJs audioData, AudioBufferCallback successCall
back, [AudioBufferCallback errorCallback = null]) native; | 48 void decodeAudioData(_ArrayBufferJs audioData, AudioBufferCallback successCall
back, [AudioBufferCallback errorCallback = null]) native; |
51 | 49 |
52 void startRendering() native; | 50 void startRendering() native; |
53 } | 51 } |
OLD | NEW |