From bb1aa327f8f957628b3580f7650b47f5d2a97f2f Mon Sep 17 00:00:00 2001 From: Hans Baier Date: Fri, 13 Feb 2009 08:28:54 +0000 Subject: [PATCH] * MIDIClock_Slave: Fix for devices that always send MIDI clock (not just between start/stop) git-svn-id: svn://localhost/ardour2/branches/3.0@4542 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/midi_clock_slave.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/ardour/midi_clock_slave.cc b/libs/ardour/midi_clock_slave.cc index ef3aacb4c6..09583ae7c6 100644 --- a/libs/ardour/midi_clock_slave.cc +++ b/libs/ardour/midi_clock_slave.cc @@ -114,7 +114,12 @@ MIDIClock_Slave::calculate_filter_coefficients() void MIDIClock_Slave::update_midi_clock (Parser& parser, nframes_t timestamp) -{ +{ + // some pieces of hardware send MIDI Clock all the time + if ( (!_starting) && (!_started) ) { + return; + } + // the number of midi clock messages (zero-based) static long midi_clock_count;