Fixed: Applying reverb with FMOD 4.36.yy killed sound

- It turns out that the FMOD_REVERB_PROPERTIES structure actually changed
  with 4.36.00 and not with 4.38.00.
This commit is contained in:
Randy Heit 2016-02-06 19:27:08 -06:00
parent cbfb24ef33
commit 5ee988f607

View file

@ -698,8 +698,8 @@ bool FMODSoundRenderer::Init()
}
const char *wrongver = NULL;
#if FMOD_VERSION >= 0x43800
if (version < 0x43800)
#if FMOD_VERSION >= 0x43600
if (version < 0x43600)
#else
if (version < 0x42000)
#endif
@ -3135,7 +3135,7 @@ void FMODSoundRenderer::InitCreateSoundExInfo(FMOD_CREATESOUNDEXINFO *exinfo) co
FMOD_RESULT FMODSoundRenderer::SetSystemReverbProperties(const REVERB_PROPERTIES *props)
{
#if FMOD_VERSION < 0x43800
#if FMOD_VERSION < 0x43600
return Sys->setReverbProperties((const FMOD_REVERB_PROPERTIES *)props);
#else
// The reverb format changed when hardware mixing support was dropped, because