Skip to content

apps/client/audio ​

The game's sounds and the radio's stations (Sound and the radio). The sound board (?sound-board, the main menu's Galleries → Sounds and the radio) shows what each plays and where a file goes.

  • sounds.json: every sound event and how it is mixed (its bus, volume, pitch range, loop, voices, range, the placeholder it plays without a file).
  • sfx/: the files that replace the placeholders, found by the event's id, its dots as folders: weapon.pistol.shot → sfx/weapon/pistol/shot.ogg, or shot.1.ogg, shot.2.ogg, … for variations played at random. Any of ogg, opus, webm, mp3, m4a, aac, wav, flac. A file that matches no sound fails npm test (src/audio/bank.test.ts).
  • radio/<nn>-<id>/: a station each: a station.json (name, colour, tagline, shuffle, titles, and urls or stream instead of files), its audio files, a logo.png. The five sample stations' items are placeholders (npm run audio:placeholders wrote them, and writes only what is missing): put real files in their place, same names or new ones.