diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-13 15:49:53 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-13 15:49:53 +0000 |
commit | f6a50adf42b40291d7b62d7e08348f5bfb8cc4ac (patch) | |
tree | afd9a76b240429c6402ffe778d4ec48c87cf2159 /libs/ardour/midi_diskstream.cc | |
parent | 82ec615da30478d34bc4f47dcbce2349ade5507e (diff) |
MIDI IO debugging
git-svn-id: svn://localhost/ardour2/branches/3.0@9861 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_diskstream.cc')
-rw-r--r-- | libs/ardour/midi_diskstream.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/ardour/midi_diskstream.cc b/libs/ardour/midi_diskstream.cc index 45b7e8f4de..663704a675 100644 --- a/libs/ardour/midi_diskstream.cc +++ b/libs/ardour/midi_diskstream.cc @@ -864,6 +864,8 @@ MidiDiskstream::do_flush (RunContext /*context*/, bool force_flush) int32_t ret = 0; framecnt_t total; + cerr << name() << " flushing to disk\n"; + _write_data_count = 0; total = _session.transport_frame() - _last_flush_frame; @@ -874,6 +876,11 @@ MidiDiskstream::do_flush (RunContext /*context*/, bool force_flush) if (total == 0 || _capture_buf->read_space() == 0 || (!force_flush && (total < disk_io_chunk_frames && was_recording))) { + cerr << "\tFlush shortcut because total = " << total + << " capture read space = " << _capture_buf->read_space() + << " force flush = " << force_flush + << " was recording = " << was_recording + << endl; goto out; } @@ -905,6 +912,10 @@ MidiDiskstream::do_flush (RunContext /*context*/, bool force_flush) } else { _last_flush_frame = _session.transport_frame(); } + } else { + cerr << "\tdidn't write to disk because recenabled = " << record_enabled() + << " last flush @ " << _last_flush_frame << " disk io " << disk_io_chunk_frames << " TF @ " << _session.transport_frame() + << " force = " << force_flush << endl; } out: |