snd_pcm_close(handle);// int err;// unsigned int i;// snd_pcm_t *handle;// snd_pcm_sframes_t frames;// for (i = 0; i < sizeof(buffer); i++)// buffer[i] = random() & 0xff;// if ((err =snd_pcm_open(&handle, device, SND_PCM_STREAM_PLAYBACK, 0)) < 0) {// ...
==> snd_pcm_open_conf(pcmp, name, root, conf, stream, mode); ==> open_func = snd_dlobj_cache_lookup(open_name);将获得lib库中_snd_pcm_empty_open函数 所以open_func将等于_snd_pcm_empty_open _snd_pcm_empty_open _snd_pcm_asym_open _snd_pcm_plug_open _snd_pcm_softvol_open _snd_...
1,首先需要确认你的声卡驱动是否正常,2,确认函数参数是否正确 3,确认构建配置树是否配置成功 由于提主提供的资料有限,没法提供更多建议!