From d6616209627d30ed52ea97b5638fde9e8559e2b7 Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Mon, 19 Dec 2016 14:40:28 +0100 Subject: [PATCH] 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. --- audio/audio_driver.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/audio/audio_driver.c b/audio/audio_driver.c index 5f1b89287d..13e9b5b1cf 100644 --- a/audio/audio_driver.c +++ b/audio/audio_driver.c @@ -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;