*参照元 [#n2bee948] #backlinks *説明 [#m2795b5e] -パス: [[alsa-lib-1.0.27.2/src/pcm/pcm.c]] -FIXME: これは何? --説明 **引数 [#q56633ac] -snd_pcm_t **pcmp -- --[[alsa-lib-1.0.27.2/]] --[[alsa-lib-1.0.27.2/snd_pcm_t]] -snd_config_t *root -- --[[alsa-lib-1.0.27.2/]] --[[alsa-lib-1.0.27.2/snd_config_t]] -const char *name -- -snd_pcm_stream_t stream -- --[[alsa-lib-1.0.27.2/]] --[[alsa-lib-1.0.27.2/snd_pcm_stream_t]] -int mode -- -int hop -- **返り値 [#adc69f02] -int -- **参考 [#hd5aef8c] *実装 [#t4c06bce] static int snd_pcm_open_noupdate(snd_pcm_t **pcmp, snd_config_t *root, const char *name, snd_pcm_stream_t stream, int mode, int hop) { int err; snd_config_t *pcm_conf; const char *str; err = snd_config_search_definition(root, "pcm", name, &pcm_conf); if (err < 0) { SNDERR("Unknown PCM %s", name); return err; } - --[[alsa-lib-1.0.27.2/snd_config_search_definition()]] if (snd_config_get_string(pcm_conf, &str) >= 0) err = snd_pcm_open_noupdate(pcmp, root, str, stream, mode, hop + 1); else { snd_config_set_hop(pcm_conf, hop); err = snd_pcm_open_conf(pcmp, name, root, pcm_conf, stream, mode); } - --[[alsa-lib-1.0.27.2/snd_config_get_string()]] - --[[alsa-lib-1.0.27.2/snd_pcm_open_noupdate()]] - --[[alsa-lib-1.0.27.2/snd_config_set_hop()]] - --[[alsa-lib-1.0.27.2/snd_pcm_open_conf()]] snd_config_delete(pcm_conf); return err; - --[[alsa-lib-1.0.27.2/snd_config_delete()]] } *コメント [#qb30c969]