gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
ALSA::ChannelCaptureElement Class Reference

#include <MixerElement.H>

Inheritance diagram for ALSA::ChannelCaptureElement:
[legend]
Collaboration diagram for ALSA::ChannelCaptureElement:
[legend]

Public Member Functions

 ChannelCaptureElement (snd_mixer_selem_channel_id_t ch)
 
virtual ~ChannelCaptureElement ()
 
int getLevels (snd_mixer_elem_t *elem)
 
int getSwitch (snd_mixer_elem_t *elem)
 
- Public Member Functions inherited from ALSA::ChannelElement
 ChannelElement (snd_mixer_selem_channel_id_t ch)
 
virtual ~ChannelElement ()
 
double toDB (long v) const
 
long fromDB (double d) const
 
void outputLevel (std::ostream &os)
 
void outputSwitch (std::ostream &os)
 
void outputLevelAndSwitch (std::ostream &os)
 

Additional Inherited Members

- Public Attributes inherited from ALSA::ChannelElement
long vol
 If the channel has a volume, this holds its state. More...
 
double dB
 If the channel has a volume, this holds its state in dB. More...
 
int sw
 If the channel has a switch, this holds its state. More...
 
snd_mixer_selem_channel_id_t channel
 
- Protected Attributes inherited from ALSA::ChannelElement
long volDB
 If the channel has a volume, this holds its state in 100*dB. More...
 

Detailed Description

Class to manage a capture channel volumes

Definition at line 103 of file MixerElement.H.

Constructor & Destructor Documentation

◆ ChannelCaptureElement()

ALSA::ChannelCaptureElement::ChannelCaptureElement ( snd_mixer_selem_channel_id_t  ch)
inline

Definition at line 105 of file MixerElement.H.

◆ ~ChannelCaptureElement()

virtual ALSA::ChannelCaptureElement::~ChannelCaptureElement ( )
inlinevirtual

Definition at line 106 of file MixerElement.H.

Member Function Documentation

◆ getLevels()

int ALSA::ChannelCaptureElement::getLevels ( snd_mixer_elem_t *  elem)
inline

Get the capture levels for this channel

Parameters
elemthe mixer element to get capture levels for
Returns
<0 on error

Definition at line 112 of file MixerElement.H.

Here is the call graph for this function:

◆ getSwitch()

int ALSA::ChannelCaptureElement::getSwitch ( snd_mixer_elem_t *  elem)
inline

Get the switch state for this channel

Parameters
elemthe mixer element to get switch state for
Returns
<0 on error

Definition at line 126 of file MixerElement.H.

Here is the call graph for this function:

The documentation for this class was generated from the following file:
gtkIOStream: ALSA::ChannelCaptureElement Class Reference
GTK+ IOStream  Beta