/// <summary> /// Gets the MIDI Out device info /// </summary> public static MidiOutCapabilities DeviceInfo(int midiOutDeviceNumber) { MidiOutCapabilities caps = new MidiOutCapabilities(); int structSize = Marshal.SizeOf(caps); MmException.Try(MidiInterop.midiOutGetDevCaps((IntPtr)midiOutDeviceNumber, out caps, structSize), "midiOutGetDevCaps"); return caps; }
/// <summary> /// Gets the MIDI Out device info /// </summary> public static MidiOutCapabilities DeviceInfo(int midiOutDeviceNumber) { MidiOutCapabilities caps = new MidiOutCapabilities(); int structSize = Marshal.SizeOf(caps); MmException.Try(MidiInterop.midiOutGetDevCaps((IntPtr)midiOutDeviceNumber, out caps, structSize), "midiOutGetDevCaps"); return(caps); }
public static extern MmResult midiOutGetDevCaps(IntPtr deviceNumber, out MidiOutCapabilities caps, int uSize);