RTP Audio System  2.0.0
AudioMixer Class Reference

Audio Mixer. More...

#include <audiomixer.h>

List of all members.

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

Detailed Description

Audio Mixer.

This class is an interface to an audio mixer.

Author:
Thomas Dreibholz
Version:
1.0

Constructor & Destructor Documentation

AudioMixer::AudioMixer ( AudioDevice audioDevice,
int  mixerChannel = SOUND_MIXER_PCM,
const char *  name = "/dev/mixer" 
)

Constructor.

Parameters:
audioDeviceAudioDevice object.
mixerChannelMixer channel (e.g. SOUND_MIXER_PCM).
nameMixer device name (e.g. "/dev/mixer").

Destructor.


Member Function Documentation

bool AudioMixer::getVolume ( card8 left,
card8 right 
)

Get volume.

Parameters:
leftVolume of left channel.
rightVolume of right channel.
Returns:
true, if volume has been written into variables; false otherwise.
bool AudioMixer::ready ( ) const [inline]

Check, if mixer is ready.

Returns:
true, if mixer is ready; false otherwise.
bool AudioMixer::setVolume ( const card8  left,
const card8  right 
)

Set volume.

Parameters:
leftVolume of left channel.
rightVolume of right channel.
Returns:
true, if volume has been set; false otherwise.

Member Data Documentation

int AudioMixer::Channel [private]
int AudioMixer::Device [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines