From aeb1dc8099631e4ce427e7e07997acf02c75c9cf Mon Sep 17 00:00:00 2001 From: kamel5 <vdr.kamel5 (at) gmx (dot) net> Date: Tue, 24 May 2022 17:27:53 +0200 Subject: Add volume bar to main menus --- status.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 status.c (limited to 'status.c') diff --git a/status.c b/status.c new file mode 100644 index 0000000..8635347 --- /dev/null +++ b/status.c @@ -0,0 +1,14 @@ +/* + * status.c: Keeping track of several VDR status settings + */ + +#include "status.h" + +cLCARSNGStatusMonitor *statusMonitor; + +void cLCARSNGStatusMonitor::SetVolume(int volume, bool absolute) +{ // The volume has been set to the given value, either + // absolutely or relative to the current volume. + + Volume = absolute ? volume : Volume + volume; +} -- cgit v1.2.3