#include <AlsaMixer.hpp>
Public Member Functions | |
std::string | getName () const |
Get the unique name of the mixer. | |
std::string | getNameShort () const |
Get the short name of the mixer (not unique). | |
bool | setSwitchCapture (bool Enable) |
Set the capture switch. | |
bool | setSwitchPlayback (bool Enable) |
Set the playback switch. | |
bool | setVolumeCapture (long Volume) |
Set the Capture volume. | |
bool | setVolumeCapturePercent (float Percent) |
Set the Capture volume as a percent. | |
bool | setVolumePlayback (long Volume) |
Set the playback volume. | |
bool | setVolumePlaybackPercent (float Percent) |
Set the playback volume as a percent. | |
int | signalMixerEvent () |
Signal a manual mixer event. | |
AlsaMixer () | |
AlsaMixer Default Constructor. | |
AlsaMixer (AlsaSoundCardInterface *piSoundCard, snd_mixer_elem_t *MixerElement, std::string MixerName, std::string MixerNameUnique, unsigned int MixerID) | |
AlsaMixer Default Constructor. | |
virtual | ~AlsaMixer () |
AlsaMixer Destructor. | |
Static Public Member Functions | |
static int | MixerElemCallback (snd_mixer_elem_t *MixerElement, unsigned int EventMask) |
Static mixer element callback. | |
Friends | |
class | boost::serialization::access |
Definition at line 61 of file AlsaMixer.hpp.
std::string AlsaMixer::getName | ( | ) | const |
Get the unique name of the mixer.
Definition at line 138 of file AlsaMixer.cpp.
Referenced by Gizmod::Alsa::onAlsaEventMixerElementAttach(), Gizmod::Alsa::onAlsaEventMixerElementChange(), and Gizmod::Alsa::onAlsaEventMixerElementDetach().
std::string AlsaMixer::getNameShort | ( | ) | const |
Get the short name of the mixer (not unique).
Get the name of the mixer.
Definition at line 146 of file AlsaMixer.cpp.
bool AlsaMixer::setSwitchCapture | ( | bool | Enable | ) |
Set the capture switch.
Enable | Set to true if the switch should be enabled |
Definition at line 244 of file AlsaMixer.cpp.
References Gizmod::AlsaSoundCardInterface::addManualUpdater(), and Gizmod::AlsaMixerElements::SwitchCapture.
bool AlsaMixer::setSwitchPlayback | ( | bool | Enable | ) |
Set the playback switch.
Enable | Set to true if the switch should be enabled |
Definition at line 257 of file AlsaMixer.cpp.
References Gizmod::AlsaSoundCardInterface::addManualUpdater(), and Gizmod::AlsaMixerElements::SwitchPlayback.
bool AlsaMixer::setVolumeCapture | ( | long | Volume | ) |
Set the Capture volume.
Volume | Absolute volume level |
Definition at line 270 of file AlsaMixer.cpp.
References Gizmod::AlsaSoundCardInterface::addManualUpdater(), Gizmod::AlsaMixerElements::VolumeCapture, Gizmod::AlsaMixerElements::VolumeCaptureMax, Gizmod::AlsaMixerElements::VolumeCaptureMin, and Gizmod::AlsaMixerElements::VolumeCapturePercent.
bool AlsaMixer::setVolumeCapturePercent | ( | float | Percent | ) |
Set the Capture volume as a percent.
Percent | Volume level percentage |
Definition at line 288 of file AlsaMixer.cpp.
References Gizmod::AlsaMixerElements::VolumeCapture, Gizmod::AlsaMixerElements::VolumeCaptureMax, Gizmod::AlsaMixerElements::VolumeCaptureMin, and Gizmod::AlsaMixerElements::VolumeCapturePercent.
bool AlsaMixer::setVolumePlayback | ( | long | Volume | ) |
Set the playback volume.
Set the Playback volume.
Volume | Absolute volume level |
Definition at line 306 of file AlsaMixer.cpp.
References Gizmod::AlsaSoundCardInterface::addManualUpdater(), Gizmod::AlsaMixerElements::VolumePlayback, Gizmod::AlsaMixerElements::VolumePlaybackMax, Gizmod::AlsaMixerElements::VolumePlaybackMin, and Gizmod::AlsaMixerElements::VolumePlaybackPercent.
bool AlsaMixer::setVolumePlaybackPercent | ( | float | Percent | ) |
Set the playback volume as a percent.
Set the Playback volume as a percent.
Percent | Volume level percentage |
Definition at line 324 of file AlsaMixer.cpp.
References Gizmod::AlsaSoundCardInterface::addManualUpdater(), Gizmod::AlsaMixerElements::VolumePlayback, Gizmod::AlsaMixerElements::VolumePlaybackMax, Gizmod::AlsaMixerElements::VolumePlaybackMin, and Gizmod::AlsaMixerElements::VolumePlaybackPercent.
int AlsaMixer::signalMixerEvent | ( | ) | [virtual] |
Signal a manual mixer event.
Implements Gizmod::AlsaMixerInterface.
Definition at line 91 of file AlsaMixer.cpp.
int AlsaMixer::MixerElemCallback | ( | snd_mixer_elem_t * | MixerElement, | |
unsigned int | EventMask | |||
) | [static] |
Static mixer element callback.
Public static MixerElement callback function.
MixerElement | Mixer element handle | |
EventMask | event mask |
Definition at line 52 of file AlsaMixer.cpp.
References mixerElemCallback().