Beispiel #1
0
        //*********************************  Инициализация Midi-In  ********************
        public int InInit()
        {
            callbackreciever = new MidiReciever(MidiEvent);

            // Количество девайсов
            NumInDev = MIDIInGetNumDevs();
            if (NumInDev == 0)
            {
                MessageBox.Show("Midi-in device not found!");
                return(-1);
            }

            return((int)NumInDev);
        }
Beispiel #2
0
 private static extern uint midiInOpen(ref IntPtr lphMidin, uint uDeviceID, MidiReciever dwCallback,
                                       IntPtr dwInstance, uint dwFlags);
Beispiel #3
0
 private uint MIDIInOpen(ref IntPtr lphMidiIn, uint uInDeviceID, MidiReciever dwCallback,
                         IntPtr dwInstance, uint dwFlags)
 {
     return(midiInOpen(ref lphMidiIn, uInDeviceID, dwCallback, dwInstance, dwFlags));
 }