0
0

I’m currently testing out Windows 8 RP, and discovered that, in a game I’d written some time ago, FMOD.Factory.System_Create is returning ERR_FILE_BAD. I can’t find anything on google to suggest why it’s doing that.
The game currently works perfectly on Windows 7 and earlier, so it’s obviously a Windows 8 issue, but I can’t find anything to suggest what the cause is or how to fix it. Any ideas?

Variables:
[code:2zkfa3d9]private FMOD.System system = null;
private FMOD.Sound sound = null;
private FMOD.Channel channel = null;[/code:2zkfa3d9]

Code:
[code:2zkfa3d9] private FMOD.RESULT initSound() {
result = FMOD.Factory.System_Create(ref system); //Returns ERR_FILE_BAD
ERRCHECK(result);
result = system.getVersion(ref version); //Throws a NullReferenceException because system is null
ERRCHECK(result);
result = system.init(1, FMOD.INITFLAGS.NORMAL, (IntPtr)null);
ERRCHECK(result);
return result;[/code:2zkfa3d9]

  • You must to post comments
0
0

Nevermind. As it turns out, System_Create returns ERR_FILE_BAD when a 32-bit fmodex DLL is being used but VS is targeting "Any CPU". I realised this after looking through fmod.cs. Sorry for posting about such a silly mistake :s

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.