//linux下ALSA播放声音的源程序 //@note 编译的时候,使用到了asound 的lib 所以要添加-lasoud库 #include /* Use the newer ALSA API */ #define ALSA_PCM_NEW_HW_PARAMS_API #include int main() { long loops; int rc; int size; snd_pcm_t *handle; snd_pcm_hw_params_t *params; unsigned int val; i