Wwise SDK 2021.1.6
Once your game is ready to exit and does not require audio anymore, it's time to terminate all the modules that were initialized earlier. Our sample program uses the following function to group all of the termination code:
Termination will be done in the reverse order compared to initialization.
If it has been initialized, let's start by terminating the communication module:
|Caution: It is important to terminate the communication modules before the other modules.|
If it has been initialized, Spatial Audio should be terminated before the sound engine.
If it has been initialized, the music engine should be terminated before the sound engine.
Then move on to the sound engine itself:
Next we terminate the Streaming Manager and Low-Level I/O:
Finally, now that all the clients of the Memory Manager have been terminated, it's time for the Memory Manager itself to go as well:
Everything related to the sound engine has now been cleaned-up, and we are ready to exit the program. Next, you should move on to Integrate Wwise Elements into Your Game.