Method for looping sounds