- Fixed: Trying to init FMOD with profiling enabled when the network socket was in use would fail.

We now fallback to no profiling when this happens.

SVN r3468 (trunk)
This commit is contained in:
Randy Heit 2012-03-22 22:40:30 +00:00
parent dd21e7d2b8
commit bff5a9b8d8

View file

@ -979,6 +979,12 @@ bool FMODSoundRenderer::Init()
continue;
}
}
else if (result == FMOD_ERR_NET_SOCKET_ERROR && (initflags & FMOD_INIT_ENABLE_PROFILE))
{
Printf(TEXTCOLOR_RED" Could not create socket. Retrying without profiling.\n");
initflags &= ~FMOD_INIT_ENABLE_PROFILE;
continue;
}
#ifdef _WIN32
else if (result == FMOD_ERR_OUTPUT_INIT)
{