asciitorium
Version:
an ASCII CLUI framework
11 lines (10 loc) • 382 B
TypeScript
export declare class SoundManager {
private static audioCache;
private static playingAudio;
private static enabled;
static setEnabled(enabled: boolean): void;
static isEnabled(): boolean;
static playSound(soundPath: string, loop?: boolean): Promise<void>;
static fadeToStop(soundPath: string, durationMs?: number): void;
static clearCache(): void;
}