版本

menu_open
Wwise SDK 2021.1.14

◆ ComputePositioning()

virtual AKRESULT AK::IAkMixerPluginContext::ComputePositioning ( const AkPositioningData in_posData,
AkChannelConfig  in_inputConfig,
AkChannelConfig  in_outputConfig,
AK::SpeakerVolumes::MatrixPtr  out_mxVolumes 
)
pure virtual

Compute the speaker volume matrix of built-in positioning in Wwise from given positioning data and input and output channel configurations. You may use the returned volume matrix with IAkGlobalPluginContext::MixNinNChannels. Any known (non-anonymous) combination of configurations will work. For example, ambisonics will be decoded or encoded if needed.

备注: The function will fail if the input or output configuration is object-based, as the speaker volume matrix would be undefined.

All panning or spatialization types are honored. 3D Spatialization is performed relative to the default listener position (0,0,0) and orientation, where the front vector is (0,0,1) and the top vector is (0,1,0), left handed.

返回
AK_Success if succeeded, AK_InvalidParameter if the input or output configuration is object-based, or AK_Fail if the channel configurations are unknown or unhandled.
参见
IAkGlobalPluginContext
参数
in_posData Positioning data. The field "threeD" is ignored if in_posData.behavioral.spatMode is AK_SpatializationMode_None.
in_inputConfig Channel configuration of the input.
in_outputConfig Channel configuration of the output.
out_mxVolumes Returned volumes matrix. Must be preallocated using AK::SpeakerVolumes::Matrix::GetRequiredSize() (see AK::SpeakerVolumes::Matrix services).

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅