summaryrefslogtreecommitdiff
path: root/libs/evoral/src/SMF.cpp
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-09-16 01:08:51 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-09-16 01:08:51 +0000
commitfa4e858eb351668bc6687819903d019703daef7a (patch)
tree1068e35899ec48cdd8ef514510fec56092466673 /libs/evoral/src/SMF.cpp
parent127b8a62b790c7515a27934b920e88b7de04b7fc (diff)
do not allow smf_source's reads to stomp on cached read_end position in parent class, which creates chaos by being out of sync with MidiSource::_model_iterator. this doesn't totally fix MIDI playback, but it helps
git-svn-id: svn://localhost/ardour2/branches/3.0@5665 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/evoral/src/SMF.cpp')
-rw-r--r--libs/evoral/src/SMF.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/evoral/src/SMF.cpp b/libs/evoral/src/SMF.cpp
index 2103ad8eae..424b4d46f2 100644
--- a/libs/evoral/src/SMF.cpp
+++ b/libs/evoral/src/SMF.cpp
@@ -205,10 +205,10 @@ SMF::read_event(uint32_t* delta_t, uint32_t* size, uint8_t** buf) const
assert(midi_event_is_valid(*buf, *size));
- /*printf("SMF::read_event:\n");
+ /* printf("SMF::read_event @ %u: ", *delta_t);
for (size_t i = 0; i < *size; ++i) {
printf("%X ", (*buf)[i]);
- } printf("\n");*/
+ } printf("\n") */
return event_size;
} else {
@@ -223,10 +223,10 @@ SMF::append_event_delta(uint32_t delta_t, uint32_t size, const uint8_t* buf)
return;
}
- /*printf("SMF::append_event_delta:\n");
+ /* printf("SMF::append_event_delta @ %u:", delta_t);
for (size_t i = 0; i < size; ++i) {
printf("%X ", buf[i]);
- } printf("\n");*/
+ } printf("\n"); */
if (!midi_event_is_valid(buf, size)) {
cerr << "WARNING: SMF ignoring illegal MIDI event" << endl;