Added code to use alsa lib and figure out the number of sound cards on the system