bugfix for sound looping when incorrect sampleCount extracted