1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-08 12:15:49 +00:00

Fix unmute after starting muted.

audio_driver_start() would for some reason fail if audio driver was
already started. The fix is to mute the audio driver on init. Makes
kinda sense anyways.
This commit is contained in:
Hans-Kristian Arntzen 2016-12-19 14:40:28 +01:00
parent 4c9f2e41ff
commit d661620962

View File

@ -438,6 +438,12 @@ static bool audio_driver_init_internal(bool audio_cb_inited)
RARCH_WARN("Audio rate control was desired, but driver does not support needed features.\n");
}
if (!audio_cb_inited && audio_driver_active && settings->audio.mute_enable)
{
/* If we start muted, stop the audio driver, so subsequent unmute works. */
audio_driver_stop();
}
command_event(CMD_EVENT_DSP_FILTER_INIT, NULL);
audio_driver_free_samples_count = 0;