diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2009-02-13 08:28:54 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2009-02-13 08:28:54 +0000 |
commit | bb1aa327f8f957628b3580f7650b47f5d2a97f2f (patch) | |
tree | 6407fec7231f68ceacd788827bcba65a6dee4d91 /libs/ardour/midi_clock_slave.cc | |
parent | 328691c9d1fa9aeb69d7a2671ae7334d657ce646 (diff) |
* 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
Diffstat (limited to 'libs/ardour/midi_clock_slave.cc')
-rw-r--r-- | libs/ardour/midi_clock_slave.cc | 7 |
1 files changed, 6 insertions, 1 deletions
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; |