Persistent mod sound sources: start, update, stop with generations, click-free voices, loop sections, voice budget and virtual loops (API 20)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -106,6 +106,14 @@ What real mods need next, in the order modpacks and servers need it:
|
||||
|
||||
## Changelog
|
||||
|
||||
- API level 20 (AirDef fork, capability `render`): `sound-sources` starts, updates and stops persistent sound
|
||||
sources (pose, velocity, gain, pitch, looping, priority, attack, release, optional bounded Doppler, loop overlap)
|
||||
over the game's own mixer, and `sound-source-generation` tells the mod when the game released them all (world
|
||||
closed, film begun or ended, sounds reloaded) so it starts them again. A stale generation is ignored. Gain, pan and
|
||||
pitch are smoothed across each audio buffer and the position is carried along the velocity between calls, so a
|
||||
source updated once a tick has no steps; 24 sources hold a voice (loudest and nearest times priority), the rest of
|
||||
the loops stay virtual; a stop is never lost to a limit; the sources of a mod that stops or is reloaded are
|
||||
released. A film mixes them on its own clock like `play-sound`.
|
||||
- API level 19 (AirDef fork, capability `command`): `set-tree` gives a client mod's command a tree of subcommands
|
||||
(literals), typed words (`word`, `choice`, `integer` and `number` with bounds, `names` from a list, `block-pos`),
|
||||
optional branches (`runs`), the rest of the line (`text`) and `key=value` options; `set-suggestions` sets the list a
|
||||
|
||||
Reference in New Issue
Block a user