Make audio initialization failures non-fatal

git-svn-id: https://svn.eduke32.com/eduke32@1779 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2011-01-23 04:59:04 +00:00
parent b3cd9a73fe
commit eb2070e9c9

View file

@ -61,8 +61,8 @@ void S_SoundStartup(void)
if (FX_Init(fxdevicetype, ud.config.NumVoices, ud.config.NumChannels, ud.config.NumBits, ud.config.MixRate, initdata) != FX_Ok) if (FX_Init(fxdevicetype, ud.config.NumVoices, ud.config.NumChannels, ud.config.NumBits, ud.config.MixRate, initdata) != FX_Ok)
{ {
sprintf(tempbuf, "Sound startup error: %s", FX_ErrorString(FX_Error)); initprintf("%s\n", FX_ErrorString(FX_Error));
G_GameExit(tempbuf); return;
} }
for (i=g_maxSoundPos; i >= 0 ; i--) for (i=g_maxSoundPos; i >= 0 ; i--)