INI option to enable volume control.

This commit is contained in:
sorgelig
2018-06-21 04:53:58 +08:00
parent 0cab5a60dd
commit fa4422fc2e
4 changed files with 7 additions and 0 deletions

View File

@@ -424,6 +424,7 @@ void user_io_init(const char *path)
parse_video_mode();
FileLoadConfig("Volume.dat", &vol_att, 1);
vol_att &= 0x1F;
if (!cfg.volumectl) vol_att = 0;
spi_uio_cmd8(UIO_AUDVOL, vol_att);
user_io_send_buttons(1);
@@ -1896,6 +1897,8 @@ void user_io_osd_key_enable(char on)
static void set_volume(int cmd)
{
if (!cfg.volumectl) return;
vol_set_timeout = GetTimer(1000);
vol_att &= 0x17;