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?
- micken asked 10 years ago
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.
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:
result = FMOD::EventSystem_Create(&faeEventSys);
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);
crashes at this errcheck
result = faeEventSys->load("test.fev", 0, 0);
Please login first to submit.