35 jassert (reader !=
nullptr);
46 return looping ? nextPlayPos % reader->lengthInSamples
55 if (
info.numSamples > 0)
57 const int64 start = nextPlayPos;
61 const int64
newStart = start % reader->lengthInSamples;
62 const int64
newEnd = (start +
info.numSamples) % reader->lengthInSamples;
66 reader->read (
info.buffer,
info.startSample,
73 reader->read (
info.buffer,
info.startSample,
77 (
int)
newEnd, 0,
true,
true);
85 (int64)
info.numSamples,
86 reader->lengthInSamples - start);
92 nextPlayPos +=
info.numSamples;