Fix bug with use_float.

If audio driver changed from pulse to alsa via config change,
audio would be broken as use_float would be set to true.
This commit is contained in:
Themaister 2013-09-22 14:30:33 +02:00
parent 426e09398c
commit ae0d1ff282

View File

@ -545,6 +545,7 @@ void init_audio(void)
g_extern.audio_active = false;
}
g_extern.audio_data.use_float = false;
if (g_extern.audio_active && driver.audio->use_float && audio_use_float_func())
g_extern.audio_data.use_float = true;