1 |
|
2 |
|
3 |
|
4 | export declare function createAudioContext(options?: AudioContextOptions): AudioContext;
|
5 |
|
6 |
|
7 |
|
8 | export declare function createOfflineAudioContext(channels: number, length: number, sampleRate: number): OfflineAudioContext;
|
9 |
|
10 |
|
11 |
|
12 | export type AnyAudioContext = AudioContext | OfflineAudioContext;
|
13 |
|
14 |
|
15 |
|
16 | interface ToneWindow extends Window {
|
17 | TONE_SILENCE_LOGGING?: boolean;
|
18 | TONE_DEBUG_CLASS?: string;
|
19 | BaseAudioContext: any;
|
20 | AudioWorkletNode: any;
|
21 | }
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | export declare const theWindow: ToneWindow | null;
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | export declare const hasAudioContext: boolean | null;
|
32 | export declare function createAudioWorkletNode(context: AnyAudioContext, name: string, options?: Partial<AudioWorkletNodeOptions>): AudioWorkletNode;
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 | export { isSupported as supported } from "standardized-audio-context";
|