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

#include <MixerElement.H>

Inheritance diagram for ALSA::ChannelElement:
[legend]

Public Member Functions

 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)
 

Public Attributes

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

long volDB
 If the channel has a volume, this holds its state in 100*dB. More...
 

Detailed Description

Class to manage a channel volumes

Definition at line 28 of file MixerElement.H.

Constructor & Destructor Documentation

◆ ChannelElement()

ALSA::ChannelElement::ChannelElement ( snd_mixer_selem_channel_id_t  ch)
inline

Definition at line 37 of file MixerElement.H.

Here is the caller graph for this function:

◆ ~ChannelElement()

virtual ALSA::ChannelElement::~ChannelElement ( )
inlinevirtual

Definition at line 43 of file MixerElement.H.

Member Function Documentation

◆ fromDB()

long ALSA::ChannelElement::fromDB ( double  d) const
inline

Definition at line 49 of file MixerElement.H.

Here is the caller graph for this function:

◆ outputLevel()

void ALSA::ChannelElement::outputLevel ( std::ostream &  os)
inline

Definition at line 53 of file MixerElement.H.

◆ outputLevelAndSwitch()

void ALSA::ChannelElement::outputLevelAndSwitch ( std::ostream &  os)
inline

Definition at line 61 of file MixerElement.H.

◆ outputSwitch()

void ALSA::ChannelElement::outputSwitch ( std::ostream &  os)
inline

Definition at line 57 of file MixerElement.H.

◆ toDB()

double ALSA::ChannelElement::toDB ( long  v) const
inline

Definition at line 45 of file MixerElement.H.

Here is the caller graph for this function:

Member Data Documentation

◆ channel

snd_mixer_selem_channel_id_t ALSA::ChannelElement::channel

Definition at line 35 of file MixerElement.H.

◆ dB

double ALSA::ChannelElement::dB

If the channel has a volume, this holds its state in dB.

Definition at line 33 of file MixerElement.H.

◆ sw

int ALSA::ChannelElement::sw

If the channel has a switch, this holds its state.

Definition at line 34 of file MixerElement.H.

◆ vol

long ALSA::ChannelElement::vol

If the channel has a volume, this holds its state.

Definition at line 32 of file MixerElement.H.

◆ volDB

long ALSA::ChannelElement::volDB
protected

If the channel has a volume, this holds its state in 100*dB.

Definition at line 30 of file MixerElement.H.


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