mirror of
https://github.com/db9979/uconsole_asw_game.git
synced 2026-12-06 12:54:18 +01:00
pygame's endsound_callback reads the channel queue without the GIL; a Channel.queue() landing in that window leaves the channel idle with a sound queued forever, and the buffered sonar pump waited for that queue slot for good (silence until audio was toggled off and on). The pump now replays such a stranded sound after seeing it on two iterations, and play_sonar restarts a dead sonar worker. audio_debug.log reports both. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JnHejbUDyia6RJESsBKnhm