mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
wav streaming fix
This commit is contained in:
parent
603546f642
commit
011bdd8397
2 changed files with 38 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue