summaryrefslogtreecommitdiff
path: root/libs/ardour/smf_source.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-07-17 03:10:40 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-07-17 03:10:40 +0000
commit3c252e9321dccf9b653b6b9ab4a7ffe5cda31b79 (patch)
treeb8afdbe754818713249fb9d14e5b8a79ab24243d /libs/ardour/smf_source.cc
parent539b94490f7ab660f24b3de80df5514f61d481b0 (diff)
lots more fidgety work on automation. sort of works now, but undo/redo needs attention
git-svn-id: svn://localhost/ardour2/branches/3.0@13047 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/smf_source.cc')
-rw-r--r--libs/ardour/smf_source.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc
index da6b3cad6f..368982f10d 100644
--- a/libs/ardour/smf_source.cc
+++ b/libs/ardour/smf_source.cc
@@ -281,7 +281,7 @@ SMFSource::write_unlocked (MidiRingBuffer<framepos_t>& source, framepos_t positi
append_event_unlocked_frames(ev, position);
}
- Evoral::SMF::flush();
+ Evoral::SMF::flush ();
free (buf);
return duration;
@@ -338,9 +338,9 @@ SMFSource::append_event_unlocked_frames (const Evoral::Event<framepos_t>& ev, fr
return;
}
- /* printf("SMFSource: %s - append_event_unlocked_frames ID = %d time = %u, size = %u, data = ",
- name().c_str(), ev.id(), ev.time(), ev.size());
- for (size_t i=0; i < ev.size(); ++i) printf("%X ", ev.buffer()[i]); printf("\n");*/
+ // printf("SMFSource: %s - append_event_unlocked_frames ID = %d time = %u, size = %u, data = ",
+ // name().c_str(), ev.id(), ev.time(), ev.size());
+ // for (size_t i=0; i < ev.size(); ++i) printf("%X ", ev.buffer()[i]); printf("\n");
if (ev.time() < _last_ev_time_frames) {
cerr << "SMFSource: Warning: Skipping event with non-monotonic time" << endl;
@@ -431,6 +431,7 @@ SMFSource::mark_midi_streaming_write_completed (Evoral::Sequence<Evoral::Musical
MidiSource::mark_midi_streaming_write_completed (stuck_notes_option, when);
if (!writable()) {
+ warning << string_compose ("attempt to write to unwritable SMF file %1", _path) << endmsg;
return;
}