Wwise Version
arrow_right Table of Contents
Wwise SDK 2021.1.6

◆ ComputeSpeakerVolumesDirect()

virtual AKRESULT AK::IAkMixerPluginContext::ComputeSpeakerVolumesDirect ( AkChannelConfig  in_inputConfig,
AkChannelConfig  in_outputConfig,
AkReal32  in_fCenterPerc,
AK::SpeakerVolumes::MatrixPtr  out_mxVolumes 
pure virtual

Compute a direct speaker assignment volume matrix with proper downmixing rules between two channel configurations. You may use the returned volume matrix with IAkGlobalPluginContext::MixNinNChannels.

Note: ComputePositioning is more general than this one, as it can also compute speaker gains for non-3D spatialization, and should be favored.
AK_Success if successful, AK_Fail otherwise.
See also
in_inputConfig Channel configuration of the input.
in_outputConfig Channel configuration of the mixer output.
in_fCenterPerc Center percentage. Only applies to mono inputs with standard output configurations that have a center channel.
out_mxVolumes Returned volumes matrix. Must be preallocated using AK::SpeakerVolumes::Matrix::GetRequiredSize() (see AK::SpeakerVolumes::Matrix services).