21 #ifndef VOLUMEHANDLER_H
22 #define VOLUMEHANDLER_H
56 void setVolume(
int left,
int right);
60 void changeVolume(
int delta);
65 void setVolume(
int volume);
70 void setBalance(
int balance);
74 void setMuted(
bool muted);
100 void apply(
Buffer *b,
int chan);
111 void volumeChanged(
int volume);
116 void balanceChanged(
int balance);
121 void mutedChanged(
bool muted);
135 bool m_prev_block =
false;
136 std::atomic_bool m_muted = ATOMIC_VAR_INIT(
false);
137 std::atomic_bool m_apply = ATOMIC_VAR_INIT(
false);
139 double m_scaleLeft = 0, m_scaleRight = 0;
141 QTimer *m_timer =
nullptr;
static VolumeHandler * m_instance
The VolumeSettings structure stores volume levels.
The Volume class provides asbtract volume interface.
The VolumeHandler class provides volume control access.
VolumeSettings m_settings