Build an In-Game Soundboard
/sim/audio lets ordinary Linux userland play through KSA’s FMOD mixer. Upload a clip, name the
channel, then change it while it is playing.
Upload and play
Section titled “Upload and play”cat launch.ogg > /sim/audio/file/launch.oggecho 'launch.ogg id=launch vol=0.7 group=sfx' > /sim/audio/playcurl -T launch.ogg http://127.0.0.1:4242/v1/audio/file/launch.oggcurl -X POST --data 'launch.ogg id=launch vol=0.7 group=sfx' \ http://127.0.0.1:4242/v1/fs/audio/playMix it live
Section titled “Mix it live”echo 'launch vol=0.25 pitch=0.9' > /sim/audio/setcat /sim/audio/statusecho launch > /sim/audio/stopUse loop=1 for music, start= and end= for a range in milliseconds, and pan= for placement.
group=sfx|music|ui chooses which KSA volume slider governs the channel.
The the90s example turns this into a
proper terminal soundboard, naturally styled like software recovered from a mall kiosk.
Audio referenceFormats, upload routes, play/set/stop grammar, events, limits, and errors.