When i use this:
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?
- BlackbeardNoob asked 11 years ago
I created a new project and stripped it down to the basics, and it still happens.
nt main(int argc, char *argv)
result = FMOD::EventSystem_Create(&eventsystem); result = eventsystem->init(64, FMOD_INIT_NORMAL,0); result = eventsystem->setMediaPath("//Audio"); result = eventsystem->load("examples.fev", 0); result = eventsystem->getGroup("AudioGame2/Sounds", EVENT_DEFAULT, &eventgroup); eventgroup->getEvent("Sound", EVENT_DEFAULT, &FastForward); FastForward->start(); key = 0; while (key != 27); result = eventgroup->freeEventData(); result = eventsystem->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?
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.
Please login first to submit.