#include <AudioMixerControlLinux.h>
This class is a helper class that shows a control from the mixer (e.g. master volume, PCM, Microphone input, etc). It shows the name (always), slider (optiona), mute (optional) & capture setting (also optional).
|
qDebug("creating slider_layout"); TODO: group radio buttons |
|
|
|
|
|
Get current settings of element.
The XML-format looks something like this: <element> <volume>23 <mute>false <capture>true The exact format differs per type of input. Note: this function returns the settings from the GUI element. For reasons I haven't been able to figure out yet, once the ALSA elements are initialized, I can't query the current values if they are changed outside the program (for example, by alsamixer). So we must hope that any changes we make in the GUI is properly set in the driver. |
|
|
|
Set mixer elements according to data in XML node. qDebug("SC: dom_node = %s, nodename = %s", dom_node.nodeName().ascii(), v.nodeName().ascii()); qDebug("Found slider, i = %d, channel_num = %d", i, channel_num); |
|
Read settings from device, update widget(s). This function will update the widget, with the value queried from the hardware. |
|
|