20 #ifndef VOLUMEHANDLER_H 21 #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);
112 void volumeChanged(
int left,
int right);
117 void volumeChanged(
int volume);
122 void balanceChanged(
int balance);
127 void mutedChanged(
bool muted);
141 bool m_prev_block =
false;
142 std::atomic_bool m_muted = ATOMIC_VAR_INIT(
false);
143 std::atomic_bool m_apply = ATOMIC_VAR_INIT(
false);
145 double m_scaleLeft = 0, m_scaleRight = 0;
146 Volume *m_volume =
nullptr;
The VolumeSettings structure stores volume levels.
Definition: volume.h:31
The Volume class provides asbtract volume interface.
Definition: volume.h:51
The VolumeHandler class provides volume control access.
Definition: volumehandler.h:37
Audio buffer class.
Definition: buffer.h:20