googlearchive / tango-examples-unity

Project Tango [deprecated] UnitySDK Example Projects
https://developers.google.com/ar
Apache License 2.0
470 stars 242 forks source link

App fails to startup when integrating GVR Spatial Audio #69

Closed andrewnakas closed 7 years ago

andrewnakas commented 7 years ago

Following the GVR Tango integration guide, I am able to get Tango working with the GVR sdk. Everything works as expected until I add the GVR Spatial Audio, which causes a crash on startup. I did temporarily get Spatial audio working with the native oculus package in unity, but it's definitely not as powerful and just does not feel as immersive as it should be. Any insight?

I'm not sure if I got the event in here, but here is a link to some log cat. https://docs.google.com/document/d/1yYsfU-nG6WlgNb-7mvCwxasDtYfUqCZ1jxMQZrJLFPo/edit?usp=sharing

Thanks! Stoked on GVR!

bopangzz commented 7 years ago

Which version of Unity you are using?

andrewnakas commented 7 years ago

I've been able to reproduce the crash with both 5.5 and 5.6. I also tried to get it running with both gvr 1.1.0 and .8.5.

bopangzz commented 7 years ago

I think the issue you are seeing is caused by the conflict in GoogleUnityActivity. Both Tango SDK and GVR SDK includes an aar file that contains a GoogleUnityActivity and they are different. I think GVR audio can be used without using the unitygvractivity.aar. You can try to only keep the gvr audio stuff and delete the rest pieces in gvr sdk in you project and try to make it work with Tango sdk.

andrewnakas commented 7 years ago

Awsome! Thanks for the insight! Right now I just need the spatialized audio and tango, but in the future, I'll need audio, tango and cardboard all working together. I'm assuming this aar conflict would get fixed in the future, and until then I think I can use unity's spatial audio with gvr and tango fine. Appreciate it!