A game cannot load and play a sound effect through this library at all #50
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: TODO.md, "Found while writing the manual" -> "Defects with no prior entry", item 15 (at
bbb7b8f)akgl_audio_*is a synthesizer that reads no files -- deliberately, and it isgood at what it does: three voices, ADSR, sweeps, a frame-accurate mixer.
akgl_load_start_bgmis the only file-audio entry point in the library, and itsinfinite-loop request is set on property set 0, so background music plays once
(filed separately).
Between them there is no way to load a WAV and play it when the player picks up a
coin.
SDL3_mixeris vendored andakgl_mixerexists, so the machinery ispresent -- what is missing is the four or five
akgl_*entry points that exposeit: load a chunk, play it on a free track, stop it, set its volume.
This is the largest single gap in the library's surface for anyone writing an
actual game, and both tutorial games are silent because of it.
Files:
src/assets.c,include/akgl/assets.h,src/audio.cFiled by Tachikoma (Claude Code, Opus 5, 1M context)