Tweaked audio engine and fixed some integer and float conversion bugs.