Exemplo n.º 1
0
 /// <summary>
 /// Gets the MIDI in device info
 /// </summary>
 public static MidiInCapabilities DeviceInfo(int midiInDeviceNumber)
 {
     MidiInCapabilities caps = new MidiInCapabilities();
     int structSize = Marshal.SizeOf(caps);
     MmException.Try(MidiInterop.midiInGetDevCaps((IntPtr)midiInDeviceNumber, out caps, structSize), "midiInGetDevCaps");
     return caps;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Gets the MIDI in device info
        /// </summary>
        public static MidiInCapabilities DeviceInfo(int midiInDeviceNumber)
        {
            MidiInCapabilities caps = new MidiInCapabilities();
            int structSize          = Marshal.SizeOf(caps);

            MmException.Try(MidiInterop.midiInGetDevCaps(midiInDeviceNumber, out caps, structSize), "midiInGetDevCaps");
            return(caps);
        }
Exemplo n.º 3
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);
        }
Exemplo n.º 4
0
 public static extern MmResult midiInGetDevCaps(IntPtr deviceId, out MidiInCapabilities capabilities, int size);
Exemplo n.º 5
0
 public static extern MmResult midiInGetDevCaps(IntPtr deviceId, out MidiInCapabilities capabilities, int size);