class AudioMixer

Audio Mixer. More...

Full nameCoral::AudioMixer
Definition#include <audiomixer.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

This class is an interface to an audio mixer.

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

Constructor.

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

AudioMixer ()

Destructor.

inline bool  ready ()

[const]

Check, if mixer is ready.

Returns: true, if mixer is ready; false otherwise.

bool  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  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.