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

#include <MixerElement.H>

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

Public Member Functions

 ChannelPlaybackElement (snd_mixer_selem_channel_id_t ch)
 
virtual ~ChannelPlaybackElement ()
 
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 playback channel volumes

Definition at line 69 of file MixerElement.H.

Constructor & Destructor Documentation

◆ ChannelPlaybackElement()

ALSA::ChannelPlaybackElement::ChannelPlaybackElement ( snd_mixer_selem_channel_id_t  ch)
inline

Definition at line 71 of file MixerElement.H.

◆ ~ChannelPlaybackElement()

virtual ALSA::ChannelPlaybackElement::~ChannelPlaybackElement ( )
inlinevirtual

Definition at line 73 of file MixerElement.H.

Member Function Documentation

◆ getLevels()

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

Get the playback levels for this channel

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

Definition at line 79 of file MixerElement.H.

Here is the call graph for this function:

◆ getSwitch()

int ALSA::ChannelPlaybackElement::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 93 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::ChannelPlaybackElement Class Reference
GTK+ IOStream  Beta