Rewritten C implementation of the ALSA thread.