Adding SwingJS interface and utility classes
[jalview.git] / src / swingjs / api / js / HTML5AudioContext.java
1 package swingjs.api.js;
2
3 public interface HTML5AudioContext {
4
5         // https://developer.mozilla.org/en-US/docs/Web/API/AudioContext
6         // https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Using_Web_Audio_API
7         
8         void close();
9
10         float[] createBuffer(int nChannels, int frameCount, int sampleRate);
11
12         void createBufferSource();
13
14         void createMediaElementSource();
15
16         void createMediaStreamSource();
17
18         void createMediaStreamDestination();
19
20         void createScriptProcessor();
21
22         //void createStereoPanner();
23
24         void createAnalyser();
25
26         void createBiquadFilter();
27
28         void createChannelMerger();
29
30         void createChannelSplitter();
31
32         void createConvolver();
33
34         void createDelay();
35
36         void createDynamicsCompressor();
37
38         void createGain();
39
40         void createIIRFilter();
41
42         void createOscillator();
43
44         void createPanner();
45
46         void createPeriodicWave();
47
48         void createWaveShaper();
49
50         void createAudioWorker();
51
52         void decodeAudioData();
53
54         void resume();
55
56         void suspend();
57
58 }