OSD: Volume control option.

This commit is contained in:
sorgelig
2019-01-26 17:10:23 +08:00
parent 07f4d0c5b3
commit dade2f6dbe
4 changed files with 40 additions and 10 deletions

View File

@@ -2416,7 +2416,12 @@ void user_io_osd_key_enable(char on)
osd_is_visible = on;
}
static void set_volume(int cmd)
int get_volume()
{
return vol_att & 0x17;
}
void set_volume(int cmd)
{
if (!cfg.volumectl) return;