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);
- Returns
-
-
AK_Success
if successful
-
AK_InvalidParameter
if parameters are out of range (check debug console or Wwise Profiler)
- 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. |