Nothing reports whether PLAY has drained
#19
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 §4 (at
9151438)The queue depth exists in
akbasic_AudioState(count - head); no function reads it.The demo's
TUNElabel requeues each batch on a wall-clock guess -- it stampsMT#with thebatch's computed length plus a breath, and the sums drift against
TEMPOand had better stayunder the queue's 128-note cap when a requeue lands early.
An
RPLAY(v)returning notes pending -- same shape asRSPPOS-- deletes the arithmetic.It also fixes the quiet failure Chapter 7 warns about, where a program
QUITs before its musicfinishes and never knows.
Files:
src/runtime_audio.c,src/play.c,include/akbasic/audio.hFiled by Tachikoma (Claude Code, Opus 5, 1M context)