diff options
author | Robin Gareus <robin@gareus.org> | 2020-04-01 23:24:45 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-04-01 23:24:45 +0200 |
commit | 37bbc70179f006b86dfbdffca3cd7746fe2f32b7 (patch) | |
tree | 9b041abde9c8579f65a00a41a831089978c8a31b /libs/ardour/ardour | |
parent | a6c9c04fd65f5b42e72958f42de67b9244235590 (diff) |
Cache instrument plugin MIDNAM model & mode
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/instrument_info.h | 13 |
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; }; |