Other Documentation

Wwise SDK 2022.1.8

◆ 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.

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
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