Re: Volume control range

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

 



Paul D. DeRocco wrote:
> how does one programmatically find the range of a control?

	snd_ctl_elem_info_t *info;
	long min, max;

	snd_ctl_elem_info_alloca(&info);
	snd_ctl_elem_info_set_interface(value, SND_CTL_ELEM_IFACE_MIXER);
	snd_ctl_elem_info_set_name(value, "Master Playback Volume");
	CHECK(snd_ctl_elem_info(ctl, info));
	min = snd_ctl_elem_info_get_min(info);
	max = snd_ctl_elem_info_get_max(info);


Regards,
Clemens

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user




[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux