From b84bcc3670acb361cf9739340b24a33f389fa123 Mon Sep 17 00:00:00 2001 From: Themaister Date: Fri, 6 Jul 2012 18:15:14 +0200 Subject: [PATCH] Check if use_float is set while doing fixed point. --- driver.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/driver.c b/driver.c index 33633c2d9c..31fb759391 100644 --- a/driver.c +++ b/driver.c @@ -335,6 +335,15 @@ void init_audio(void) if (g_extern.audio_active && driver.audio->use_float && audio_use_float_func()) 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) { audio_set_nonblock_state_func(true);