Made several improvements to the audio engine.