Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

CAudioMixerElement Class Reference

Audio mixer widget. More...

#include <AudioMixerControlLinux.h>

List of all members.

Public Slots

Signals

Public Member Functions


Detailed Description

Audio mixer widget.

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).


Constructor & Destructor Documentation

CAudioMixerElement::CAudioMixerElement snd_mixer_t *  mixer,
snd_mixer_elem_t *  elem,
int  row,
CAudioControlScrollWidget parent
 

qDebug("creating slider_layout");

TODO: group radio buttons

CAudioMixerElement::~CAudioMixerElement  ) 
 


Member Function Documentation

int CAudioMixerElement::GetCaptureGroup  )  const
 

void CAudioMixerElement::GetConfiguration QDomNode &  dom_node  )  const
 

Get current settings of element.

Parameters:
dom_doc An XML document object
This function appends the current settings of this mixer element to the given XML node if it doesn't exist already.

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.

const QString& CAudioMixerElement::GetName  )  const [inline]
 

void CAudioMixerElement::SetConfiguration const QDomNode &  dom_node  )  const
 

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);

void CAudioMixerElement::UpdateFromDevice  )  [slot]
 

Read settings from device, update widget(s).

This function will update the widget, with the value queried from the hardware.

void CAudioMixerElement::UserClickedSomething  )  [signal]
 


The documentation for this class was generated from the following files:
Generated on Wed Dec 13 23:38:47 2006 for CamStream by doxygen 1.3.7