예제 #1
0
        public static MidiInCapabilities DeviceInfo(int midiInDeviceNumber)
        {
            MidiInCapabilities midiInCapabilities = default(MidiInCapabilities);
            int size = Marshal.SizeOf(midiInCapabilities);

            MmException.Try(MidiInterop.midiInGetDevCaps((IntPtr)midiInDeviceNumber, out midiInCapabilities, size), "midiInGetDevCaps");
            return(midiInCapabilities);
        }
예제 #2
0
 public static extern MmResult midiInGetDevCaps(IntPtr deviceId, out MidiInCapabilities capabilities, int size);