Example #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;
 }
Example #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(midiOutDeviceNumber, out caps, structSize), "midiOutGetDevCaps");
            return(caps);
        }
Example #3
0
        public static MidiOutCapabilities DeviceInfo(int midiOutDeviceNumber)
        {
            MidiOutCapabilities midiOutCapabilities = default(MidiOutCapabilities);
            int uSize = Marshal.SizeOf(midiOutCapabilities);

            MmException.Try(MidiInterop.midiOutGetDevCaps((IntPtr)midiOutDeviceNumber, out midiOutCapabilities, uSize), "midiOutGetDevCaps");
            return(midiOutCapabilities);
        }
 public static extern MmResult midiOutGetDevCaps(IntPtr deviceNumber, out MidiOutCapabilities caps, int uSize);
Example #5
0
 public static extern MmResult midiOutGetDevCaps(IntPtr deviceNumber, out MidiOutCapabilities caps, int uSize);
Example #6
0
 public static extern MmResult MidiOutGetDevCaps(int uDeviceID, out MidiOutCapabilities caps, int cbMidiOutCaps);