Version

menu_open
Wwise SDK 2021.1.14

◆ 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_pCallback Function 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