summaryrefslogtreecommitdiff
path: root/libs/ardour/smf_source.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-07-01 18:54:19 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-07-01 18:54:19 +0000
commit082b4a2019beb61dba10a1af1a443696c5942072 (patch)
tree79af6beb1c8103faf5a7479d5453c9accafeb32d /libs/ardour/smf_source.cc
parent601dc846dad6af9362355aa3df78145dd35a030f (diff)
add MidiModel::sync_to_source() to push model state into its existing source; mark SMFSource as non-removable after its called SMF::end_write(); some indentation fixes
git-svn-id: svn://localhost/ardour2/branches/3.0@7350 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/smf_source.cc')
-rw-r--r--libs/ardour/smf_source.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc
index 0df128c143..fe5a0f7c8f 100644
--- a/libs/ardour/smf_source.cc
+++ b/libs/ardour/smf_source.cc
@@ -392,6 +392,10 @@ SMFSource::mark_streaming_write_completed ()
}
Evoral::SMF::end_write ();
+
+ /* data in the file now, not removable */
+
+ mark_nonremovable ();
}
bool
@@ -500,10 +504,11 @@ 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();
+ /* data in the file means its no longer removable */
+ mark_nonremovable ();
}