Version

menu_open
Wwise SDK 2024.1.0

◆ Init()

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::Init ( AkInitSettings in_pSettings,
AkPlatformInitSettings in_pPlatformSettings 
)

Initialize the sound engine.

Warning
This function is not thread-safe.
Remarks
The initial settings should be initialized using AK::SoundEngine::GetDefaultInitSettings() and AK::SoundEngine::GetDefaultPlatformInitSettings() to fill the structures with their default settings. This is not mandatory, but it helps avoid backward compatibility problems.
Returns
  • AK_Success if the initialization was successful
  • AK_MemManagerNotInitialized if the memory manager is not available or not properly initialized
  • AK_StreamMgrNotInitialized if the stream manager is not available or not properly initialized
  • AK_SSEInstructionsNotSupported if the machine does not support SSE instruction (only on the PC)
  • AK_InsufficientMemory if there is not enough memory available to initialize the sound engine properly
  • AK_InvalidParameter if some parameters are invalid
  • AK_AlreadyInitialized if the sound engine is already initialized, or if the provided settings result in insufficient
  • AK_Fail for unknown errors, check with AK Support. resources for the initialization.
See also
Parameters
in_pSettingsInitialization settings (can be NULL, to use the default values)
in_pPlatformSettingsPlatform-specific settings (can be NULL, to use the default values)

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