版本

menu_open
Wwise Unreal Integration Documentation
WwiseProcessing Module

Global Callbacks

The Integration includes a Global Callbacks singleton feature, which games and tools can use to leverage the Sound Engine’s AkGlobalCallback. For a description of the callbacks, see AkCallbackType in the Wwise SDK documentation. Each callback has several functions, each of which has its own uses. None of the functions is ideal in all scenarios.

The following functions are available for each callback:

  • <Location>Async: The least expensive method, in which the callback is executed as soon as a Task Graph thread is available. You must ensure that the callback follows the best practices for multithreaded code.
  • <Location>Sync: The fastest, most reactive method, but also the riskiest. It executes the callback in the sound engine threads, which can cause slowdowns and audio glitches. In addition, the limitations of threads created outside of the Unreal thread pools can affect performance. They don’t have the same Unreal thread-local data, stack sizes are different, and priority might be different. Use this option with caution.
  • <Location>Game: The recommended method for user interface tasks, in which the callback must be executed on the Game Thread.

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅