Fixed issues in sound.py.