버전
menu_open
Wwise SDK 2018.1.11
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:

void TermSoundEngine()
{
... Termination will be done here ...
}

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:

void TermSoundEngine()
{
#ifndef AK_OPTIMIZED
//
// Terminate Communication Services
//
#endif // AK_OPTIMIZED
(...)
}
Caution: It is important to terminate the communication modules before the other modules.

Terminating the Music Engine

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

void TermSoundEngine()
{
(...)
//
// Terminate the music engine
//
(...)
}

Terminating the Sound Engine

Then move on to the sound engine itself:

void TermSoundEngine()
{
(...)
//
// Terminate the sound engine
//
(...)
}

Terminating the Streaming Manager

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

void TermSoundEngine()
{
(...)
// Terminate the streaming device and streaming manager
// CAkFilePackageLowLevelIOBlocking::Term() destroys its associated streaming device
// that lives in the Stream Manager, and unregisters itself as the File Location Resolver.
g_lowLevelIO.Term();
(...)
}

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:

void TermSoundEngine()
{
(...)
// Terminate the Memory Manager
}

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.


이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요