[alsa-devel] PCM device volume
Hellbard at seznam.cz
Wed Oct 7 09:48:54 CEST 2009
I am new with alsa. I am developing application that will have audio output on linux systems via alsa. I found many hints when I was trying to play some audio. I used
snd_pcm_open(&pcm_handle, pcm_name, SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK);
to open and set my PCM device for writting audio.
But I have got lost when I tried to change my audio volume. I suppose that I need to get some mixer
int snd_mixer_open (snd_mixer_t **mixer, int mode)
but I could not find how to code that the new mixer will control the PCM device. Pleas is there any tutorial how to do it? Or can somebody show me any code snippet? I have tried to find any similar topic, but without success.
Thanks for any advice
More information about the Alsa-devel