ensureAudio
@zylem/game-lib / audio / ensureAudio
Function: ensureAudio()
ensureAudio():
Promise<__module>
Defined in: packages/game-lib/src/lib/audio/tone-loader.ts:28
Loads Tone.js and resumes the AudioContext. Call from a click or key handler the first time; later calls are cheap.
Returns
Promise<__module>