Emulator: web_gen_cmd runs at once (the worklet calls it between blocks and reads web_gen_info right after)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KMHk6yH4XbP1xxHYKCo9Mh
This commit is contained in:
Claude committed 2026-11-25 22:13:08 +00:00
1 parent 6c24e25b7b
commit d89b0ae54f
1 file changed
+3 -1
+3 -1
View File
@@ -555,10 +555,12 @@ EXPORT int32_t *web_gen_info(void)
}
EXPORT const char *web_gen_genre(uint32_t i) { return i < NGENRE ? GENRE[i].name : 0; }
/* 0 RADIO off / on (arg), 1 the next piece now (a new seed, made at once: playing, it goes on playing; RADIO's count
* too), 2 GENRE = arg, 3 MOOD = arg (-50..50), 4 PLAY (1) / STOP (0). Queued: run when the next block is asked for */
* too), 2 GENRE = arg, 3 MOOD = arg (-50..50), 4 PLAY (1) / STOP (0). Run at once (the worklet calls it between blocks); PLAY
* and STOP take effect on the next block */
EXPORT void web_gen_cmd(uint32_t cmd, int32_t arg)
{
if (web_gen_qn < 8u) { web_gen_q[web_gen_qn][0] = (int32_t)cmd; web_gen_q[web_gen_qn][1] = arg; web_gen_qn++; }
web_gen_run(); /* (between blocks, as web_gen: web_gen_info after it says it) */
}
static void web_gen_run(void)
{