TESTING mp3Stream.availableForWrite()
This commit is contained in:
parent
a8837a4598
commit
63eb980c32
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user