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:
parent
4c9f2e41ff
commit
d661620962
|
@ -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");
|
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);
|
command_event(CMD_EVENT_DSP_FILTER_INIT, NULL);
|
||||||
|
|
||||||
audio_driver_free_samples_count = 0;
|
audio_driver_free_samples_count = 0;
|
||||||
|
|
Loading…
Reference in New Issue