summaryrefslogtreecommitdiff
path: root/VRCSDK3Worlds/Assets/VRCSDK/SDK3/Runtime/Midi/PortMidi/PmDeviceInfo.cs
blob: e2ecccdddb0aaf4988be748a1d0ea1bee3e1b018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using System.Runtime.InteropServices;

namespace PortMidi
{
    [StructLayout(LayoutKind.Sequential)]
    internal struct PmDeviceInfo
    {
        public int StructVersion;
        public IntPtr Interface;
        public IntPtr Name;
        public int Input;
        public int Output;
        public int Opened;

        public override string ToString()
        {
            return $"{StructVersion}, {Interface}, {Name}, {Input}, {Output}, {Opened}";
        }
    }
}