cleanup audio.c a little