A boing: a vine climbed
A click now — or at atMs on the page's clock (performance.now())
when that is still to come, scheduled on the audio clock so a row of
clicks keeps perfect time. Returns when it will be heard on the same
clock, the device's output delay included — or null when nothing can
sound. Call ready first for clicks that must keep time
A little fanfare: freed from a trap, the finish
Sound a note, held for durationMs (default: under a second), at a loudness from 0 to 1 (default: 0.5); returns a function that stops it early
A tiny pop: a catch, a hop, a card turned
Dice rattling in a cup
A short rising tone
A splash: a wrong pad, a miss, a whirlpool
A low thud: a fox hole, a trap
A rush of water or air: a whirlpool, a slide
A short falling tone
Start the sound from a tap and wait until it runs: true once clicks can be scheduled on time, false when sound is off or the browser holds it back
Whether the browser can make sound
What
useGameSoundsreturns.