From d432fb77ef988d9f6ccfa590fe399cec4e861add Mon Sep 17 00:00:00 2001 From: Nelson Garcia Date: Fri, 17 Feb 2017 19:37:42 -0800 Subject: [PATCH] Conditional exclusion of WIN_FMODEX_OPENAL_DRIVER FMODEX removed support for FMOD_OUTPUTTYPE_OPENAL after V4.31.00 (refer to http://upstream.rosalinux.ru/diffs/fmod/43100_to_43101/diff.html). Therefore, the case for WIN_FMODEX_OPENAL_DRIVER is ignored when using versions of FMODEx that no longer support it. --- win32/CFMODEx.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/win32/CFMODEx.cpp b/win32/CFMODEx.cpp index b5a6b4d9..677b58a8 100644 --- a/win32/CFMODEx.cpp +++ b/win32/CFMODEx.cpp @@ -77,9 +77,12 @@ bool CFMODEx::InitFMODEx() case WIN_FMODEX_ASIO_DRIVER: fr = fmodSystem->setOutput(FMOD_OUTPUTTYPE_ASIO); break; + +#if FMOD_VERSION <= 0x00043100 case WIN_FMODEX_OPENAL_DRIVER: fr = fmodSystem->setOutput(FMOD_OUTPUTTYPE_OPENAL); break; +#endif } fr = fmodSystem->init(2,FMOD_INIT_NORMAL,0);