summaryrefslogtreecommitdiff
path: root/libs/midi++2/port.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-12-01 21:28:31 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-12-01 21:28:31 +0000
commitb6d418f3c292a3e8720f940afb5085ca5ea84d48 (patch)
tree334b9807e36eef411d2e3cb629ac7183d1b7b78e /libs/midi++2/port.cc
parent66ee16d7c867fc6243721a774602f19987409958 (diff)
make ALSA MIDI I/O work with timestamps; more MTC debug tracing
git-svn-id: svn://localhost/ardour2/branches/3.0@6258 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/midi++2/port.cc')
-rw-r--r--libs/midi++2/port.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/libs/midi++2/port.cc b/libs/midi++2/port.cc
index b7ffcc7b48..5fe2016587 100644
--- a/libs/midi++2/port.cc
+++ b/libs/midi++2/port.cc
@@ -91,13 +91,18 @@ Port::~Port ()
}
void
-Port::parse ()
+Port::parse (nframes_t timestamp)
{
byte buf[512];
- /* parsing is done (if at all) by initiating a read from
- the port.
+ /* NOTE: parsing is done (if at all) by initiating a read from
+ the port. Each port implementation calls on the parser
+ once it has data ready.
*/
+
+ if (input_parser) {
+ input_parser->set_timestamp (timestamp);
+ }
while (1) {