cancel
Showing results for 
Search instead for 
Did you mean: 

Not working Microphone in unity after update oculus

leaf_chage
Level 2
Versions
OculusApp: 12.0.0.191.268
OculusFirmware: Sorry, I can not confirm this version.
Unity: 2018.3.12f1
Windows10: 1903 (OS build. 18362.535)
OculusSDK: 1.35.0 <= I confirm from oculus utilities plugin.

Not working Microphone in unity after update Oculus app and OculusRiftS firmware.
This code is not working.
// I called This constructor in Awake()
public Mic()
{
Debug.Log(Microphone.devices.Length); // 0
Device = Microphone.devices[0]; // IndexOutOfRangeException
}
Error log
> 0
> IndexOutOfRangeException: Index was outside the bounds of the array.
> XR: Error setting active audio output driver.  Falling back to default.
> XR: Error setting active audio output driver.  Falling back to default.
> XR: Error setting active audio output driver.  Falling back to default.... 

There is three output audio device in windows setting.
This error occurred that I start Unity after I set "Oculus Virtual Audio Device" to audio device.
If I set another audio device, It didn't occur.
And, My PC have not recognized any OculusRiftS after updating.

How do you solve it?
Please show me your idea.
4 REPLIES 4

leaf_chage
Level 2
1. I set "Oculus Virtual Audio Device" to audio device.
2. I start Unity app.
3. This error occurred.
FMOD failed to initialize the output device.: "Error initializing output device. "
Forced to initialize FMOD to to the device driver's system output rate 48000, this may impact performance and/or give inconsistent experiences compared to selected sample rate 48000

Auracle
Level 3
Try changing the device rate to 48khz if it's at 42 of 42 if it's at 48, based on the last error message, no idea honestly but that could be it.

leaf_chage
Level 2
@Auracle
I tried to change the device rate to 48000 in ProjectSettings > Audio > SystemSampleRate.
But it occurred....

thewhiteambit
Level 5
this is not the unity forum