示例#1
0
 public static MIDIError MIDI_InOpen(ref IntPtr handle, int deviceID, MIDIINPROC proc, IntPtr user, MIDIFlags flags)
 {
     if (proc == null)
     {
         flags = MIDIFlags.MIDI_CALLBACK_NULL;
     }
     else
     {
         flags |= MIDIFlags.MIDI_CALLBACK_FUNCTION;
     }
     return(Midi.midiInOpen(ref handle, new IntPtr(deviceID), proc, user, flags));
 }
 public MidiInputDevice(int deviceID, MIDIINPROC proc)
 {
     this._deviceID = deviceID;
     if (proc == null)
     {
         this._midiInProc = new MIDIINPROC(this.MidiInProc);
     }
     else
     {
         this._midiInProc = proc;
     }
     this.InitControllerPairs();
 }
示例#3
0
 public static extern bool BASS_MIDI_InInit(int device, MIDIINPROC proc, IntPtr user);
示例#4
0
 private static extern MIDIError midiInOpen([In][Out] ref IntPtr handle, IntPtr deviceID, MIDIINPROC proc, IntPtr user, MIDIFlags flags);