Beispiel #1
0
 /// <summary>
 /// Opens a specified MIDI in device
 /// </summary>
 /// <param name="deviceNo">The device number</param>
 public MidiIn(int deviceNo)
 {
     callback = Callback;
     MmException.Try(
         MidiInterop.midiInOpen(out hMidiIn, (IntPtr)deviceNo, callback, IntPtr.Zero, MidiInterop.CALLBACK_FUNCTION),
         "midiInOpen");
 }
Beispiel #2
0
		/// <summary>
		/// Opens a specified MIDI in device
		/// </summary>
		/// <param name="deviceNo">The device number</param>
		public MidiIn(int deviceNo)
		{
			callback = Callback;
			MmException.Try(
				MidiInterop.midiInOpen(out hMidiIn, (IntPtr) deviceNo, callback, IntPtr.Zero, MidiInterop.CALLBACK_FUNCTION),
				"midiInOpen");
		}
 /// <summary>
 /// Opens a specified MIDI in device
 /// </summary>
 /// <param name="deviceNo">The device number</param>
 public MidiIn(int deviceNo)
 {
     this.callback = new MidiInterop.MidiInCallback(Callback);
     MmException.Try(
         MidiInterop.midiInOpen(out hMidiIn, (IntPtr)deviceNo, this.callback, IntPtr.Zero,
                                MidiInterop.CALLBACK_FUNCTION), "midiInOpen");
 }
Beispiel #4
0
 public MidiIn(int deviceNo)
 {
     this.callback = new MidiInterop.MidiInCallback(this.Callback);
     MmException.Try(MidiInterop.midiInOpen(out this.hMidiIn, (IntPtr)deviceNo, this.callback, IntPtr.Zero, 196608), "midiInOpen");
 }
Beispiel #5
0
 public static extern MmResult midiInOpen(out IntPtr hMidiIn, IntPtr uDeviceID, MidiInterop.MidiInCallback callback, IntPtr dwInstance, int dwFlags);
Beispiel #6
0
		/// <summary>
		/// Opens a specified MIDI in device
		/// </summary>
		/// <param name="deviceNo">The device number</param>
		public MidiIn(int deviceNo) 
		{
            this.callback = new MidiInterop.MidiInCallback(Callback);
			MmException.Try(MidiInterop.midiInOpen(out hMidiIn, (IntPtr) deviceNo,this.callback,IntPtr.Zero,MidiInterop.CALLBACK_FUNCTION),"midiInOpen");
		}