0
0

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.

  • You must to post comments
0
0

[quote="brett":2drn05nj]Hi outi,
Are you are sure you are not just running out of memory because the sounds are being decompressed?
[/quote:2drn05nj]

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.

  • You must to post comments
0
0

OK. With this libraries it’s compiled succesfully.
PlaySound example worked.
Thanks for help.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.