After running for several minutes with audio present, BUTT can continue to display “Connected” while audio capture stops. In an instrumented build, the PortAudio stream became inactive and its callback counter stopped advancing. The public stream then stopped delivering audio; restarting the capture restored it.
A test-only fault injection aborted the active PortAudio capture stream while the Icecast session was connected. With the attached patch, BUTT reopened the selected capture stream without reconnecting Icecast, and audio continued to reach listeners for at least 60 seconds after recovery.
The patch detects a stopped or inactive capture stream and retries reopening the selected PortAudio input, with a retry interval. It leaves Icecast connection handling unchanged.
The modified PortAudio and timer translation units compile with MinGW. A full build from the official source archive stopped in the unchanged FLTK/fl_callbacks.cpp due to a local MinGW header error, so a clean full-build result is not yet available.
The issue was observed in a locally modified 1.47.0 build. I have not established whether the unmodified release reproduces it.