版本

menu_open
Wwise SDK 2018.1.11

◆ RegisterListener()

AKRESULT __cdecl AK::SpatialAudio::RegisterListener ( AkGameObjectID  in_gameObjectID )

Assign a game object as the Spatial Audio listener. There can be only one Spatial Audio listener registered at any given time; in_gameObjectID will replace any previously set Spatial Audio listener. The game object passed in must be registered by the client, at some point, for sound to be heard. It is not necessary to be registered at the time of calling this function. If not listener is explicitly registered to spatial audio, then a default listener (set via AK::SoundEngine::SetDefaultListeners()) is selected. If the are no default listeners, or there are more than one default listeners, then it is necessary to call RegisterListener() to specify which listener to use with Spatial Audio.

参数
in_gameObjectID Game object ID

此页面对您是否有帮助?

需要技术支持?

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

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

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

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

开始 Wwise 之旅