Ejemplo n.º 1
0
        public static void DrawMicSelector(ref int index)
        {
            var mics     = MicUtil.GetDeviceList();
            var micNames = mics.Select(x => x.name).ToArray();

            index = EditorGUILayout.Popup("Device", index, micNames);
        }
Ejemplo n.º 2
0
        public void UpdateMicInfo()
        {
            var mics = MicUtil.GetDeviceList();

            if (mics.Count <= 0)
            {
                return;
            }

            if (index < 0 || index >= mics.Count)
            {
                index = 0;
            }

            device = mics[index];

            isReady = true;
        }