sounts
Version:
A tiny helper library for working with the web audio API written in TypeScript.
8 lines (7 loc) • 311 B
TypeScript
/**
* Creates a new audio context and resumes it once the user interacts with the window (via click or keypress).
*
* @param options The options passed to the audio context.
* @returns A new AudioContext instance.
*/
export declare function createAudioContext(options?: AudioContextOptions): AudioContext;