Пример #1
0
    // Token: 0x06006154 RID: 24916 RVA: 0x00224F84 File Offset: 0x00223384
    public void SelectNextMic()
    {
        bool flag     = string.IsNullOrEmpty(VRCInputManager.micDeviceName);
        int  deviceID = (!flag) ? (USpeaker.GetInputDeviceID() + 1) : 0;
        bool flag2    = USpeaker.TrySetInputDevice(deviceID);

        if (flag2)
        {
            VRCInputManager.micDeviceName = USpeaker.GetInputDeviceName();
        }
        else
        {
            VRCInputManager.micDeviceName = string.Empty;
            USpeaker.SetInputDevice(0);
        }
        this.RefreshLabel();
    }