for(ulong i = 0; i < sampleLength; i ++) {
// Find next sampled text position
while ((posOfSuccEndmarker - x) % samplerate != 0
for(ulong i = 0; i < sampleLength; i ++) {
// Find next sampled text position
while ((posOfSuccEndmarker - x) % samplerate != 0