mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 00:56:33 +01:00
Separate low level details of SMF reading/writing from concept of 'midi source in ardour'.
git-svn-id: svn://localhost/ardour2/branches/3.0@3839 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b5ec66ae6c
commit
9a30bb2aec
12 changed files with 546 additions and 430 deletions
|
|
@ -165,8 +165,7 @@ MidiSource::mark_streaming_write_completed ()
|
|||
void
|
||||
MidiSource::session_saved()
|
||||
{
|
||||
flush_header();
|
||||
flush_footer();
|
||||
flush_midi();
|
||||
|
||||
if (_model && _model->edited()) {
|
||||
string newname;
|
||||
|
|
@ -197,8 +196,7 @@ MidiSource::session_saved()
|
|||
newsrc->set_model(_model);
|
||||
_model->set_midi_source(newsrc.get());
|
||||
|
||||
newsrc->flush_header();
|
||||
newsrc->flush_footer();
|
||||
newsrc->flush_midi();
|
||||
|
||||
Switched.emit(newsrc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue