#include <AlsaSoundCard.hpp>
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 |
Definition at line 58 of file AlsaSoundCard.hpp.
std::string AlsaSoundCard::getCardHardwareID | ( | ) | const [virtual] |
Get the card's hardware ID.
Implements Gizmod::AlsaSoundCardInterface.
Definition at line 147 of file AlsaSoundCard.cpp.
Referenced by Gizmod::Alsa::onAlsaEventSoundCardAttach(), and Gizmod::Alsa::onAlsaEventSoundCardDetach().
int AlsaSoundCard::getCardID | ( | ) | const [virtual] |
Get the card ID.
Implements Gizmod::AlsaSoundCardInterface.
Definition at line 155 of file AlsaSoundCard.cpp.
std::string AlsaSoundCard::getCardName | ( | ) | const [virtual] |
Get the name of the card.
Implements Gizmod::AlsaSoundCardInterface.
Definition at line 163 of file AlsaSoundCard.cpp.
Referenced by Gizmod::Alsa::onAlsaEventMixerElementAttach(), Gizmod::Alsa::onAlsaEventMixerElementChange(), Gizmod::Alsa::onAlsaEventMixerElementDetach(), Gizmod::Alsa::onAlsaEventSoundCardAttach(), and Gizmod::Alsa::onAlsaEventSoundCardDetach().
std::string AlsaSoundCard::getCardNameLong | ( | ) | const [virtual] |
Get the long name of the card.
Implements Gizmod::AlsaSoundCardInterface.
Definition at line 171 of file AlsaSoundCard.cpp.
AlsaMixer const * AlsaSoundCard::getMixer | ( | std::string | Name | ) |
Get a mixer by name.
Get a mixer element by index.
Definition at line 179 of file AlsaSoundCard.cpp.
size_t AlsaSoundCard::getNumMixers | ( | ) |
Get the number of mixers on the sound card.
Definition at line 189 of file AlsaSoundCard.cpp.
void AlsaSoundCard::setAllPlaybackSwitches | ( | bool | Enabled | ) |
Set all playback switches to Enabled.
Enabled | Value to set switches to |
Definition at line 265 of file AlsaSoundCard.cpp.
References ALSA_FAST_CALLS_BUG.
int AlsaSoundCard::MixerCallback | ( | snd_mixer_t * | Mixer, | |
unsigned int | EventMask, | |||
snd_mixer_elem_t * | MixerElement | |||
) | [static] |
Static mixer callback.
Public static mixer callback function.
Mixer | Mixer handle | |
EventMask | event mask | |
MixerElement | related mixer element (if any) |
Definition at line 78 of file AlsaSoundCard.cpp.
References mixerCallback().