Reworked audio to run in its own thread.