I’m having problems with OGG files and FMOD. After calling createSound() multiple times (5-10) to play OGGs it gives FMOD_ERR_MEMORY as a result and after a while FMOD crashes.
I give FMOD a 4mb memory pool with Memory_Initialize() and the ‘currentalloced ‘ and ‘maxalloced ‘ values given by Memory_GetStats() is <3mb before the error happens. The OGGs are relatively small (~30kb) and they are already loaded to memory (played with FMOD_OPENMEMORY). Problem exists only with OGGs, when using XMAs or WAVs everything works fine.
Could there still be some memory leaking in OGG codec? After updating to the latest FMOD (which features some OGG codec fix) it now takes longer for the memory error to occur, but it still happens.
- outi asked 11 years ago
Are you are sure you are not just running out of memory because the sounds are being decompressed?
Yes, it is possible that 4mb is not enough.
But, the error comes with even 10mb memory pool, Memory_GetStats() still giving constantly values under 2 mb for ‘currentalloced’. (And the peak is under 3mb.) I don’t understand where that 8mb suddenly disappears…
But, thanks for the comment anyway, I just have to continue debugging.
- outi answered 11 years ago
Please login first to submit.