0
0

Hi i am coding in C with FMOD but i want to know if the application is closed by alf-F4 or something like that,is the FMOD close all the stream ?
or have we to do an atexit(); call to a function which close everything ? and so how call the FSOUND_Stream_Close(*); to do it ?

Thank you, sorry for this newbie’s question, but i want to make a clean code :)

@++

  • You must to post comments
0
0

I think (but it must be verified) that if you exit without freeing your stream/sample/whatyouwant, your app will crash. Btw it is more safer to always clean by yourself memory related allocation.
FSOUND_Stream_Close need the stream to be freed. The doc explain it better than me :)

  • You must to post comments
0
0

At the very LEAST, call FSOUND_Close() in your atexit handler. Most samples are stored in an internal pool, so FSOUND_Close() will close them as part of FMOD shutdown.

In conclusion: NEVER let an app close without at least calling FSOUND_Close().

  • You must to post comments
0
0

It was exactly the answer of my question thanks all ++

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.