示例#1
0
 /// <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;
 }
示例#2
0
        /// <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);
        }
示例#3
0
 public static extern MmResult midiOutGetDevCaps(IntPtr deviceNumber, out MidiOutCapabilities caps, int uSize);
示例#4
0
 public static extern MmResult midiOutGetDevCaps(IntPtr deviceNumber, out MidiOutCapabilities caps, int uSize);