Fix sound file process loop and space decoding