How to keep the samples the same length when played?