diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-02-06 14:14:40 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-02-06 14:14:40 +0000 |
commit | bdbba5af3534e5b8290dec14731a8036ea38f395 (patch) | |
tree | a5b4146e0151b3cfaa92785676668e60d6466ad7 | |
parent | 1f0fe4a449f99302e25322c857bf9059a31aa266 (diff) |
some more debugging info for zth
git-svn-id: svn://localhost/ardour2/branches/3.0@11452 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/ardour/midi_diskstream.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/midi_diskstream.cc b/libs/ardour/midi_diskstream.cc index c83406020e..a63f185a37 100644 --- a/libs/ardour/midi_diskstream.cc +++ b/libs/ardour/midi_diskstream.cc @@ -487,6 +487,8 @@ MidiDiskstream::overwrite_existing_buffers () g_atomic_int_set (&_frames_read_from_ringbuffer, 0); g_atomic_int_set (&_frames_written_to_ringbuffer, 0); + cerr << "FWTRB reset to zero for overwrite\n"; + read (overwrite_frame, disk_io_chunk_frames, false); file_frame = overwrite_frame; // it was adjusted by ::read() overwrite_queued = false; @@ -506,6 +508,8 @@ MidiDiskstream::seek (framepos_t frame, bool complete_refill) g_atomic_int_set(&_frames_read_from_ringbuffer, 0); g_atomic_int_set(&_frames_written_to_ringbuffer, 0); + cerr << "FWTRB reset to zero for seek\n"; + playback_sample = frame; file_frame = frame; @@ -601,7 +605,8 @@ MidiDiskstream::read (framepos_t& start, framecnt_t dur, bool reversed) return -1; } - g_atomic_int_add(&_frames_written_to_ringbuffer, this_read); + g_atomic_int_add (&_frames_written_to_ringbuffer, this_read); + cerr << "FWTRB added " << this_read << " now " << g_atomic_int_get (&_frames_written_to_ringbuffer) << endl; if (reversed) { |