gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
|
#include <MixerElement.H>
Public Member Functions | |
MixerElement () | |
MixerElement (snd_mixer_elem_t *e) | |
virtual | ~MixerElement () |
int | setPlaybackSwitch (int v) |
long | setPlaybackVol (long v) |
long | setPlaybackVol (snd_mixer_selem_channel_id_t channel, long v) |
int | setPlaybackVolDB (double &dB) |
long | setPlaybackVolDB (snd_mixer_selem_channel_id_t channel, double &dB) |
int | setCaptureSwitch (int v) |
long | setCaptureVol (long v) |
long | setCaptureVol (snd_mixer_selem_channel_id_t channel, long v) |
int | setCaptureVolDB (double &dB) |
long | setCaptureVolDB (snd_mixer_selem_channel_id_t channel, double &dB) |
Public Attributes | |
std::string | name |
The mixer element name. More... | |
snd_mixer_elem_t * | elem |
The pointer to the element. More... | |
unsigned int | index |
The mixer element index. More... | |
bool | hasCommonVolume |
element has only one volume control for both playback and capture More... | |
bool | hasPlaybackVolume |
0 if no control is present, 1 if it's present More... | |
bool | hasPlaybackVolumeJoined |
0 if control is separated per channel, 1 if control acts on all channels together More... | |
bool | hasCaptureVolume |
0 if no control is present, 1 if it's present More... | |
bool | hasCaptureVolumeJoined |
0 if control is separated per channel, 1 if control acts on all channels together More... | |
bool | hasCommonSwitch |
0 separated control, 1 common control More... | |
bool | hasPlaybackSwitch |
0 if no control is present, 1 if it's present More... | |
bool | hasPlaybackSwitchJoined |
0 if control is separated per channel, 1 if control acts on all channels together More... | |
bool | hasCaptureSwitch |
0 if no control is present, 1 if it's present More... | |
bool | hasCaptureSwitchJoined |
0 if control is separated per channel, 1 if control acts on all channels together More... | |
bool | hasCaptureSwitchExclusive |
0 if control is separated per element, 1 if control acts on other elements too (i.e. only one active at a time inside a group) More... | |
long | playbackVolMax |
long | playbackVolMin |
double | playbackVolMaxDB |
double | playbackVolMinDB |
long | captureVolMax |
long | captureVolMin |
double | captureVolMaxDB |
double | captureVolMinDB |
std::vector< ChannelPlaybackElement > | playbackVolumes |
Volume setting for each playback channel in this mixer element. More... | |
std::vector< ChannelCaptureElement > | captureVolumes |
Volume setting for each capture channel in this mixer element. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, MixerElement &me) |
Class to alter the ALSA hardware mixer
Definition at line 136 of file MixerElement.H.
|
inline |
Definition at line 164 of file MixerElement.H.
|
inline |
|
inlinevirtual |
Definition at line 249 of file MixerElement.H.
|
inline |
Set the capture switch state for all channels, returning the current capture switch state
v | The value to set |
Definition at line 349 of file MixerElement.H.
|
inline |
Set the capture volume for all channels, returning the current capture volume
v | The value to set |
Definition at line 366 of file MixerElement.H.
|
inline |
Set the capture volume for one channel, returning the current capture volume for that channel
channel | The channel to set the volume on |
v | The value to set |
Definition at line 384 of file MixerElement.H.
|
inline |
Set the capture volume (in dB) for all channels, returning the current capture volume in dB
[in,out] | dB | The value to set and on return, then actual value |
Definition at line 403 of file MixerElement.H.
|
inline |
Set the capture volume for one channel, returning the current capture volume for that channel
channel | The channel to set the volume on | |
[in,out] | dB | The value to set and on return, then actual value |
Definition at line 422 of file MixerElement.H.
|
inline |
Set the playback switch state for all channels, returning the current playback switch state
v | The value to set |
Definition at line 256 of file MixerElement.H.
|
inline |
Set the playback volume for all channels, returning the current playback volume
v | The value to set |
Definition at line 273 of file MixerElement.H.
|
inline |
Set the playback volume for one channel, returning the current playback volume for that channel
channel | The channel to set the volume on |
v | The value to set |
Definition at line 291 of file MixerElement.H.
|
inline |
Set the playback volume (in dB) for all channels, returning the current playback volume in dB
[in,out] | dB | The value to set and on return, then actual value |
Definition at line 310 of file MixerElement.H.
|
inline |
Set the playback volume for one channel, returning the current playback volume for that channel
channel | The channel to set the volume on | |
[in,out] | dB | The value to set and on return, then actual value |
Definition at line 329 of file MixerElement.H.
|
friend |
Definition at line 438 of file MixerElement.H.
long ALSA::MixerElement::captureVolMax |
Definition at line 156 of file MixerElement.H.
double ALSA::MixerElement::captureVolMaxDB |
Definition at line 158 of file MixerElement.H.
long ALSA::MixerElement::captureVolMin |
Definition at line 157 of file MixerElement.H.
double ALSA::MixerElement::captureVolMinDB |
Definition at line 159 of file MixerElement.H.
std::vector<ChannelCaptureElement> ALSA::MixerElement::captureVolumes |
Volume setting for each capture channel in this mixer element.
Definition at line 162 of file MixerElement.H.
snd_mixer_elem_t* ALSA::MixerElement::elem |
The pointer to the element.
Definition at line 139 of file MixerElement.H.
bool ALSA::MixerElement::hasCaptureSwitch |
0 if no control is present, 1 if it's present
Definition at line 149 of file MixerElement.H.
bool ALSA::MixerElement::hasCaptureSwitchExclusive |
0 if control is separated per element, 1 if control acts on other elements too (i.e. only one active at a time inside a group)
Definition at line 151 of file MixerElement.H.
bool ALSA::MixerElement::hasCaptureSwitchJoined |
0 if control is separated per channel, 1 if control acts on all channels together
Definition at line 150 of file MixerElement.H.
bool ALSA::MixerElement::hasCaptureVolume |
0 if no control is present, 1 if it's present
Definition at line 144 of file MixerElement.H.
bool ALSA::MixerElement::hasCaptureVolumeJoined |
0 if control is separated per channel, 1 if control acts on all channels together
Definition at line 145 of file MixerElement.H.
bool ALSA::MixerElement::hasCommonSwitch |
0 separated control, 1 common control
Definition at line 146 of file MixerElement.H.
bool ALSA::MixerElement::hasCommonVolume |
element has only one volume control for both playback and capture
Definition at line 141 of file MixerElement.H.
bool ALSA::MixerElement::hasPlaybackSwitch |
0 if no control is present, 1 if it's present
Definition at line 147 of file MixerElement.H.
bool ALSA::MixerElement::hasPlaybackSwitchJoined |
0 if control is separated per channel, 1 if control acts on all channels together
Definition at line 148 of file MixerElement.H.
bool ALSA::MixerElement::hasPlaybackVolume |
0 if no control is present, 1 if it's present
Definition at line 142 of file MixerElement.H.
bool ALSA::MixerElement::hasPlaybackVolumeJoined |
0 if control is separated per channel, 1 if control acts on all channels together
Definition at line 143 of file MixerElement.H.
unsigned int ALSA::MixerElement::index |
The mixer element index.
Definition at line 140 of file MixerElement.H.
std::string ALSA::MixerElement::name |
The mixer element name.
Definition at line 138 of file MixerElement.H.
long ALSA::MixerElement::playbackVolMax |
Definition at line 152 of file MixerElement.H.
double ALSA::MixerElement::playbackVolMaxDB |
Definition at line 154 of file MixerElement.H.
long ALSA::MixerElement::playbackVolMin |
Definition at line 153 of file MixerElement.H.
double ALSA::MixerElement::playbackVolMinDB |
Definition at line 155 of file MixerElement.H.
std::vector<ChannelPlaybackElement> ALSA::MixerElement::playbackVolumes |
Volume setting for each playback channel in this mixer element.
Definition at line 161 of file MixerElement.H.
GTK+ IOStream
Beta
|