ludic.audio: one call into the runtime's playback - aud_play holds the only Audio.play_at (the one float -> Q16.16 crossing), and aud_emit and aud_ui both go through it; aud_ui had its own play_at since the interface channel, which the game's guard (one play, one play_at) could not hold. README and the module's words follow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-30 03:24:36 +03:00
parent ad7cbd8e2e
commit 5d9f9cf284
3 changed files with 16 additions and 13 deletions

View file

@ -1,5 +1,5 @@
# ludic.audio - Audio.play is the INTERFACE; everything that happens in the world goes through
# aud_emit with a gain and a pan from where it is. Nothing outside this module names Audio.*.
# ludic.audio - aud_ui is the INTERFACE (flat, on its channel); everything that happens in the world goes
# through aud_emit with a gain and a pan from where it is. Nothing outside this module names Audio.*.
module ludic_audio uses
numbers float
import "ports.ludic"