0
0

Hi,

fmodex.dll says: version 0.4.12.5
fmod.h says: #define FMOD_VERSION 0x00041205

With the following code I get:
major: 4
middle: 18
minor: 5

[code:1m2zneek]fmod_version_major = fmod_version >> 16;

mask = 0x0000ff00;
fmod_version_middle = (fmod_version & mask) >> 8;

mask = 0x000000ff;
fmod_version_minor = (fmod_version & mask);
[/code:1m2zneek]

Regarding 12 hex = 18 dec, I came to the conclusion that the official version numbers are hexadecimal. Right?

I’m a little bit confused because I haven’t seen version numbers with letter A-F anywhere in my whole life … 😉

Stefan

  • You must to post comments
0
0

yes it is hex, so you can easily shift/mask the bits. We just skip the letters and stay with the numbers. 0x9 goes to 0x10 usually.

  • You must to post comments
0
0

Hi Stefan,

Looks like BCD to me:

[url:36yg1tqg]http://en.wikipedia.org/wiki/Binary-coded_decimal[/url:36yg1tqg]

Hope this helps.

Dave

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.