mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
more MIDI I/O debugging output
git-svn-id: svn://localhost/ardour2/branches/3.0@9901 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
79898b7aa7
commit
828939a7f5
3 changed files with 7 additions and 3 deletions
|
|
@ -241,15 +241,15 @@ restart:
|
||||||
for (i = rl_with_auditioner.begin(); !transport_work_requested() && should_run && i != rl_with_auditioner.end(); ++i) {
|
for (i = rl_with_auditioner.begin(); !transport_work_requested() && should_run && i != rl_with_auditioner.end(); ++i) {
|
||||||
|
|
||||||
boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> (*i);
|
boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> (*i);
|
||||||
|
|
||||||
if (!tr) {
|
if (!tr) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* don't read inactive tracks */
|
|
||||||
|
|
||||||
boost::shared_ptr<IO> io = tr->input ();
|
boost::shared_ptr<IO> io = tr->input ();
|
||||||
|
|
||||||
if (io && !io->active()) {
|
if (io && !io->active()) {
|
||||||
|
/* don't read inactive tracks */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -296,6 +296,7 @@ restart:
|
||||||
// cerr << "write behind for " << (*i)->name () << endl;
|
// cerr << "write behind for " << (*i)->name () << endl;
|
||||||
|
|
||||||
boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> (*i);
|
boost::shared_ptr<Track> tr = boost::dynamic_pointer_cast<Track> (*i);
|
||||||
|
|
||||||
if (!tr) {
|
if (!tr) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -268,6 +268,7 @@ MidiSource::midi_write (MidiRingBuffer<framepos_t>& source, framepos_t source_st
|
||||||
cerr << "MidiSource calling write unlocked\n";
|
cerr << "MidiSource calling write unlocked\n";
|
||||||
const framecnt_t ret = write_unlocked (source, source_start, duration);
|
const framecnt_t ret = write_unlocked (source, source_start, duration);
|
||||||
_last_write_end += duration;
|
_last_write_end += duration;
|
||||||
|
cerr << name() << " last write end now @ " << _last_write_end << endl;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -298,6 +299,8 @@ MidiSource::mark_write_starting_now ()
|
||||||
|
|
||||||
set_timeline_position (_session.transport_frame ());
|
set_timeline_position (_session.transport_frame ());
|
||||||
_last_write_end = _session.transport_frame ();
|
_last_write_end = _session.transport_frame ();
|
||||||
|
cerr << name() << " last write set to " << _last_write_end << endl;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,7 @@ SMFSource::write_unlocked (MidiRingBuffer<framepos_t>& source, framepos_t positi
|
||||||
|
|
||||||
Evoral::MIDIEvent<framepos_t> ev;
|
Evoral::MIDIEvent<framepos_t> ev;
|
||||||
|
|
||||||
cerr << "SMFSource::write unlocked, begins writing from src buffer\n";
|
cerr << "SMFSource::write unlocked, begins writing from src buffer with _last_write_end = " << _last_write_end << " dur = " << duration << endl;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
bool ret = source.peek ((uint8_t*)&time, sizeof (time));
|
bool ret = source.peek ((uint8_t*)&time, sizeof (time));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue