社区问答

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

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

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

0 投票
Hello. 
 
I am working currently on a student project, we are using Wwise integrated with Unity 4.
I have made a 3D sound in the scene, set up the positioning with my desired attenuation, But for some reason the sound's position is reversed.
When my player is standing left to the object I hear it on the right side and vice versa.
 
To fix that I reverse the input in the AkSoundEngine, but I am sure there is a better way to fix it. 
 
  public static AKRESULT SetListenerPosition(float FrontX, float FrontY, float FrontZ, float TopX, float TopY, float TopZ, float PosX, float PosY, float PosZ, uint in_ulListenerIndex) {
    AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_SetListenerPosition(-FrontX, FrontY, FrontZ, TopX, TopY, TopZ, PosX, PosY, PosZ, in_ulListenerIndex);
//The ForntX is reversed "-FrontX" In Order to make the sound positioning play accurately
 
I am sure the problem runs deeper then that, any thoughts what might be the real problem? Or where to look?
Thanks In Advance
分类:General Discussion | 用户: Dani K. (180 分)

1个回答

0 投票
 
已采纳

I just tested this in a new project, and I don't see the issue. Here's what I did:

  1. Create a new project, using the Character Controller and Terrain standard packages
  2. Create a new terrain, and add the First person controller to the scene
  3. Install the Wwise Unity Integration, pointing it to my Wwise project
  4. Create a cube, and, from the Wwise Picker, Drag & Drop the bank and event related to the 3D sound on the cube
  5. In Wwise, generate the banks
  6. In Unity, preview the scene, and walk around the cube

When I perform the above steps, the positionning is correct. Off the top of my head, have you thought of looking at the transform if the GameObject where the AkAudioListener script is attached (it should be on the Main Camera)?

用户: Benoit S. (Audiokinetic) (16.0k 分)
采纳于 用户:Benoit S. (Audiokinetic)
Thanks for your answer, I figured it out. I had an Aux splitter that allows me to connect more the 2 Aux cables into the same jack, and that was causing the problem, Thanks anyway :)
Hello, had exactly the same problem here. This topic helped me figure out that my headphones were reversed -_-
Sometimes dumbest problems require greatest efforts...
Thanks anyway !
...