fix sample length for files with non standart samplerate