import TimedEvent from './timedEvent'; /** * TimedAudio wraps an HTMLAudioElement and maps playback to the TimedEvent * lifecycle. It synchronizes elapsedTime with the element's playback position * and forwards start/pause/resume/cancel calls to the audio element. * * constructor(duration=0, url='', gain=1.0) * - duration: number in ms (0 unknown, -1 loop) * - url: source URL for the audio element * - gain: initial volume (0.0 - 1.0) */ export default class TimedAudio extends TimedEvent { url: string; gain: number; muted: boolean; element: HTMLAudioElement | null; constructor(duration?: number, url?: string, gain?: number); initElListeners(): void; start(): void; pause(): void; resume(): void; cancel(): void; setVolume(gain?: number): void; protected tick(): void; } //# sourceMappingURL=timedAudio.d.ts.map