mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
27 lines
553 B
C
27 lines
553 B
C
#include "displayvolume.h"
|
|
|
|
#include "config.h"
|
|
|
|
cSDDisplayVolume::cSDDisplayVolume(cViewVolume *volumeView) {
|
|
view = volumeView;
|
|
ok = view->Init();
|
|
if (!ok)
|
|
esyslog("skindesigner: Error initiating displayvolume view - aborting");
|
|
}
|
|
|
|
cSDDisplayVolume::~cSDDisplayVolume() {
|
|
view->Close();
|
|
}
|
|
|
|
void cSDDisplayVolume::SetVolume(int Current, int Total, bool Mute) {
|
|
if (!ok)
|
|
return;
|
|
view->SetVolume(Current, Total, Mute);
|
|
}
|
|
|
|
void cSDDisplayVolume::Flush(void) {
|
|
if (!ok)
|
|
return;
|
|
view->Flush(false);
|
|
}
|