Skip to content

Commit

Permalink
Fixed issue #67
Browse files Browse the repository at this point in the history
  • Loading branch information
Polyacetone committed Nov 21, 2024
1 parent 86c3581 commit 2793429
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wave_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ std::vector<uint8_t> WaveReader::ReadData(unsigned bytesToRead, bool headerBytes
}
}
}
if (bytes == 0) {
data.resize(bytesRead);
break;
}
}

if (headerBytes) {
Expand Down

0 comments on commit 2793429

Please sign in to comment.