TESTING mp3Stream.availableForWrite()

This commit is contained in:
Patrick Haßel 2025-06-06 14:42:52 +02:00
parent a8837a4598
commit 63eb980c32

View File

@ -212,12 +212,15 @@ bool audioLoop() {
board.setMute(audioMute);
stateBufferUpdateRequest();
}
if (mp3Copier.copy() > 0) {
// TODO check snap too
if (mp3Copier.copy() > 0 || mp3Stream.availableForWrite() > 0) {
copyErrors = 0;
return true;
}
if (running) {
copyErrors++;
copyErrors = 100;
if (copyErrors < 100) {
return true;
}