GameAudio manager shape

three.js and WebGL · Sound you can see · MIT

What it does

A 25-line Web Audio manager: unlock on a gesture, load and decode buffers by id, play through named gain groups (master, sfx, ui, ambience, voice, music). A shape to copy, shown in the audio reference page.

Get it

const audio = new GameAudio(); await audio.unlock(); await audio.load('hit', '/audio/hit.mp3'); audio.play('hit', 'sfx', 0.8);

Source on GitHub
Needs (the whole pack)

Nothing to read the skills. To run what they build: Node and npm, Python 3 for the helper scripts, and Chromium through Playwright for the inspector and tests. Optional and paid: Tripo, Gemini and ElevenLabs keys for the three generator skills.

License

MIT

License notes are on the pack's page

From

Three.js Game Skills

Everything from Three.js Game Skills in the gallery

Back to the Asset Library