Unknown Listener is Hearing Events at Scene Origin

Hey @dongvanhung ! This isn’t a super glamorous solution, but it is quite simple and works for stopping the listener with the identity transform from ever getting created. Just make sure it exists at startup before RuntimeManager is initiated.

Have a “dummy listener” object that persists and after you have added the listeners you want at any given time, call a function similar to this. It will force the RuntimeManager to know which listeners you want to be working.

my GetActiveListeners() function is essentially checking for the amount of listeners that FMOD and my occlusion manager have registered. In your case, just check if RuntimeManager.Listeners is greater than 1, and if so, disable your dummy listener. Again, call this function right after any time you know you are creating a new object with a listener. If your RuntimeManager.RemoveListener() doesn’t look like this, it should!

Hope this helps! Cheers!

*** Note, I am using FMOD for Unity 2.02.04, newer versions may be different.

2 Likes