Kicked Out of the Hero's Party — But Now I Use My Software Whispering Skill to Rise in This World (fork)
README.md
Audio
The sound of Kicked Out of the Hero's Party: crossfaded music cues, looping ambience beds, one-shot sfx that duck the music, and the SETTINGS volumes. Contract in design/spec.md.
Audio.music(cue?, fade?)—title dungeon tension guild whisper battle triumph ending, or nil to stop. Three music decks, equal-power crossfade (default 1.5 s). Each track loops by crossfading into itself 5 s before its measured musical end, so generated endings/fades never leave a gap.Audio.ambience(id?)—dungeon guild forest arena city throne, or nil. Three decks, 2 s crossfade, 4 s self-crossfade loop.Audio.sfx(id, volume?)—blip advance click hover whisper_on whisper_off code_read code_edit code_patch glitch error coins level_up rank_up slam laugh door sword chapter. Per-id level, rate limit and pitch jitter; whisper/reward/drama sfx duck music (attack 80 ms, release 0.7 s) and ambience slightly.Audio.setMasterVolume(v),setMusicVolume(v),setSfxVolume(v),setVolume(bus, v)(0..1),getVolumes()— drive the engine mixer (master, channelsmusic,sfx,ambiencefollows sfx), saved per player in runtime_datakohp/audio.Audio.stopAll(fade?),Audio.debugState()(decks, gains, duck, settings) for tests.
Clips live beside it in music/, ambience/ and sfx/ (all generated with audio_gen; sfx/blip_tick is the single tick cut from sfx/blip). Per-clip levels were set from measured RMS so every cue sits at the same loudness. Everything is a no-op outside play; the voices spawn under a runtime AudioRig entity.