Wwise SDK 2019.1.11
|
Note: Before initializing the sound engine itself, the memory manager and streaming manager must be initialized. Please refer to the section Initializing Sound Engine Modules for more information about global initialization. |
Initializing the sound engine itself is done by calling the AK::SoundEngine::Init function. The default initialization shown in Initializing the sound engine is copied here for your convenience.
The AK::SoundEngine::Init function takes 2 parameters.
First parameter : AkInitSettings * in_pSettings
Second parameter : AkPlatformInitSettings * in_pPlatformSettings
Caution: Both parameters are considered optional, but we strongly recommend you customize these values to the needs of the game, because the default values often require high memory usage. Depending on the game type, memory settings should be adjusted carefully. Refer to the section Determining an Appropriate Size for Your Memory Pools for more information. |
The AkInitSettings and AkPlatformInitSettings structures must be initialized using the AK::SoundEngine::GetDefaultInitSettings and AK::SoundEngine::GetDefaultPlatformInitSettings functions.
Initializing the structure using these two functions fills the structures with the default parameters. This is useful because:
The following sample code demonstrates how to initialize the two main pools of the sound engine.
For more information on choosing memory pool sizes, refer to Optimizing Memory Pools.
Questions? Problems? Need more info? Contact us, and we can help!
Visit our Support pageRegister your project and we'll help you get started with no strings attached!
Get started with Wwise