Version

menu_open
Wwise SDK 2018.1.11

◆ 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_fAzimuth Incident angle, in radians [-pi,pi], where 0 is the front (positive values are clockwise).
in_fElevation Incident angle, in radians [-pi/2,pi/2], where 0 is the azimuthal plane.
in_cfgAmbisonics Determines number of gains in vector out_vVolumes.
out_vVolumes Returned 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. You may obtain the number of channels from the order using the helper AK::AmbisonicOrderToNumChannels().

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