summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-04-01 23:24:45 +0200
committerRobin Gareus <robin@gareus.org>2020-04-01 23:24:45 +0200
commit37bbc70179f006b86dfbdffca3cd7746fe2f32b7 (patch)
tree9b041abde9c8579f65a00a41a831089978c8a31b /libs/ardour/ardour
parenta6c9c04fd65f5b42e72958f42de67b9244235590 (diff)
Cache instrument plugin MIDNAM model & mode
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r--libs/ardour/ardour/instrument_info.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/libs/ardour/ardour/instrument_info.h b/libs/ardour/ardour/instrument_info.h
index 6799c8a0fa..9330dedd47 100644
--- a/libs/ardour/ardour/instrument_info.h
+++ b/libs/ardour/ardour/instrument_info.h
@@ -78,8 +78,17 @@ private:
std::string get_patch_name (uint16_t bank, uint8_t program, uint8_t channel, bool with_extra) const;
- std::string external_instrument_model;
- std::string external_instrument_mode;
+ void invalidate_cached_plugin_model ()
+ {
+ _plugin_model = "";
+ _plugin_mode = "";
+ }
+
+ std::string _external_instrument_model;
+ std::string _external_instrument_mode;
+
+ mutable std::string _plugin_model;
+ mutable std::string _plugin_mode;
boost::weak_ptr<ARDOUR::Processor> internal_instrument;
};