diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-02-06 15:05:18 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-02-06 15:05:18 +0000 |
commit | f4f2a9a111c32d4761308eb94a8c7cfa214b7116 (patch) | |
tree | 61a63ff7346a5bdd07ad118a854637e9be8ab819 /libs/midi++2 | |
parent | d0b94ebc1e5325995733a65c55b8e564e3f4c67e (diff) |
fix bug in MidiClock that sent MIDI Clock messages with negative offsets after a loop point
git-svn-id: svn://localhost/ardour2/branches/3.0@11456 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/midi++2')
-rw-r--r-- | libs/midi++2/port.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/midi++2/port.cc b/libs/midi++2/port.cc index 213f55aa19..378548ca03 100644 --- a/libs/midi++2/port.cc +++ b/libs/midi++2/port.cc @@ -30,6 +30,7 @@ #include "pbd/failed_constructor.h" #include "pbd/convert.h" #include "pbd/strsplit.h" +#include "pbd/stacktrace.h" #include "midi++/types.h" #include "midi++/port.h" @@ -306,7 +307,10 @@ Port::write(byte * msg, size_t msglen, timestamp_t timestamp) // XXX This had to be temporarily commented out to make export work again if (!(timestamp < _nframes_this_cycle)) { - std::cerr << "assertion timestamp < _nframes_this_cycle failed!" << std::endl; + std::cerr << "attempting to write MIDI event of " << msglen << " bytes at time " + << timestamp << " of " << _nframes_this_cycle + << " (this will not work - needs a code fix)" + << std::endl; } if (_currently_in_cycle) { @@ -327,6 +331,7 @@ Port::write(byte * msg, size_t msglen, timestamp_t timestamp) } } else { cerr << "write to JACK midi port failed: not currently in a process cycle." << endl; + PBD::stacktrace (cerr, 20); } } |