Mercurial > hg > svcore
comparison data/midi/MIDIInput.h @ 562:ecce042cc374
* Wire up MIDI input port (as far as printing a message when an event comes
in, anyway)
author | Chris Cannam |
---|---|
date | Mon, 23 Feb 2009 17:50:17 +0000 |
parents | 863ad4b1f841 |
children | e6d35670e1df |
comparison
equal
deleted
inserted
replaced
561:863ad4b1f841 | 562:ecce042cc374 |
---|---|
27 class MIDIInput : public QObject | 27 class MIDIInput : public QObject |
28 { | 28 { |
29 Q_OBJECT | 29 Q_OBJECT |
30 | 30 |
31 public: | 31 public: |
32 MIDIInput(); | 32 MIDIInput(QString name); |
33 virtual ~MIDIInput(); | 33 virtual ~MIDIInput(); |
34 | 34 |
35 bool isOK() const { return m_rtmidi != 0; } | 35 bool isOK() const { return m_rtmidi != 0; } |
36 | 36 |
37 bool isEmpty() const { return getEventsAvailable() == 0; } | 37 bool isEmpty() const { return getEventsAvailable() == 0; } |