Version

menu_open
virtual AKRESULT AK::IAkGlobalPluginContext::RegisterGlobalCallback ( AkGlobalCallbackFunc  in_pCallback,
AkUInt32  in_eLocation = AkGlobalCallbackLocation_BeginRender,
void *  in_pCookie = NULL  
) [pure virtual]

Register 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);

Remarks:
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.

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