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
- glutro asked 14 years ago
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
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().
Please login first to submit.