版本

menu_open
警告:此页面上某些受保护的信息未予显示。
若为特定平台的授权用户,请确保已登录相应的帐户。

Quick Start Sample Integration - Plug-Ins

Plug-in Example

As explained in Integration Details - Plug-Ins, plug-ins can be used to extend the capabilities of Wwise with new sources and effects.

Your game must register all the source and effect plug-ins it might need with calls to AK::SoundEngine::RegisterPlugin(). For example, the sample project registers the Wwise Reverb effect which is used on the Voices Control Bus:

#include <AK/Plugin/AkRoomVerbFXFactory.h>          // Effect ID and creation functions of the Wwise RoomVerb plug-in
#include <AK/Plugin/AkAudioInputSourceFactory.h>    // Effect ID and creation functions of the Audio Input source plug-in

(...)

//
// Register plug-ins. You must register each source or effect plug-in used
// in your game (in this case just the Wwise RoomVerb effect and the Audio Input source plug-ins)
//

// Register RoomVerb FX plugin
AK::SoundEngine::RegisterPlugin( 
    AkPluginTypeEffect,
    AKCOMPANYID_AUDIOKINETIC,
    AKEFFECTID_ROOMVERB,
    CreateRoomVerbFX,
    CreateRoomVerbFXParams 
    );

// Register Audio Input source plugin
AK::SoundEngine::RegisterPlugin( 
    AkPluginTypeSource,
    AKCOMPANYID_AUDIOKINETIC,
    AKSOURCEID_AUDIOINPUT,
    CreateAudioInputSource,
    CreateAudioInputSourceParams 
    );

Refer to Creating New Plug-ins for information about creating your own source and effect plug-ins.

Note.gif
Note: This sample code comes from the Sound Engine Integration Sample Project available in the Samples section. Refer to Integration Demo Sample for more information.

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅