Sketchy (and broken) implementation of the sound server.