diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-06-26 13:45:59 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-06-26 13:45:59 +0000 |
commit | 37978aa21437b9bb308efeb9828fbe4a06077cee (patch) | |
tree | f7b3b681e0e42c233ded6715ea824114d9e5c3ec /libs/ardour/smf_source.cc | |
parent | ecb0cd5d119d28092a8f48e4521ac5eba197bb54 (diff) |
lots of details relating to MIDI file management; try to ignore ALSA sequencer MIDI ports named "Midi-Through"
git-svn-id: svn://localhost/ardour2/branches/3.0@7305 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/smf_source.cc')
-rw-r--r-- | libs/ardour/smf_source.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc index 99d0e8c5e6..bf038326d5 100644 --- a/libs/ardour/smf_source.cc +++ b/libs/ardour/smf_source.cc @@ -99,6 +99,7 @@ SMFSource::SMFSource (Session& s, const XMLNode& node, bool must_exist) SMFSource::~SMFSource () { if (removable()) { + cerr << name() << " is removable, empty ? " << empty() << " UC " << use_count() << endl; unlink (_path.c_str()); } } @@ -383,6 +384,7 @@ SMFSource::mark_streaming_write_completed () MidiSource::mark_streaming_write_completed(); if (!writable()) { + cerr << "\n\n\n[[[[[[[[[ This SMFS is not writable! ]]]]]]]]]]]\n\n\n"; return; } @@ -495,6 +497,11 @@ SMFSource::destroy_model () void SMFSource::flush_midi () { + if (!writable()) { + cerr << "\n\n\n\n " << name() << " CANNOT FLUSH - not writable\n\n\n\n"; + return; + } + Evoral::SMF::end_write(); } |