示例#1
0
    // Token: 0x06006153 RID: 24915 RVA: 0x00224F20 File Offset: 0x00223320
    public void SelectPreviousMic()
    {
        bool flag     = string.IsNullOrEmpty(VRCInputManager.micDeviceName);
        int  deviceID = (!flag) ? (USpeaker.GetInputDeviceID() - 1) : (USpeaker.GetNumDevices() - 1);
        bool flag2    = USpeaker.TrySetInputDevice(deviceID);

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