最終更新:2024-11-30 (土) 05:52:37 (8d)
snd_pcm_open
Top / snd_pcm_open
Opens a PCM.
https://www.alsa-project.org/alsa-doc/alsa-lib/group___p_c_m.html#ga8340c7dc0ac37f37afe5e7c21d6c528b
int snd_pcm_open(snd_pcm_t ** pcmp, const char * name, snd_pcm_stream_t stream, int mode )
パラメータ
snd_pcm_t pcmp Returned PCM handle char* name ASCII identifier of the PCM handle snd_pcm_stream_t stream Wanted stream int mode Open mode (see SND_PCM_NONBLOCK, SND_PCM_ASYNC)
snd_pcm_stream_t
SND_PCM_STREAM_PLAYBACK 0 SND_PCM_STREAM_CAPTURE, SND_PCM_STREAM_LAST? 1
mode
SND_PCM_NONBLOCK 0x00000001 SND_PCM_ASYNC 0x00000002