版本

menu_open

Create Recurring Calls to Perform Audio Processing

Introduction

Now that the sound engine has been fully initialized, we need to make some recurring calls so the various modules can process data. This is typically done in the game loop, once per frame. Our sample program will call the following function at more or less regular intervals in the main message loop:

void ProcessAudio()
{
    ... Recurring call to the sound engine will be done here ...
}

Sound Engine Processing

We call AK::SoundEngine::RenderAudio() so the sound engine processes all pending bank load/unload requests, events, position changes, states, switches, RTPCs, etc. If communications are enabled, they are also processed within RenderAudio().

void ProcessAudio()
{
    // Process bank requests, events, positions, RTPC, etc.
    AK::SoundEngine::RenderAudio();
}

Refer to Integrating Events in Your Game for more information.

You have now set up the frame rendering for your game. To continue, refer to Terminate the Different Modules of the Sound Engine.


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅