mirror of
https://github.com/libretro/RetroArch
synced 2025-03-26 02:37:23 +00:00
Check if use_float is set while doing fixed point.
This commit is contained in:
parent
45481634f2
commit
b84bcc3670
9
driver.c
9
driver.c
@ -335,6 +335,15 @@ void init_audio(void)
|
|||||||
if (g_extern.audio_active && driver.audio->use_float && audio_use_float_func())
|
if (g_extern.audio_active && driver.audio->use_float && audio_use_float_func())
|
||||||
g_extern.audio_data.use_float = true;
|
g_extern.audio_data.use_float = true;
|
||||||
|
|
||||||
|
#ifdef HAVE_FIXED_POINT
|
||||||
|
if (g_extern.audio_data.use_float)
|
||||||
|
{
|
||||||
|
uninit_audio();
|
||||||
|
RARCH_ERR("RetroArch is configured for fixed point, but audio driver demands floating point. Will disable audio.\n");
|
||||||
|
g_extern.audio_active = false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!g_settings.audio.sync && g_extern.audio_active)
|
if (!g_settings.audio.sync && g_extern.audio_active)
|
||||||
{
|
{
|
||||||
audio_set_nonblock_state_func(true);
|
audio_set_nonblock_state_func(true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user