Version

menu_open
Warning: you were redirected to the latest documentation corresponding to your major release ( 2023.1.8.8601 ). Should you wish to access your specific version's documentation, please download the offline documentation from the Audiokinetic Launcher and check the Offline Documentation option in Wwise Authoring.
Wwise SDK 2023.1.8
Terminate the Different Modules of the Sound Engine

Introduction

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.

Terminating Communication Module

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.

Terminating Spatial Audio

If it has been initialized, Spatial Audio should be terminated before the sound engine.

Terminating the Music Engine

If it has been initialized, the music engine should be terminated before the sound engine.

Terminating the Sound Engine

Then move on to the sound engine itself:

Terminating the Streaming Manager

Next we terminate the Streaming Manager and Low-Level I/O:

Terminating the Memory Manager

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.

static IAkStreamMgr * Get()
Definition: IAkStreamMgr.h:735
AKSOUNDENGINE_API void Term()
AKSOUNDENGINE_API void Term()
virtual void Destroy()=0
AKSOUNDENGINE_API void Term()
AKSOUNDENGINE_API void Term()

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise