Can you please shed some light for me on the inner workings of how FMUSIC_LoadSongEx works with FSOUND_LOADMEMORY: When you free a song after its been “loaded” from memory, does it free up the memory as well, or just the stuff from FMOD that it needs to play the song?

I change music tracks after every level of my game, but don’t want to keep alloc/freeing chunks of memory. I want to allocate a single chunk of memory at the start of the program, large enough for the largest song, and simply load a song into the block, play it, then free it without freeing up the underlying memory buffer that’s been allocated.

Will the behavior of FMUSIC_FreeSong in this case keep my memory allocated, or will it free it along with the song?

Thanks in advance,

Gene Ostrowski

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.