mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
More cleanups
This commit is contained in:
parent
c9646c1fd2
commit
7c6b93f58f
@ -374,7 +374,9 @@ static bool audio_driver_init_internal(bool audio_cb_inited)
|
||||
}
|
||||
|
||||
if (new_rate != 0)
|
||||
settings->audio.out_rate = new_rate;
|
||||
{
|
||||
configuration_set_int(settings, settings->audio.out_rate, new_rate);
|
||||
}
|
||||
|
||||
if (!audio_driver_context_audio_data)
|
||||
{
|
||||
@ -930,14 +932,16 @@ bool audio_driver_has_callback(void)
|
||||
bool audio_driver_toggle_mute(void)
|
||||
{
|
||||
settings_t *settings = config_get_ptr();
|
||||
bool new_mute_state = !settings->audio.mute_enable;
|
||||
if (!audio_driver_context_audio_data)
|
||||
return false;
|
||||
if (!audio_driver_active)
|
||||
return false;
|
||||
|
||||
settings->audio.mute_enable = !settings->audio.mute_enable;
|
||||
configuration_set_bool(settings,
|
||||
settings->audio.mute_enable, new_mute_state);
|
||||
|
||||
if (settings->audio.mute_enable)
|
||||
if (new_mute_state)
|
||||
command_event(CMD_EVENT_AUDIO_STOP, NULL);
|
||||
else if (!command_event(CMD_EVENT_AUDIO_START, NULL))
|
||||
{
|
||||
|
@ -1017,7 +1017,9 @@ void video_monitor_set_refresh_rate(float hz)
|
||||
runloop_msg_queue_push(msg, 1, 180, false);
|
||||
RARCH_LOG("%s\n", msg);
|
||||
|
||||
settings->video.refresh_rate = hz;
|
||||
configuration_set_float(settings,
|
||||
settings->video.refresh_rate,
|
||||
hz);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user