版本

menu_open
警告:系统已根据您所用大版本 (2021.1.14.8108) 自动跳转至最新文档。若想访问特定版本的文档,请从 Audiokinetic Launcher 下载离线文档,并在 Wwise 设计程序中勾选 Offline Documentation 选项。
Wwise SDK 2021.1.14

◆ SetListenerSpatialization()

AKSOUNDENGINE_API AKRESULT AK::SoundEngine::SetListenerSpatialization ( AkGameObjectID  in_uListenerID,
bool  in_bSpatialized,
AkChannelConfig  in_channelConfig,
AK::SpeakerVolumes::VectorPtr  in_pVolumeOffsets = NULL 
)

Sets a listener's spatialization parameters. This lets you define listener-specific volume offsets for each audio channel. If in_bSpatialized is false, only in_pVolumeOffsets is used for this listener (3D positions have no effect on the speaker distribution). Otherwise, in_pVolumeOffsets is added to the speaker distribution computed for this listener. Use helper functions of AK::SpeakerVolumes to manipulate the vector of volume offsets in_pVolumeOffsets.

备注
  • If a sound is mixed into a bus that has a different speaker configuration than in_channelConfig, standard up/downmix rules apply.
  • Sounds with 3D Spatialization set to None will not be affected by these parameters.
返回
AK_Success if message was successfully posted to sound engine queue AK_InvalidFloatValue if the value specified was NaN or Inf AK_InsufficientMemory if there wasn't enough memory in the message queue
参见
参数
in_uListenerID Listener game object ID
in_bSpatialized Spatialization toggle (True : enable spatialization, False : disable spatialization)
in_channelConfig Channel configuration associated with volumes in_pVolumeOffsets. Ignored if in_pVolumeOffsets is NULL.
in_pVolumeOffsets Per-speaker volume offset, in dB. See AkSpeakerVolumes.h for how to manipulate this vector.

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅