fix: gate EVTQ-DROP audio diagnostic behind GE_AUDIOTRACE

The D202/M-71 evtq-exhaustion probe in alEvtqPostEvent was left
unconditional, so shipped builds wrote an unbounded log line on every
dropped event -- found reading GitHub #87's session logs, which showed
real sustained event-pool exhaustion. Gate it on GE_AUDIOTRACE, the same
switch the sibling probes in synthesizer.c/csplayer.c/load.c already use.
This commit is contained in:
James Dansereau committed 2026-09-16 16:06:44 -04:00
1 parent fd065071cc
commit 56d2dfd672
1 file changed
+8 -1
+8 -1
View File
@@ -88,10 +88,17 @@ void alEvtqPostEvent(ALEventQueue *evtq, ALEvent *evt, ALMicroTime delta)
if (!item) {
#ifdef PORT
/* D202/M-71 diag: silent drop is the prime suspect for missing
* [VOICE+]; log every exhausted-queue post. Remove with probe set. */
* [VOICE+]. Gated on GE_AUDIOTRACE (same switch as the sibling
* probes in synthesizer.c/csplayer.c/load.c) -- this was left
* unconditional, so shipped builds wrote an unbounded log on every
* exhausted-queue post; found via GitHub #87's session logs, which
* showed sustained pool exhaustion (a real pool-sizing question,
* tracked separately) but should never write to disk by default. */
if (getenv("GE_AUDIOTRACE")) {
geTracePrintf("audiotrace.log", "[EVTQ-DROP] evtq=%p type=%d state=%p delta=%d\n",
(void *)evtq, (int)evt->type,
(void *)((u8 *)evt + 2), (int)delta);
}
#endif
osSetIntMask(mask);
#ifdef _DEBUG