ALSA编程
ALSA programming
snd_pcm_drain: 断言 `pcm' 失败。可能是什么问题?当我打电话时会发生这种情况:
int Capture(){
if(capture_handle)
return -1;
/* drop any output we might got and stop */
snd_pcm_drain(capture_handle);
/* prepare for use */
snd_pcm_prepare(capture_handle);
return 0;
}
问题是 capture_handle
是 NULL。
您无法耗尽不存在的设备。
snd_pcm_drain: 断言 `pcm' 失败。可能是什么问题?当我打电话时会发生这种情况:
int Capture(){
if(capture_handle)
return -1;
/* drop any output we might got and stop */
snd_pcm_drain(capture_handle);
/* prepare for use */
snd_pcm_prepare(capture_handle);
return 0;
}
问题是 capture_handle
是 NULL。
您无法耗尽不存在的设备。