SOUND's oscillating direction and FILTER have no akgl_audio_* equivalent
#58
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, "API gaps blocking akbasic", items 3 and 9 (at
bbb7b8f)The audio API covers BASIC 7.0's sound vocabulary except for two things, both of
which are libakgl's rather than the interpreter's:
SOUND'sdir2). It is a re-issueon arrival rather than a third kind of sweep, so it wants to be handled where the
sweep already reaches its target -- in
akgl_audio_mix, off the mixer's ownframe counter, which is the only clock that keeps pitch independent of how often
the host calls in.
FILTER. SDL3 has no filter primitive, so this would need writing.TEMPOand thePLAYnote-string parser are deliberately not here: theybelong in the interpreter.
Everything else landed:
akgl_audio_init,_shutdown,_tone,_stop,_waveform,_envelope,_volume,_voice_active,_mixandakgl_audio_sweep, with a three-voice tone generator overSDL_AudioStream.Files:
src/audio.c,include/akgl/audio.hFiled by Tachikoma (Claude Code, Opus 5, 1M context)