@bitcobblers/wod-wiki-library
Version:
A specialized markdown-like workout syntax editor and runtime for defining workouts
39 lines (38 loc) • 852 B
TypeScript
/**
* Service for managing workout sounds using Web Audio API
*/
export declare class SoundService {
private static instance;
private enabled;
private audioContext;
private soundConfigs;
private constructor();
/**
* Get the singleton instance of SoundService
*/
static getInstance(): SoundService;
/**
* Initialize the Audio Context
*/
private initAudioContext;
/**
* Enable or disable sounds
*/
setEnabled(enabled: boolean): void;
/**
* Get current enabled state
*/
isEnabled(): boolean;
/**
* Generate a beep sound with the Web Audio API
*/
private generateBeep;
/**
* Play a sequence of beeps based on pattern
*/
private playBeepPattern;
/**
* Play a sound by type
*/
play(soundType: string): void;
}