diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-03-19 17:25:37 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-03-19 17:25:37 +0000 |
commit | 3a297964050e77d60942486ac059fd9279bdd91a (patch) | |
tree | e42c96cfa4dc32150343cce3c69b87e4835d325f /libs/midi++2/midi++/port.h | |
parent | eb4a1fdbb8fec1f8aa5dfe33f882064e85792a84 (diff) |
reinstate Ye Olde MIDI (input) thread; fix up a few startup warnings
git-svn-id: svn://localhost/ardour2/branches/3.0@3156 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/midi++2/midi++/port.h')
-rw-r--r-- | libs/midi++2/midi++/port.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libs/midi++2/midi++/port.h b/libs/midi++2/midi++/port.h index dcae446c42..74ed206932 100644 --- a/libs/midi++2/midi++/port.h +++ b/libs/midi++2/midi++/port.h @@ -67,14 +67,15 @@ class Port : public sigc::trackable { */ virtual int write (byte *msg, size_t msglen, timestamp_t timestamp) = 0; - /** Read a message from port. - * @param buf Raw MIDI message to send - * @param max Max size to write to @a buf - * @param timestamp Time stamp in frames of this message (relative to cycle start) - * @return number of bytes successfully written to \a buf + /** Read raw bytes from a port. + * @param buf memory to store read data in + * @param bufsize size of @a buf + * @return number of bytes successfully read, negative if error */ - virtual int read (byte *buf, size_t max, timestamp_t timestamp) = 0; + virtual int read (byte *buf, size_t bufsize) = 0; + void parse (); + /** Write a message to port. * @return true on success. * FIXME: describe semantics here |