Fix bug with sound

Maybe I'm missing something, but this seems to repair the sound API for me.