AudioRenderer
Produces audio for an AudioDevice. klyph's mixer implements it.
render runs on SDL's audio thread, not the thread that opened the device. It must not allocate, block or wait on the main thread: a late buffer is heard as a click.