Skip to content

Commit

Permalink
Remove FCEUD_SoundToggle
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Jan 25, 2024
1 parent 11f2269 commit 63643ba
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions libretro/libretro.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,6 @@ void FCEUD_DispMessage(enum retro_log_level level, unsigned duration, const char
}
}

void FCEUD_SoundToggle (void)
{
FSettings.SoundVolume = sndvolume;
}

/*palette for FCEU*/
#define PAL_INTERNAL sizeof(palettes) / sizeof(palettes[0]) /* Number of palettes in palettes[] */
#define PAL_DEFAULT (PAL_INTERNAL + 1)
Expand Down Expand Up @@ -2265,7 +2260,7 @@ static void check_variables(bool startup)
{
int val = (int)(atof(var.value) * 25.6);
sndvolume = val;
FCEUD_SoundToggle();
FSettings.SoundVolume = sndvolume;
}

if (audio_video_updated && !startup)
Expand Down Expand Up @@ -3518,7 +3513,7 @@ bool retro_load_game(const struct retro_game_info *info)
current_palette = 0;

ResetPalette();
FCEUD_SoundToggle();
FSettings.SoundVolume = sndvolume;
check_variables(true);
stereo_filter_init();
PowerNES();
Expand Down

0 comments on commit 63643ba

Please sign in to comment.