버전

menu_open
Wwise SDK 2018.1.11

◆ RegisterGlobalCallback()

AKRESULT __cdecl 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);

Remarks
A Plugin Type, Company ID and Plugin ID can be provided to this function to enable timing in the performance montior. 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.
See also
Parameters
in_pCallback Function to register as a global callback.
in_eLocation Callback location defined in AkGlobalCallbackLocation. Bitwise OR multiple locations if needed.
in_pCookie User cookie.
in_eType Plug-in type (for example, source or effect). AkPluginTypeNone for no timing.
in_ulCompanyID Company identifier (as declared in the plug-in description XML file). 0 for no timing.
in_ulPluginID Plug-in identifier (as declared in the plug-in description XML file). 0 for no timing.

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

지원이 필요하신가요?

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

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

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

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

Wwise를 시작해 보세요