Expose internal audio RF filter option

This commit is contained in:
jdgleaver
2022-04-05 13:45:20 +01:00
parent 6143f7afc1
commit 046637ba73
4 changed files with 27 additions and 3 deletions

View File

@@ -1136,6 +1136,7 @@ static bool update_option_visibility(void)
char options_list[][25] = {
"fceumm_sndvolume",
"fceumm_sndquality",
"fceumm_sndlowpass",
"fceumm_swapduty",
"fceumm_apu_1",
"fceumm_apu_2",
@@ -1822,6 +1823,14 @@ static void check_variables(bool startup)
FCEUI_SetSoundQuality(sndquality);
}
var.key = "fceumm_sndlowpass";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)
{
int lowpass = (!strcmp(var.value, "enabled")) ? 1 : 0;
FCEUI_SetLowPass(lowpass);
}
var.key = "fceumm_sndvolume";
if (environ_cb(RETRO_ENVIRONMENT_GET_VARIABLE, &var) && var.value)