#include <volumehandler.h>
Inherits QObject.
The VolumeHandler class provides volume control access.
- Author
- Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
◆ VolumeHandler()
Object constructor.
- Parameters
-
◆ ~VolumeHandler()
◆ apply()
void apply |
( |
Buffer * | b, |
|
|
int | chan ) |
Changes buffer volume (software mode only).
- Parameters
-
b | Buffer pointer. |
chan | Number of channels. |
◆ balance()
Returns the balance between left and right channels.
◆ balanceChanged
void balanceChanged |
( |
int | balance | ) |
|
|
signal |
Emitted when the balance between left and right channels has changed.
- Parameters
-
balance | New balance value. |
◆ changeVolume()
void changeVolume |
( |
int | delta | ) |
|
Changes volume by delta percent
◆ checkVolume
Forces the volumeChanged signal to emit.
◆ instance()
◆ isMuted()
Returns true if volume is muted, otherwise returns false.
◆ left()
Returns left channel volume.
◆ mutedChanged
void mutedChanged |
( |
bool | muted | ) |
|
|
signal |
Emitted when volume mute state has changed
- Parameters
-
muted | New volume mute state. |
◆ reload
Updates volume configuration
◆ right()
Returns right channel volume.
◆ setBalance()
void setBalance |
( |
int | balance | ) |
|
Sets the balance between left and right channels.
- Parameters
-
balance | balance between left and right channels [-100..100]. |
◆ setMuted()
void setMuted |
( |
bool | muted | ) |
|
Sets volume mute state to muted.
◆ setVolume() [1/2]
void setVolume |
( |
int | left, |
|
|
int | right ) |
Setups volume level. Subclass should reimplement this fucntion.
- Parameters
-
left | Left channel volume level. It should be 0..100 |
right | Right channel volume level. It should be 0..100 |
◆ setVolume() [2/2]
void setVolume |
( |
int | volume | ) |
|
Sets the volume of the left and right channels with keeping of the balance.
- Parameters
-
volume | volume of the left and right channels [0..100]. |
◆ volume()
Returns the maximum volume of the left and right channels.
◆ volumeChanged [1/2]
void volumeChanged |
( |
int | left, |
|
|
int | right ) |
|
signal |
Emitted when volume is changed.
- Parameters
-
left | Left channel volume level. It should be 0..100 |
right | Right channel volume level. It should be 0..100 |
◆ volumeChanged [2/2]
void volumeChanged |
( |
int | volume | ) |
|
|
signal |
Emitted when the highest volume of the left and right channels has changed.
- Parameters
-
volume | New value of the highest volume of the left and right channels. |
The documentation for this class was generated from the following file: