add function to play wav through alsa api