Closed DuFF14 closed 7 years ago
https://github.com/OSVR/OSVR-Unity/blob/master/OSVR-Unity/Assets/OSVRUnity/src/DisplayController.cs#L265
if (vrViewer.GetComponent<AudioListener>() == null) { vrViewer.AddComponent<AudioListener>(); //add an audio listener }
should be
if (FindObjectOfType<AudioListener>() == null) { vrViewer.AddComponent<AudioListener>(); //add an audio listener }
There is a memory leak if two audio listeners are in the scene.
https://github.com/OSVR/OSVR-Unity/blob/master/OSVR-Unity/Assets/OSVRUnity/src/DisplayController.cs#L265
should be
There is a memory leak if two audio listeners are in the scene.