Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Not working Microphone in unity after update oculus

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.

Comments

  • leaf_chageleaf_chage Posts: 3
    NerveGear
    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

  • AuracleAuracle Posts: 2
    NerveGear
    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_chageleaf_chage Posts: 3
    NerveGear
    @Auracle
    I tried to change the device rate to 48000 in ProjectSettings > Audio > SystemSampleRate.
    But it occurred....
  • thewhiteambitthewhiteambit Posts: 306
    Art3mis
    this is not the unity forum
Sign In or Register to comment.