implemented adam's tiny alsa