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.

Unity integration code stubbornly removes listeners

+1 vote
I have listener (AkAudioListener) attached in non-standard way - not to the camera but to the player object. After each new integration the code stubbornly deletes my listener not adding new one. The only way for me to get rid of this annoying behavior was to comment out all code that deals with adding/removing listeners.
asked Jan 21, 2016 in General Discussion by Maciej M. (510 points)

1 Answer

0 votes

Hi,

We had the same problem. The AkWwisePostImportCallback script calls Component.DestroyImmediate(akAudioListeners[0]); on line 245 in case the wwise setting "Attach Listener to Main Camera" is set to false.

The problem is it can delete your own AkListener even if it's not on the one on the main camera... We also temporarily solved this by comming the line out.
Maybe this should be solved in the next version ?
answered Jan 21, 2016 by Anthony D. (260 points)
...