버전

menu_open
Wwise SDK 2023.1.3

◆ ComputeWeightedAmbisonicsDecodingFromSampledSphere()

virtual AKRESULT AK::IAkGlobalPluginContext::ComputeWeightedAmbisonicsDecodingFromSampledSphere ( const AkVector  in_samples[],
AkUInt32  in_uNumSamples,
AkChannelConfig  in_cfgAmbisonics,
AK::SpeakerVolumes::MatrixPtr  out_mxVolume 
)
pure virtual

Computes gain matrix for decoding an SN3D-normalized ACN-ordered ambisonic signal of order sqrt(in_cfgAmbisonics.uNumChannels)-1, with max-RE weighting function, on a (regularly) sampled sphere whose samples in_samples are expressed in left-handed cartesian coordinates, with unitary norm. This decoding technique is optimal for regular sampling. The returned matrix has in_cfgAmbisonics.uNumChannels inputs (rows) and in_uNumSamples outputs (columns), and is normalized by the number of samples. You may use the returned volume matrix with IAkPluginServiceMixer::MixNinNChannels. Supported ambisonic configurations are full-sphere 1st to 5th order.

반환값
  • AK_InvalidParameter if in_cfgAmbisonics is not an ambisonic configuration.
  • AK_InvalidParameter if in_cfgAmbisonics does not have enough channel for a valid ambisonic configuration of the specified order.
  • AK_InvalidParameter if in_samples contains non-normalized vectors (not unity length).
  • AK_Success otherwise.
매개변수
in_samplesArray of vector samples expressed in left-handed cartesian coordinates, where (1,0,0) points towards the right and (0,1,0) points towards the top. Vectors must be normalized.
in_uNumSamplesNumber of points in in_samples.
in_cfgAmbisonicsAmbisonic configuration. Supported configurations are 1st to 5th order. Determines number of rows (input channels) in matrix out_mxVolume.
out_mxVolumeReturned volume matrix of in_cfgAmbisonics.uNumChannels rows x in_uNumSamples colums. Must be allocated prior to calling this function with the size returned by AK::SpeakerVolumes::Matrix::GetRequiredSize() for the desired number of channels.

이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요