For sampling instruments, DFD/disk streaming is indispensable since the samples are large in size to read entirely into memory.
Here the problem comes. Sometimes in offline bouncing/exporting, the hosts(e.g. cubase, I am debugging in this right now) are rendering super fast, therefore the disk reading thread is not finished reading a portion of the sample when that very portion of the sample is required to be played. Thus ending in crackling voices.
In real time playing and real time bouncing/exporting, this rarely happens (of course).
I currently have no idea how to deal with this issue, any advice could be helpful.
(Though this question is not directly related to juce but this forum has many gurus in audio developing.)
Thanks in advance.