|  | Gestro
    | 
This class uses the ALSA library to send commands to the sound card. More...
#include <VolumeControl.h>


| Public Member Functions | |
| VolumeControl (void) | |
| void | increaseVolume () | 
| void | reduceVolume () | 
| void | muteAndUnmute () | 
| void | unmute () | 
| Private Attributes | |
| long | min | 
| Declaring three variables of type long.  More... | |
| long | max | 
| snd_mixer_t * | handle | 
| A pointer to a mixer handle.  More... | |
| snd_mixer_selem_id_t * | sid | 
| A pointer to a mixer handle.  More... | |
| const char * | card = "default" | 
| A pointer to a constant character.  More... | |
| const char * | selem_name = "Master" | 
| A pointer to a constant character.  More... | |
This class uses the ALSA library to send commands to the sound card.
Definition at line 8 of file VolumeControl.h.
| VolumeControl::VolumeControl | ( | void | ) | 
constructor
Definition at line 7 of file VolumeControl.cpp.
| void VolumeControl::increaseVolume | ( | ) | 
Increase the master volume by 10%
Definition at line 11 of file VolumeControl.cpp.

| void VolumeControl::muteAndUnmute | ( | ) | 
Mute or unmute by checking the current state.
Definition at line 53 of file VolumeControl.cpp.

| void VolumeControl::reduceVolume | ( | ) | 
Reduce the master volume by 10%
Definition at line 32 of file VolumeControl.cpp.

| void VolumeControl::unmute | ( | ) | 
Umute the system, to be called before increases volume if system is muted.
Definition at line 72 of file VolumeControl.cpp.

| 
 | private | 
A pointer to a constant character.
Definition at line 21 of file VolumeControl.h.
| 
 | private | 
A pointer to a mixer handle.
Definition at line 15 of file VolumeControl.h.
| 
 | private | 
Definition at line 12 of file VolumeControl.h.
| 
 | private | 
Declaring three variables of type long.
Definition at line 12 of file VolumeControl.h.
| 
 | private | 
A pointer to a constant character.
Definition at line 24 of file VolumeControl.h.
| 
 | private | 
A pointer to a mixer handle.
Definition at line 18 of file VolumeControl.h.
 1.8.13
 1.8.13