TESTING mp3Stream.availableForWrite()
This commit is contained in:
parent
a8837a4598
commit
63eb980c32
@ -212,12 +212,15 @@ bool audioLoop() {
|
|||||||
board.setMute(audioMute);
|
board.setMute(audioMute);
|
||||||
stateBufferUpdateRequest();
|
stateBufferUpdateRequest();
|
||||||
}
|
}
|
||||||
if (mp3Copier.copy() > 0) {
|
|
||||||
|
// TODO check snap too
|
||||||
|
if (mp3Copier.copy() > 0 || mp3Stream.availableForWrite() > 0) {
|
||||||
copyErrors = 0;
|
copyErrors = 0;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (running) {
|
if (running) {
|
||||||
copyErrors++;
|
copyErrors = 100;
|
||||||
if (copyErrors < 100) {
|
if (copyErrors < 100) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user