diff options
author | Robin Gareus <robin@gareus.org> | 2020-02-18 01:26:20 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-02-18 01:26:20 +0100 |
commit | 6f205f857b6ace7a63e77384f058eac191bb0de9 (patch) | |
tree | 00dea7059595e2d25282d7e606381af150e91e0e /libs/ardour/ardour | |
parent | 2ac90f55984d5011904f1bafe212e91b0a9fd83c (diff) |
Replace missing .mid files with silence
This fixes a crash: missing playlist due to missing .mid,
and retains regions for missing MIDI files.
As opposed to missing Audio, we cannot use a SilentFileSource,
because MIDI files are destructive.
This also adds an API to query missing files that have been replaced
with silence to report them to the user.
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/session.h | 2 | ||||
-rw-r--r-- | libs/ardour/ardour/source.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index daaecd8a38..8fe209a552 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -1161,6 +1161,8 @@ public: std::list<std::string> unknown_processors () const; + std::list<std::string> missing_filesources (DataType) const; + /** Emitted when a feedback cycle has been detected within Ardour's signal processing path. Until it is fixed (by the user) some (unspecified) routes will not be run. diff --git a/libs/ardour/ardour/source.h b/libs/ardour/ardour/source.h index 56e72acd42..9604062b8e 100644 --- a/libs/ardour/ardour/source.h +++ b/libs/ardour/ardour/source.h @@ -56,6 +56,7 @@ public: Destructive = 0x80, Empty = 0x100, /* used for MIDI only */ RF64_RIFF = 0x200, + Missing = 0x400, /* used for MIDI only */ }; typedef Glib::Threads::Mutex::Lock Lock; |