Lines Matching refs:mixer
98 static int initMixer (snd_mixer_t **mixer, const char *name) in initMixer() argument
102 if ((err = snd_mixer_open(mixer, 0)) < 0) { in initMixer()
107 if ((err = snd_mixer_attach(*mixer, name)) < 0) { in initMixer()
111 if ((err = snd_mixer_attach(*mixer, "hw:00")) < 0) { in initMixer()
115 snd_mixer_close (*mixer); in initMixer()
116 *mixer = NULL; in initMixer()
121 if ((err = snd_mixer_selem_register(*mixer, NULL, NULL)) < 0) { in initMixer()
123 snd_mixer_close (*mixer); in initMixer()
124 *mixer = NULL; in initMixer()
129 if ((err = snd_mixer_load(*mixer)) < 0) { in initMixer()
131 snd_mixer_close (*mixer); in initMixer()
132 *mixer = NULL; in initMixer()