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
I'm using Wwise 2014.1 in a Unity 4.5.5 project with the Oculus VR and Leap Motion Plugin. I load the AkAudioListener script onto an object between the left and the right camera of the VR system and it works the entire session. Howerever, after reopening the scene, the AkAudioListener has been removed. Is this a known behaviour and what is causing the issue?

EDIT: In Unity, Wwise settings are set as follows:

[ ] Create WwiseGlobal GameObject

[ ] Add Ak Audio Listener to Main Camera

So both are unchecked (intentionally). I don't want the AkAudioListener automatically placed to the Main Camera as I'm using an object in the middle of the Oculus VR rig.
in General Discussion by David S. (150 points)

1 Answer

0 votes
Thanks for reporting this, there is a bug with our Listener management code. It will be fixed in the next version of our integration.
by Benoit S. (Audiokinetic) (16.0k points)
edited by Benoit S. (Audiokinetic)
I'm getting this issue in my scene with Unity 5.1.2f1 and Unity Wwise integration 5.1.1.

When re-opening scene AkAudioListener script has disappeared.
It also disappears after building to another device and then coming back to editor. Eg. I add AkAudioListener to the listener object in my scene. I play in Editor = works great. If I build on Android it works = great! But when I return to that object after building it for Android the AkAudioListener has disappeared again.
My work-around solution to this problem is to attach this script to the AK Listener object in the scene. It will automatically attach the AkAudioListener script to the the object in runtime:


using UnityEngine;
using System.Collections;

public class AutoAttachAKAudioListener : MonoBehaviour {

    // Use this for initialization
    void Start () {
        gameObject.AddComponent <AkAudioListener>();
    }
}
...