Skip to content

Commit

Permalink
Merge pull request #199 from Polyacetone/master
Browse files Browse the repository at this point in the history
Fixed issue #67
  • Loading branch information
markondej authored Nov 21, 2024
2 parents 86c3581 + 2793429 commit 00c1337
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 00c1337

Please sign in to comment.