wav streaming fix

This commit is contained in:
MihailRis
2024-03-01 19:03:27 +03:00
parent 603546f642
commit 011bdd8397
2 changed files with 38 additions and 8 deletions
+3
View File
@@ -27,6 +27,9 @@ size_t PCMStream::readFully(char* buffer, size_t bufferSize, bool loop) {
do {
do {
bytes = read(buffer, bufferSize);
if (bytes < 0) {
return size;
}
size += bytes;
bufferSize -= bytes;
buffer += bytes;