When i use this:

eventsystem->load("Game.fev", 0);

It returns errors such as FMOD_ERR_MEMORY and FMOD_ERR_FILE_BAD. I have checked the code and rewrote it from scratch and it still happens.

I tried running the example one that uses this statement and it returned a FMOD_ERR_MEMORY error.

What is happening?


  • You must to post comments

Its possible there is something in your fev that is making the event system allocate a lot of memory.
Make sure you havent set maxplaybacks on your events too high (if an event is only heard once, set maxplaybacks to 1, not 100).
If you have all wavebanks set to ‘decompress into memory’ instead of ‘load into memory’ or ‘stream from disk’ it will take a lot of memory. Check that.
If you have a lot of comb filter effects inside events, such as echo/reverb/flange/chorus it will allocate a lot of memory for the effects.
There are more tips in the memory saving tutorial in the documentation.

  • You must to post comments

I did have a lot of waves stored in the wave banks and they were all being decompressed into memory.

However now i am getting the FMOD_ERR_FILE_BAD error again, as if the fev file is corrupt or something?

  • You must to post comments

I have tried loading lots of different fev files in different ways.

Everytime i try, there is always a huge pause when the file is loading, then it returns FMOD_ERR_FILE_BAD, what am i doing wrong?


  • You must to post comments

I created a new project and stripped it down to the basics, and it still happens.


include "fmod.h"

include "fmod_event.h"

include <windows.h>

include <stdio.h>

include <stdlib.h>

include <conio.h>

nt main(int argc, char *argv[])
FMOD::EventSystem *eventsystem;
FMOD::EventGroup *eventgroup;
FMOD::Event *FastForward;
int key;

result = FMOD::EventSystem_Create(&amp;eventsystem);
result = eventsystem-&gt;init(64, FMOD_INIT_NORMAL,0);

result = eventsystem-&gt;setMediaPath(&quot;//Audio&quot;);

result = eventsystem-&gt;load(&quot;examples.fev&quot;, 0);
result = eventsystem-&gt;getGroup(&quot;AudioGame2/Sounds&quot;, EVENT_DEFAULT, &amp;eventgroup);

eventgroup-&gt;getEvent(&quot;Sound&quot;, EVENT_DEFAULT, &amp;FastForward);


key = 0;

while (key != 27);

result = eventgroup-&gt;freeEventData();
result = eventsystem-&gt;release();

return 0;


Its not the fev file because, i have tried loading different ones and the same thing happens everytime. I cant see anything wrong with the code, I must be doing something stupid, but i cant see what?


  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.