Skip to content

Commit 3a5177d

Browse files
committed
DecoderFromStreaming
1 parent 39e1643 commit 3a5177d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/AudioCodecs/DecoderFromStreaming.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ class DecoderFromStreaming : public AudioDecoder {
4949
TRACED();
5050
size_t result = queue.write((uint8_t *)data, byteCount);
5151
// trigger processing - we leave byteCount in the buffer
52-
while(queue.available()>byteCount){
53-
p_dec->copy();
54-
delay(1);
55-
}
52+
// while(queue.available()>byteCount){
53+
// p_dec->copy();
54+
// delay(1);
55+
// }
56+
while(p_dec->copy());
57+
5658
return result;
5759
}
5860

0 commit comments

Comments
 (0)