Removed busy wait and sleep lenght of sound file