Version

menu_open
Wwise SDK 2022.1.12

◆ ComputeAmbisonicsEncoding()

virtual void AK::IAkGlobalPluginContext::ComputeAmbisonicsEncoding ( AkReal32  in_fAzimuth,
AkReal32  in_fElevation,
AkChannelConfig  in_cfgAmbisonics,
AK::SpeakerVolumes::VectorPtr  out_vVolumes 
)
pure virtual

Computes gain vector for encoding a source with angles in_fAzimuth and in_fElevation to full-sphere ambisonics with order in_uOrder. Ambisonic channels are ordered by ACN and use the SN3D convention.

Parameters
in_fAzimuthIncident angle, in radians [-pi,pi], where 0 is the front (positive values are clockwise).
in_fElevationIncident angle, in radians [-pi/2,pi/2], where 0 is the azimuthal plane.
in_cfgAmbisonicsDetermines number of gains in vector out_vVolumes.
out_vVolumesReturned volumes (see AK::SpeakerVolumes::Vector services). Must be allocated prior to calling this function with the size returned by AK::SpeakerVolumes::Vector::GetRequiredSize() for the desired number of channels.

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