From e32a8e82602cc37476905187a0f30733127e5580 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 22 Oct 2014 17:06:33 -0400 Subject: [PATCH] require a timestamp on MIDI::MachineControl::send() --- libs/midi++2/midi++/mmc.h | 2 +- libs/midi++2/mmc.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/midi++2/midi++/mmc.h b/libs/midi++2/midi++/mmc.h index ffabf863a0..b52f4bded8 100644 --- a/libs/midi++2/midi++/mmc.h +++ b/libs/midi++2/midi++/mmc.h @@ -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); diff --git a/libs/midi++2/mmc.cc b/libs/midi++2/mmc.cc index 0bdb359dec..ffd21994c2 100644 --- a/libs/midi++2/mmc.cc +++ b/libs/midi++2/mmc.cc @@ -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; } }