版本

menu_open
警告:系统已根据您所用大版本 (2022.1.16.8522) 自动跳转至最新文档。若想访问特定版本的文档,请从 Audiokinetic Launcher 下载离线文档,并在 Wwise 设计程序中勾选 Offline Documentation 选项。
Wwise SDK 2022.1.16

◆ GetBankParameters()

virtual bool AK.Wwise::Plugin::V1::AudioPlugin::GetBankParameters ( const GUID in_guidPlatform,
DataWriter in_dataWriter 
) const
inlinevirtual

Obtains parameters that will be written to a bank.

This is the usual function that gets overridden to provide data from the Authoring plug-in to the Sound Engine plug-in. Its goal is to retrieve data (usually from the PropertySet) and write it in the proper format and order, so the Sound Engine part can retrieve it and use it.

By design, this function is called to store data, as provided in the plug-in definition XML.

Because these can be changed at run-time, the parameter block should stay relatively small. For example, it should only provide basic members. Array sets, full sections, binary data or Object Stores might be better sent using the GetPluginData function, as the system can then ask to update only a portion of the parameters.

The design pattern, in that case, is to call GetPluginData at the end of GetBankParameters with some unique in_idParam (AK::IAkPluginParam::ALL_PLUGIN_DATA_ID) indicating that you want to send all the parameters to the data writer.

备注: In order to use the in_pDataWriter instance, your plugin must request the data writer interface: AK::Wwise::Plugin::RequestWrite.
参数
[in]in_guidPlatformThe unique ID of the queried platform
[in]in_dataWriterA reference to the data writer instance being used.
返回
true if successfully putting some parameters in the bank
参见

在文件 AudioPlugin.h228 行定义.


此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅