Setting gain/volume of PCM capture or playback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am new to programming with ALSA, and I would like to find out how to
change the gain (capture or playback) for my PCM device in my C code.

I am aware I am supposed to use the mixer API, possibly functions like:
snd_mixer_selem_set_playback_volume()

but I don't know how this function can be connected to my PCM
structure/device.

Please whoever answers this should kindly attach some sample code, or a link
to sample code because I can't find any on line.

Thanks a lot.

Erumusele
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux