require a timestamp on MIDI::MachineControl::send()
authorPaul Davis <paul@linuxaudiosystems.com>
Wed, 22 Oct 2014 21:06:33 +0000 (17:06 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Wed, 22 Oct 2014 21:07:11 +0000 (17:07 -0400)
libs/midi++2/midi++/mmc.h
libs/midi++2/mmc.cc

index ffabf863a063482bc09ce7b581c40347f5c51a63..b52f4bded88325fbc245cf190b355abc6534c3ff 100644 (file)
@@ -107,7 +107,7 @@ class LIBMIDIPP_API MachineControl
        byte send_device_id () const { return _send_device_id; }
        void enable_send (bool);
        bool send_enabled () const { return _enable_send; }
-       void send (MachineControlCommand const &);
+       void send (MachineControlCommand const &, timestamp_t when);
 
        static bool is_mmc (byte *sysex_buf, size_t len);
 
index 0bdb359decc44e808e7e416ed7ad8560fdd313c9..ffd21994c296be8e1d7cecbb052a5292240fd1cf 100644 (file)
@@ -651,7 +651,7 @@ MachineControl::enable_send (bool yn)
  *  @param c command.
  */
 void
-MachineControl::send (MachineControlCommand const & c)
+MachineControl::send (MachineControlCommand const & c, timestamp_t when)
 {
        if (_output_port == 0 || !_enable_send) {
                // cerr << "Not delivering MMC " << _mmc->port() << " - " << session_send_mmc << endl;
@@ -661,7 +661,7 @@ MachineControl::send (MachineControlCommand const & c)
        MIDI::byte buffer[32];
        MIDI::byte* b = c.fill_buffer (this, buffer);
 
-       if (_output_port->midimsg (buffer, b - buffer, 0)) {
+       if (_output_port->midimsg (buffer, b - buffer, when)) {
                error << "MMC: cannot send command" << endmsg;
        }
 }