summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-10-30 21:24:26 +0100
committerRobin Gareus <robin@gareus.org>2016-10-30 21:24:26 +0100
commite08c80370cfcadb7400b6f342b027b6c64ed3dd0 (patch)
tree75385ae8c8b8e03dd637708cc3d81952922b84f6 /libs/ardour/ardour
parent2a0aadfd97cec15acf90deb4cfc32ae201ca69a5 (diff)
Fix midnam replacement:
Unloading before update may otherwise reset the patch to generic midi (when the current patch is no longer available)
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r--libs/ardour/ardour/midi_patch_manager.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/ardour/midi_patch_manager.h b/libs/ardour/ardour/midi_patch_manager.h
index aa4fda108e..5eb34dbbf4 100644
--- a/libs/ardour/ardour/midi_patch_manager.h
+++ b/libs/ardour/ardour/midi_patch_manager.h
@@ -60,6 +60,7 @@ public:
PBD::Signal0<void> PatchesChanged;
bool add_custom_midnam (const std::string& id, const std::string& midnam);
+ bool update_custom_midnam (const std::string& id, const std::string& midnam);
bool remove_custom_midnam (const std::string& id);
void add_search_path (const PBD::Searchpath& search_path);
@@ -145,7 +146,7 @@ public:
private:
bool load_midi_name_document(const std::string& file_path);
bool add_midi_name_document(boost::shared_ptr<MIDINameDocument>);
- bool remove_midi_name_document(const std::string& file_path);
+ bool remove_midi_name_document(const std::string& file_path, bool emit_signal = true);
void add_midnam_files_from_directory(const std::string& directory_path);
void remove_midnam_files_from_directory(const std::string& directory_path);