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

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>();
    }
}
...