Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Unity 3D sounds is reversed

0 votes
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
asked Sep 10, 2014 in General Discussion by Dani K. (180 points)

1 Answer

0 votes
Best answer

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)?

answered Sep 10, 2014 by Benoit S. (Audiokinetic) (15,960 points)
selected Sep 12, 2014 by 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 !