Removed the BSD queue.h in favor of a custom, generic queue implementation that significantly cleans up the audio handling code.