2
Copyright (C) 2003-2008 Fons Adriaensen <fons@kokkinizita.net>
3
Copyright (C) 2008 Hans Fugal <hans@fugal.net>
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27
#include <clthreads.h>
29
#include <alsa/asoundlib.h>
32
#include <CoreMIDI/MIDIServices.h>
39
class Imidi : public A_thread
43
Imidi (Lfq_u32 *qnote, Lfq_u8 *qmidi, uint16_t *midimap, const char *appname);
44
virtual ~Imidi (void);
46
void terminate (void);
48
void coremidi_proc (const MIDIPacketList *pktlist, void *refCon, void *connRefCon);
53
virtual void thr_main (void);
55
void open_midi (void);
56
void close_midi (void);
57
void proc_midi (void);
58
void proc_mesg (ITC_mesg *M);
68
MIDIClientRef _handle;