We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fc3876 commit c800c1cCopy full SHA for c800c1c
1 file changed
Source/Processors/FileReader/FileReader.cpp
@@ -641,6 +641,10 @@ void FileReader::readAndFillBufferCache(HeapBlock<int16> &cacheBuffer)
641
// should only loop if reached end of file and resuming from start
642
while (samplesRead < samplesNeeded)
643
{
644
+
645
+ if (samplesRead < 0)
646
+ return;
647
648
int samplesToRead = samplesNeeded - samplesRead;
649
650
// if reached end of file stream
0 commit comments