Hi.
We are sending our game to the Oculus team and they are reporting that the game “must target the audio device selected in the “Audio Output in VR” setting in the Oculus app.”
We have pasted the code snippet that can be found on their website, but nothing seems to work. I also changed the deprecated “getLowLevelSystem” for the “getCoreSystem”, but nothing seems to work.
FMOD.RESULT Initialize() {
#if OCULUS && !UNITY_ANDROID
FMOD.System sys;
FMODUnity.RuntimeManager.StudioSystem.getCoreSystem(out sys);int driverCount = 0; sys.getNumDrivers(out driverCount); string riftId = OVRManager.audioOutId; int driver = 0; while (driver < driverCount) { System.Guid guid; int rate, channels; FMOD.SPEAKERMODE mode; sys.getDriverInfo(driver, out guid, out rate, out mode, out channels); if (guid.ToString() == riftId) { break; } ++driver; } if (driver < driverCount) { sys.setDriver(driver); }
#endif
Maybe we are putting the code on a wrong place?