menu
 

Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

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

by Benoit S. (Audiokinetic) (16.0k points)
selected 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 !
...