We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 98c58d4 + 4d973cd commit 9a704fbCopy full SHA for 9a704fb
1 file changed
Source/Processors/FileReader/FileReader.cpp
@@ -168,7 +168,10 @@ bool FileReader::enable()
168
bufferA.malloc(currentNumChannels * m_bufferSize * BUFFER_WINDOW_CACHE_SIZE);
169
bufferB.malloc(currentNumChannels * m_bufferSize * BUFFER_WINDOW_CACHE_SIZE);
170
171
- readAndFillBufferCache(bufferA); // pre-fill the front buffer with a blocking read
+ // reset stream to beginning
172
+ input->seekTo (startSample);
173
+ currentSample = startSample;
174
+ readAndFillBufferCache(bufferA); // pre-fill the front buffer with a blocking read
175
176
// set the backbuffer so that on the next call to process() we start with bufferA and buffer
177
// cache window id = 0
0 commit comments