From bff5a9b8d80380988eebe4e76a02d3d9e13bbd88 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 22 Mar 2012 22:40:30 +0000 Subject: [PATCH] - 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) --- src/sound/fmodsound.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sound/fmodsound.cpp b/src/sound/fmodsound.cpp index 8c62e3b5e..8236ca9af 100644 --- a/src/sound/fmodsound.cpp +++ b/src/sound/fmodsound.cpp @@ -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) {