Added alsa code to main.c