mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 22:25:46 +01:00
midway snapshot of work done on managing Region & Source lifetimes correctly. may fix missing MIDI file bug ; save empty playlists because they may be referred to by the history file ; undo commands auto-delete when objects they refer to die (currently not commands built from XML deserialization); Sources now know how many regions are using them for something, meaning that we know if we can delete the files holding any data for the source
git-svn-id: svn://localhost/ardour2/branches/3.0@7291 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
cac03dbeb6
commit
f4401c5928
36 changed files with 310 additions and 220 deletions
|
|
@ -275,6 +275,16 @@ SMF::begin_write()
|
|||
void
|
||||
SMF::end_write() THROW_FILE_ERROR
|
||||
{
|
||||
#if 0
|
||||
/* don't create empty MIDI files
|
||||
*/
|
||||
|
||||
smf_rewind (_smf); // smf_save() would have done this anyway
|
||||
if (smf_peek_next_event (_smf) == 0) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
PBD::StdioFileDescriptor d (_file_path, "w+");
|
||||
FILE* f = d.allocate ();
|
||||
if (f == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue