I’m checking FMOD version on Android and iOS by using getVersion function of FMOD engine; see the code below. It reported the correct version number FMOD 2.0.9 that I was using earlier, but when I upgraded to FMOD 2.02.15, I’m getting now a version string of 2.2.21. This happens on both Android and iOS. Is there a bug or am I doing something wrong here?
private static FMOD.System _coresystem = new FMOD.System();
public uint GetVersionCode()
{
uint ver = 0;
RESULT res = _coresystem.getVersion(out ver);
if (res != RESULT.OK)
return 0;
return ver;
}
public string GetVersionString()
{
uint ver = GetVersionCode();
if (ver == 0)
return "";
uint majorversion = (ver >> 16) & 0xFFFFU;
uint minorversion = (ver >> 8) & 0xFFU;
uint patchversion = ver & 0xFFU;
string str = majorversion + "." + minorversion + "." + patchversion;
return str;
}