0
0

I’m having trouble getting my program to load a .fev file. Here is the situation:

When i try to load the file, i get this:
FMOD error: 22
End of file unexpectedly reached while trying to read essential data (truncated data?).

so I thought it was a problem with my FEV file and moved the example file over and tried loading them and got the same problem.

Here’s the interesting part. running it from the example project it will work fine. The projects are almost identical, the only difference being mine is in release mode and the examples are in debug mode.

But this makes me think there’s somethign wrong with the method the program is trying to read the files with. Is there something i’m missing that’s telling the example projects to load in a different way?

I keep running into problems with this and can’t find a solution already on the forum or in the help files. am i looking in the wrong place?

thanks

  • You must to post comments
0
0

Sounds like you have overriden fmod’s file system with your own callbacks and have implemented the read or open callback incorrectly?

  • You must to post comments
0
0

does anyone know of a way to do this by accident?
or can anyone shed a little light on how this works inside fmod?

here’s my code:
[code:1qvpowwz]
FMOD_RESULT result;
result = FMOD::EventSystem_Create(&faeEventSys);
ERRCHECK(result);

result = faeEventSys->getSystemObject(&faeSys);
ERRCHECK(result);

result = faeEventSys->init(64, FMOD_INIT_NORMAL, 0, EVENT_INIT_NORMAL);
ERRCHECK(result);

result = faeEventSys->setMediaPath("..\\..\\sounds");
ERRCHECK(result);

result = faeEventSys->load("test.fev", 0 , 0);
ERRCHECK(result);
result = faeEventSys->getGroup("test/sfx", EVENT_DEFAULT, &g);
ERRCHECK(result);
g->loadEventData(EVENT_RESOURCE_STREAMS_AND_SAMPLES, EVENT_NONBLOCKING);

[/code:1qvpowwz]
crashes at this errcheck
[code:1qvpowwz]
result = faeEventSys->load("test.fev", 0, 0);
ERRCHECK(result);
[/code:1qvpowwz]

thanks!

  • You must to post comments
0
0

SOLVED

Interestingly I was using a newer version of the fmodex.dll

I was using version 0.4.6.22

In order to load the file correctly I guess you need version 0.4.6.19.

i’m thinking 0.4.6.22 is a debug DLL, and i was running my project in release.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.