UNPKG

remotion

Version:

Make videos programmatically

14 lines (13 loc) 526 B
import type { LogLevel } from '../log'; export type RemotionAudioContextState = AudioContextState | 'running-to-suspended' | 'suspended-to-running'; export declare const useSingletonAudioContext: ({ logLevel, latencyHint, audioEnabled, }: { logLevel: LogLevel; latencyHint: AudioContextLatencyCategory; audioEnabled: boolean; }) => { audioContext: AudioContext; gainNode: GainNode; getState: () => RemotionAudioContextState; resume: () => Promise<void>; suspend: () => Promise<void>; } | null;