版本

menu_open
Wwise SDK 2023.1.3

◆ Init()

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

Initialize the sound engine.

警告
This function is not thread-safe.
备注
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.
返回
  • 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.
参见
参数
in_pSettingsInitialization settings (can be NULL, to use the default values)
in_pPlatformSettingsPlatform-specific settings (can be NULL, to use the default values)

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅