mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-13 10:06:33 +01:00
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:
parent
601dc846da
commit
082b4a2019
5 changed files with 977 additions and 932 deletions
|
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue