cec volume switch audiosystem/tv

This commit is contained in:
TangoCash
2021-01-31 18:16:08 +01:00
committed by Thilo Graf
parent 0329b7b783
commit 91a546d082
8 changed files with 118 additions and 33 deletions

View File

@@ -2,7 +2,7 @@
#define __HDMI_CEC_H__
/*
Copyright (C) 2018-2020 TangoCash
Copyright (C) 2018-2021 TangoCash
License: GPLv2
@@ -79,6 +79,7 @@ private:
int volume;
bool fallback;
bool tv_off;
unsigned char audio_destination;
protected:
bool running;
public:
@@ -103,6 +104,11 @@ public:
{
return muted;
};
int GetAudioDestination()
{
return (int)audio_destination;
}
void SetAudioDestination(int audio_dest);
};
#endif // __HDMI_CEC_H__