Version

menu_open
Wwise SDK 2021.1.14

◆ ComputePositioning()

virtual AKRESULT AK::IAkSinkPluginContext::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. Any known (non-anonymous) combination of configurations will work. For example, ambisonics will be decoded or encoded if needed.

Note: 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.

Returns
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.
Parameters
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).

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise