Gizmod::AlsaSoundCard Class Reference

Data structure that holds information about each Sound Card. More...

#include <AlsaSoundCard.hpp>

Inheritance diagram for Gizmod::AlsaSoundCard:

Inheritance graph
[legend]
Collaboration diagram for Gizmod::AlsaSoundCard:

Collaboration graph
[legend]
List of all members.

Public Member Functions

std::string getCardHardwareID () const
 Get the card's hardware ID.
int getCardID () const
 Get the card ID.
std::string getCardName () const
 Get the name of the card.
std::string getCardNameLong () const
 Get the long name of the card.
AlsaMixer const * getMixer (std::string Name)
 Get a mixer by name.
size_t getNumMixers ()
 Get the number of mixers on the sound card.
void setAllPlaybackSwitches (bool Enabled)
 Set all playback switches to Enabled.
void shutdown ()
 Shutdown the AlsaSoundCard connection.
 AlsaSoundCard (AlsaInterface *piAlsa, int CardID)
 AlsaSoundCard Default Constructor.
virtual ~AlsaSoundCard ()
 AlsaSoundCard Destructor.

Static Public Member Functions

static int MixerCallback (snd_mixer_t *Mixer, unsigned int EventMask, snd_mixer_elem_t *MixerElement)
 Static mixer callback.

Friends

class boost::serialization::access

Classes

struct  AlsaSoundCardThreadProc

Detailed Description

Data structure that holds information about each Sound Card.


Member Function Documentation

std::string AlsaSoundCard::getCardHardwareID (  )  const [virtual]

Get the card's hardware ID.

Returns:
Hardware ID

Implements Gizmod::AlsaSoundCardInterface.

int AlsaSoundCard::getCardID (  )  const [virtual]

Get the card ID.

Returns:
Card ID

Implements Gizmod::AlsaSoundCardInterface.

std::string AlsaSoundCard::getCardName (  )  const [virtual]

Get the name of the card.

Returns:
Card name

Implements Gizmod::AlsaSoundCardInterface.

std::string AlsaSoundCard::getCardNameLong (  )  const [virtual]

Get the long name of the card.

Returns:
Card's long name

Implements Gizmod::AlsaSoundCardInterface.

AlsaMixer const * AlsaSoundCard::getMixer ( std::string  Name  ) 

Get a mixer by name.

Returns:
The requested AlsaMixer

size_t AlsaSoundCard::getNumMixers (  ) 

Get the number of mixers on the sound card.

Returns:
The number of mixers

int AlsaSoundCard::MixerCallback ( snd_mixer_t *  Mixer,
unsigned int  EventMask,
snd_mixer_elem_t *  MixerElement 
) [static]

Static mixer callback.

Parameters:
Mixer Mixer handle
EventMask event mask
MixerElement related mixer element (if any)
Returns:
0 on success otherwise a negative error code
Just pass off the event to the appropriate alsa instantiation

void AlsaSoundCard::setAllPlaybackSwitches ( bool  Enabled  ) 

Set all playback switches to Enabled.

Parameters:
Enabled Value to set switches to


The documentation for this class was generated from the following files:
Generated on Wed Jun 27 12:43:38 2007 for gizmod by  doxygen 1.4.7