社区问答

欢迎来到 Audiokinetic 社区问答论坛。在此,Wwise 和 Strata 用户可互帮互助。如需我们团队直接提供协助,请前往技术支持申请单页面。若要报告问题,请在 Audiokinetic Launcher 中选择“报告错误”选项(注意,问答论坛并不会接收错误报告)。我们内部设有专门的错误报告系统,会有专人查看报告并设法解决问题。

要想尽快得到满意的解答,请在提问时注意以下几点:

  • 描述尽量具体:比如,想达到什么样的目的,或者具体哪里有问题。
  • 包含关键细节:比如,Wwise 和游戏引擎版本以及所用操作系统等等。
  • 阐明所做努力:阐明自己为了排除故障都采取了哪些措施。
  • 聚焦问题本身:聚焦于问题本身的相关技术细节,以便别人可以快速找到解决方案。

+2 投票
Greetings,

Im trying to change the listener in our game from the camera, which is the default setting, to the character mesh. Any leads would help greatly. I should mention that I'm using UE 4.16.3 and Wwise 2017.1.2.6361 and I'm implementing Audio in C++.

And thank you.
分类:General Discussion | 用户: Aissa B. (280 分)
修改于 用户:Aissa B.
Incredible that this has 1000 views but no answer after 3 years. I'm having this issue currently. Where if I add the character as the default listener and remove the CameraManager as a default listener. I get a crash in AkComponent's TickComponent function. Would like to get an answer for this.

2 个回答

0 投票
 
已采纳
I just learned this today while fiddling around in the Wwise Adventure Game 301 certification course. I removed the Ak Audio Listener script from the Main Camera prefab and simply applied the same script to the Player model prefab and checked the "Is Default Listener" box. And in the Ak Game Obj script component (that is being automatically applied when adding the Ak Audio Listener) you should deselect "Environment Aware".
This seems to work for me. I ran around inside the Library section and it is clearly the Player that is the listener now - camera movement doesn't effect any audio.
用户: Robert E. (550 分)
采纳于 用户:Aissa B.
In the future please refrain from answering a question about Unreal Engine with an answer for Unity. There is no goddamn AkAudioListener script in Unreal. This answer is a complete non-answer.
+3 投票
You'll need to modify in C++ the function `UAkAudioDevice::OnActorSpawned`. This function gets bound to UWorld's OnActorSpawned delegate and that function checks to see if the spawned actor is a player camera manager owned by the local player, and if it is, it adds an AkComponent to the player camera manager and adds that component as a default listener. Don't know why tf people are responding with Unity answers...
用户: Mike P. (970 分)
...