版本

menu_open
Wwise SDK 2023.1.8
AkSpeakerVolumes.h 文件参考
#include <AK/SoundEngine/Common/AkTypes.h>
#include <AK/SoundEngine/Platforms/Generic/AkSpeakerVolumes.h>
#include <AK/Tools/Common/AkAssert.h>
#include <AK/Tools/Common/AkPlatformFuncs.h>

浏览源代码.

命名空间

namespace  AK
 Audiokinetic namespace
 
 AK::SpeakerVolumes
 Multi-channel volume definitions and services.
 
 AK::SpeakerVolumes::Vector
 Volume vector services.
 
 AK::SpeakerVolumes::Matrix
 Volume matrix (multi-in/multi-out channel configurations) services.
 

类型定义

typedef AkReal32AK::SpeakerVolumes::VectorPtr
 Volume vector. Access each element with the standard bracket [] operator. 更多...
 
typedef AkReal32AK::SpeakerVolumes::MatrixPtr
 Volume matrix. Access each input channel vector with AK::SpeakerVolumes::Matrix::GetChannel(). 更多...
 
typedef const AkReal32AK::SpeakerVolumes::ConstVectorPtr
 Constant volume vector. Access each element with the standard bracket [] operator. 更多...
 
typedef const AkReal32AK::SpeakerVolumes::ConstMatrixPtr
 Constant volume matrix. Access each input channel vector with AK::SpeakerVolumes::Matrix::GetChannel(). 更多...
 

函数

AkForceInline void AK::SpeakerVolumes::Vector::Copy (VectorPtr in_pVolumesDst, ConstVectorPtr in_pVolumesSrc, AkUInt32 in_uNumChannels)
 Copy volumes. 更多...
 
AkForceInline void AK::SpeakerVolumes::Vector::Copy (VectorPtr in_pVolumesDst, ConstVectorPtr in_pVolumesSrc, AkUInt32 in_uNumChannels, AkReal32 in_fGain)
 Copy volumes with gain. 更多...
 
AkForceInline void AK::SpeakerVolumes::Vector::Zero (VectorPtr in_pVolumes, AkUInt32 in_uNumChannels)
 Clear volumes. 更多...
 
AkForceInline void AK::SpeakerVolumes::Vector::Add (VectorPtr in_pVolumesDst, ConstVectorPtr in_pVolumesSrc, AkUInt32 in_uNumChannels)
 Accumulate two volume vectors. 更多...
 
AkForceInline AkReal32 AK::SpeakerVolumes::Vector::L1Norm (ConstVectorPtr io_pVolumes, AkUInt32 in_uNumChannels)
 Compute the sum of all components of a volume vector. 更多...
 
AkForceInline void AK::SpeakerVolumes::Vector::Mul (VectorPtr in_pVolumesDst, const AkReal32 in_fVol, AkUInt32 in_uNumChannels)
 Multiply volume vector with a scalar. 更多...
 
AkForceInline void AK::SpeakerVolumes::Vector::Mul (VectorPtr in_pVolumesDst, ConstVectorPtr in_pVolumesSrc, AkUInt32 in_uNumChannels)
 Multiply two volume vectors. 更多...
 
AkForceInline void AK::SpeakerVolumes::Vector::Max (AkReal32 *in_pVolumesDst, const AkReal32 *in_pVolumesSrc, AkUInt32 in_uNumChannels)
 Get max for all elements of two volume vectors, independently. 更多...
 
AkForceInline void AK::SpeakerVolumes::Vector::Min (AkReal32 *in_pVolumesDst, const AkReal32 *in_pVolumesSrc, AkUInt32 in_uNumChannels)
 Get min for all elements of two volume vectors, independently. 更多...
 
AkForceInline AkUInt32 AK::SpeakerVolumes::Matrix::GetRequiredSize (AkUInt32 in_uNumChannelsIn, AkUInt32 in_uNumChannelsOut)
 Compute size (in bytes) required for given channel configurations. 更多...
 
AkForceInline AkUInt32 AK::SpeakerVolumes::Matrix::GetNumElements (AkUInt32 in_uNumChannelsIn, AkUInt32 in_uNumChannelsOut)
 Compute size (in number of elements) required for given channel configurations. 更多...
 
AkForceInline VectorPtr AK::SpeakerVolumes::Matrix::GetChannel (MatrixPtr in_pVolumeMx, AkUInt32 in_uIdxChannelIn, AkUInt32 in_uNumChannelsOut)
 Get pointer to volume distribution for input channel in_uIdxChannelIn. 更多...
 
AkForceInline ConstVectorPtr AK::SpeakerVolumes::Matrix::GetChannel (ConstMatrixPtr in_pVolumeMx, AkUInt32 in_uIdxChannelIn, AkUInt32 in_uNumChannelsOut)
 Get pointer to volume distribution for input channel in_uIdxChannelIn. 更多...
 
AkForceInline void AK::SpeakerVolumes::Matrix::Copy (MatrixPtr in_pVolumesDst, ConstMatrixPtr in_pVolumesSrc, AkUInt32 in_uNumChannelsIn, AkUInt32 in_uNumChannelsOut)
 Copy matrix. 更多...
 
AkForceInline void AK::SpeakerVolumes::Matrix::Copy (MatrixPtr in_pVolumesDst, ConstMatrixPtr in_pVolumesSrc, AkUInt32 in_uNumChannelsIn, AkUInt32 in_uNumChannelsOut, AkReal32 in_fGain)
 Copy matrix with gain. 更多...
 
AkForceInline void AK::SpeakerVolumes::Matrix::Zero (MatrixPtr in_pVolumes, AkUInt32 in_uNumChannelsIn, AkUInt32 in_uNumChannelsOut)
 Clear matrix. 更多...
 
AkForceInline void AK::SpeakerVolumes::Matrix::Mul (MatrixPtr in_pVolumesDst, const AkReal32 in_fVol, AkUInt32 in_uNumChannelsIn, AkUInt32 in_uNumChannelsOut)
 Multiply a matrix with a scalar. 更多...
 
AkForceInline void AK::SpeakerVolumes::Matrix::Add (MatrixPtr in_pVolumesDst, ConstMatrixPtr in_pVolumesSrc, AkUInt32 in_uNumChannelsIn, AkUInt32 in_uNumChannelsOut)
 Add all elements of two volume matrices, independently. 更多...
 
AkForceInline void AK::SpeakerVolumes::Matrix::MAdd (MatrixPtr in_pVolumesDst, ConstMatrixPtr in_pVolumesSrc, AkUInt32 in_uNumChannelsIn, AkUInt32 in_uNumChannelsOut, AkReal32 in_fGain)
 Pointwise Multiply-Add of all elements of two volume matrices. 更多...
 
AkForceInline void AK::SpeakerVolumes::Matrix::AbsMax (MatrixPtr in_pVolumesDst, ConstMatrixPtr in_pVolumesSrc, AkUInt32 in_uNumChannelsIn, AkUInt32 in_uNumChannelsOut)
 Get absolute max for all elements of two volume matrices, independently. 更多...
 
AkForceInline void AK::SpeakerVolumes::Matrix::Max (MatrixPtr in_pVolumesDst, ConstMatrixPtr in_pVolumesSrc, AkUInt32 in_uNumChannelsIn, AkUInt32 in_uNumChannelsOut)
 Get max for all elements of two volume matrices, independently. 更多...
 

详细描述

Multi-channel volume definitions and services. Always associated with an AkChannelConfig. In the case of standard configurations, the volume items ordering match the bit ordering in the channel mask, except for the LFE which is skipped and placed at the end of the volume array. Refer to 使用 Speaker Matrix Callback 定制高级混音 for an example of how to manipulate speaker volume vectors/matrices.

在文件 AkSpeakerVolumes.h 中定义.


此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅