snd_pcm_open 函数分析一

snd_pcm_open函数分析一

  • 1. 参数和返回值
  • 2. 调用流程

1. 参数和返回值

int snd_pcm_open(snd_pcm_t **pcmp, const char *name, snd_pcm_stream_t stream, int mode)

pcmp 打开的pcm句柄
name 要打开的pcm设备名字,默认default,或者从asound.conf或者asoundrc里面选择所要打开的设备
stream SND_PCM_STREAM_PLAYB

你可能感兴趣的:(alsa)