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
This commit is contained in:
Paul Davis 2010-07-01 18:54:19 +00:00
parent 601dc846da
commit 082b4a2019
5 changed files with 977 additions and 932 deletions

View file

@ -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 ();
}