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.
This commit is contained in:
Nelson Garcia 2017-02-17 19:37:42 -08:00
parent ac9e3f2094
commit d432fb77ef

View File

@ -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);