diff options
author | David Robillard <d@drobilla.net> | 2009-10-23 01:39:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-10-23 01:39:40 +0000 |
commit | 38a7cbfc3c2c960ac6dd158811c42cb11d7490d4 (patch) | |
tree | ec9266060e95ebbf9091c08823c3122e8750ab70 /libs/ardour/midi_region.cc | |
parent | 370752bf240cdfaa26919e7a7edff971f113db55 (diff) |
More correct looking MidiSource::midi_read.
Testing seems to show the old way and this both working equally well, which is a bit weird since the old way really doesn't seem to make any sense whatsoever.
This way works as well as far as I can tell and actually makes sense, so hey, let's go with this one.
git-svn-id: svn://localhost/ardour2/branches/3.0@5879 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_region.cc')
-rw-r--r-- | libs/ardour/midi_region.cc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/libs/ardour/midi_region.cc b/libs/ardour/midi_region.cc index 9b7a4b8748..56a52bf4e7 100644 --- a/libs/ardour/midi_region.cc +++ b/libs/ardour/midi_region.cc @@ -194,14 +194,13 @@ MidiRegion::_read_at (const SourceList& /*srcs*/, negative_output_buffer_position = _start; } -#if 0 - cerr << "\t\tsource read from " << _position << " - " << _start << " (" << _position - _start << ") " - << " start in source " << _start << " + " << internal_offset << " (" << _start + internal_offset << ") " - << " dur = " << to_read - << " offset = " << output_buffer_position - << " negoffset = " << negative_output_buffer_position - << endl; -#endif + /*cerr << "MR read @ " << position << " * " << to_read + << " _position = " << _position + << " _start = " << _start + << " offset = " << output_buffer_position + << " negoffset = " << negative_output_buffer_position + << " intoffset = " << internal_offset + << endl;*/ if (src->midi_read ( dst, // destination buffer |