版本

menu_open
警告:系统已根据您所用大版本 (2023.1.3.8471) 自动跳转至最新文档。若想访问特定版本的文档,请从 Audiokinetic Launcher 下载离线文档,并在 Wwise 设计程序中勾选 Offline Documentation 选项。
Wwise SDK 2023.1.3

◆ RegisterGlobalCallback()

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::RegisterGlobalCallback ( AkGlobalCallbackFunc  in_pCallback,
AkUInt32  in_eLocation = AkGlobalCallbackLocation_BeginRender,
void *  in_pCookie = NULL,
AkPluginType  in_eType = AkPluginTypeNone,
AkUInt32  in_ulCompanyID = 0,
AkUInt32  in_ulPluginID = 0 
)

Registers a global callback function. This function will be called from the audio rendering thread, at the location specified by in_eLocation. This function will also be called from the thread calling
AK::SoundEngine::Term with in_eLocation set to AkGlobalCallbackLocation_Term. For example, in order to be called at every audio rendering pass, and once during teardown for releasing resources, you would call RegisterGlobalCallback(myCallback, AkGlobalCallbackLocation_BeginRender | AkGlobalCallbackLocation_Term, myCookie, AkPluginTypeNone, 0, 0);

备注
A Plugin Type, Company ID and Plugin ID can be provided to this function to enable timing in the performance monitor. If the callback is being timed, it will contribute to the Total Plug-in CPU measurement, and also appear in the Plug-ins tab of the Advanced Profiler by plug-in type and ID. It is illegal to call this function while already inside of a global callback. This function might stall for several milliseconds before returning.
返回
  • AK_Success if successful
  • AK_InvalidParameter if parameters are out of range (check debug console or Wwise Profiler)
参见
参数
in_pCallbackFunction to register as a global callback.
in_eLocationCallback location defined in AkGlobalCallbackLocation. Bitwise OR multiple locations if needed.
in_pCookieUser cookie.
in_eTypePlug-in type (for example, source or effect). AkPluginTypeNone for no timing.
in_ulCompanyIDCompany identifier (as declared in the plug-in description XML file). 0 for no timing.
in_ulPluginIDPlug-in identifier (as declared in the plug-in description XML file). 0 for no timing.

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅