X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fmidi%2B%2B2%2Fmidi%2B%2B%2Fport.h;h=03abd1a41c9d382d208decb83eb76ef6a7210db4;hb=7a76168b662c4e4fa0eec3859e500cb0b2ac65e7;hp=a2315f72844c7c1cc467b6cac9506227bbfcfa11;hpb=33140f32671576a285d62f529447f941f96313fc;p=ardour.git diff --git a/libs/midi++2/midi++/port.h b/libs/midi++2/midi++/port.h index a2315f7284..03abd1a41c 100644 --- a/libs/midi++2/midi++/port.h +++ b/libs/midi++2/midi++/port.h @@ -57,7 +57,7 @@ class Port { // FIXME: make Manager a friend of port so these can be hidden? /* Only for use by MidiManager. Don't ever call this. */ - virtual void cycle_start (pframes_t nframes) {} + virtual void cycle_start (pframes_t) {} /* Only for use by MidiManager. Don't ever call this. */ virtual void cycle_end () {} @@ -67,7 +67,7 @@ class Port { * @param timestamp Time stamp in frames of this message (relative to cycle start) * @return number of bytes successfully written */ - virtual int write (byte *msg, size_t msglen, timestamp_t timestamp) = 0; + virtual int write (const byte *msg, size_t msglen, timestamp_t timestamp) = 0; /** Read raw bytes from a port. * @param buf memory to store read data in @@ -82,7 +82,7 @@ class Port { * executes any part of a JACK process callback (will * simply return immediately in that situation). */ - virtual void drain (int check_interval_usecs) {} + virtual void drain (int /* check_interval_usecs */) {} /** Write a message to port. * @return true on success.