1 | import { __awaiter } from "tslib";
|
2 | import { BaseContext } from "./BaseContext.js";
|
3 | export class DummyContext extends BaseContext {
|
4 | constructor() {
|
5 | super(...arguments);
|
6 | this.lookAhead = 0;
|
7 | this.latencyHint = 0;
|
8 | this.isOffline = false;
|
9 | }
|
10 |
|
11 |
|
12 |
|
13 | createAnalyser() {
|
14 | return {};
|
15 | }
|
16 | createOscillator() {
|
17 | return {};
|
18 | }
|
19 | createBufferSource() {
|
20 | return {};
|
21 | }
|
22 | createBiquadFilter() {
|
23 | return {};
|
24 | }
|
25 | createBuffer(_numberOfChannels, _length, _sampleRate) {
|
26 | return {};
|
27 | }
|
28 | createChannelMerger(_numberOfInputs) {
|
29 | return {};
|
30 | }
|
31 | createChannelSplitter(_numberOfOutputs) {
|
32 | return {};
|
33 | }
|
34 | createConstantSource() {
|
35 | return {};
|
36 | }
|
37 | createConvolver() {
|
38 | return {};
|
39 | }
|
40 | createDelay(_maxDelayTime) {
|
41 | return {};
|
42 | }
|
43 | createDynamicsCompressor() {
|
44 | return {};
|
45 | }
|
46 | createGain() {
|
47 | return {};
|
48 | }
|
49 | createIIRFilter(_feedForward, _feedback) {
|
50 | return {};
|
51 | }
|
52 | createPanner() {
|
53 | return {};
|
54 | }
|
55 | createPeriodicWave(_real, _imag, _constraints) {
|
56 | return {};
|
57 | }
|
58 | createStereoPanner() {
|
59 | return {};
|
60 | }
|
61 | createWaveShaper() {
|
62 | return {};
|
63 | }
|
64 | createMediaStreamSource(_stream) {
|
65 | return {};
|
66 | }
|
67 | createMediaElementSource(_element) {
|
68 | return {};
|
69 | }
|
70 | createMediaStreamDestination() {
|
71 | return {};
|
72 | }
|
73 | decodeAudioData(_audioData) {
|
74 | return Promise.resolve({});
|
75 | }
|
76 |
|
77 |
|
78 |
|
79 | createAudioWorkletNode(_name, _options) {
|
80 | return {};
|
81 | }
|
82 | get rawContext() {
|
83 | return {};
|
84 | }
|
85 | addAudioWorkletModule(_url) {
|
86 | return __awaiter(this, void 0, void 0, function* () {
|
87 | return Promise.resolve();
|
88 | });
|
89 | }
|
90 | resume() {
|
91 | return Promise.resolve();
|
92 | }
|
93 | setTimeout(_fn, _timeout) {
|
94 | return 0;
|
95 | }
|
96 | clearTimeout(_id) {
|
97 | return this;
|
98 | }
|
99 | setInterval(_fn, _interval) {
|
100 | return 0;
|
101 | }
|
102 | clearInterval(_id) {
|
103 | return this;
|
104 | }
|
105 | getConstant(_val) {
|
106 | return {};
|
107 | }
|
108 | get currentTime() {
|
109 | return 0;
|
110 | }
|
111 | get state() {
|
112 | return {};
|
113 | }
|
114 | get sampleRate() {
|
115 | return 0;
|
116 | }
|
117 | get listener() {
|
118 | return {};
|
119 | }
|
120 | get transport() {
|
121 | return {};
|
122 | }
|
123 | get draw() {
|
124 | return {};
|
125 | }
|
126 | set draw(_d) { }
|
127 | get destination() {
|
128 | return {};
|
129 | }
|
130 | set destination(_d) { }
|
131 | now() {
|
132 | return 0;
|
133 | }
|
134 | immediate() {
|
135 | return 0;
|
136 | }
|
137 | }
|
138 |
|
\ | No newline at end of file |