RTP Audio System
2.0.0
|
Audio Mixer. More...
#include <audiomixer.h>
Public Member Functions | |
AudioMixer (AudioDevice *audioDevice, int mixerChannel=SOUND_MIXER_PCM, const char *name="/dev/mixer") | |
~AudioMixer () | |
bool | ready () const |
bool | getVolume (card8 &left, card8 &right) |
bool | setVolume (const card8 left, const card8 right) |
Private Attributes | |
int | Device |
int | Channel |
Audio Mixer.
This class is an interface to an audio mixer.
AudioMixer::AudioMixer | ( | AudioDevice * | audioDevice, |
int | mixerChannel = SOUND_MIXER_PCM , |
||
const char * | name = "/dev/mixer" |
||
) |
Constructor.
audioDevice | AudioDevice object. |
mixerChannel | Mixer channel (e.g. SOUND_MIXER_PCM). |
name | Mixer device name (e.g. "/dev/mixer"). |
Destructor.
bool AudioMixer::getVolume | ( | card8 & | left, |
card8 & | right | ||
) |
Get volume.
left | Volume of left channel. |
right | Volume of right channel. |
bool AudioMixer::ready | ( | ) | const [inline] |
Check, if mixer is ready.
bool AudioMixer::setVolume | ( | const card8 | left, |
const card8 | right | ||
) |
Set volume.
left | Volume of left channel. |
right | Volume of right channel. |
int AudioMixer::Channel [private] |
int AudioMixer::Device [private] |