Mercurial > hg > svcore
diff data/midi/MIDIInput.h @ 567:e6d35670e1df
* Somewhat better MIDI-based time instant timing
author | Chris Cannam |
---|---|
date | Wed, 25 Feb 2009 11:15:22 +0000 |
parents | ecce042cc374 |
children | 59e7fe1b1003 |
line wrap: on
line diff
--- a/data/midi/MIDIInput.h Tue Feb 24 17:53:01 2009 +0000 +++ b/data/midi/MIDIInput.h Wed Feb 25 11:15:22 2009 +0000 @@ -21,6 +21,7 @@ #include <vector> #include "base/RingBuffer.h" +#include "base/FrameTimer.h" class RtMidiIn; @@ -29,7 +30,7 @@ Q_OBJECT public: - MIDIInput(QString name); + MIDIInput(QString name, FrameTimer *timer); virtual ~MIDIInput(); bool isOK() const { return m_rtmidi != 0; } @@ -43,6 +44,7 @@ protected: RtMidiIn *m_rtmidi; + FrameTimer *m_frameTimer; static void staticCallback(double, std::vector<unsigned char> *, void *); void callback(double, std::vector<unsigned char> *);