Version

menu_open
Warning: you were redirected to the latest documentation corresponding to your major release ( 2022.1.17.8543 ). Should you wish to access your specific version's documentation, please download the offline documentation from the Audiokinetic Launcher and check the Offline Documentation option in Wwise Authoring.
Wwise SDK 2022.1.17

◆ RegisterResourceMonitorCallback()

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::RegisterResourceMonitorCallback ( AkResourceMonitorCallbackFunc  in_pCallback)

Registers a resource monitor callback function that gets all of the resource usage data contained in the AkResourceMonitorDataSummary structure. This includes general information about the system, such as CPU usage, active Voices, and Events. This function will be called from the audio rendering thread at the end of each frame.

Remarks
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 resource callback. This function might stall for several milliseconds before returning. This function will return AK_Fail in Release
See also
Parameters
in_pCallbackFunction to register as a resource monitor callback.

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