summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-04-03 03:29:32 +0200
committerRobin Gareus <robin@gareus.org>2020-04-03 03:29:32 +0200
commit21c9505652e203a59e5d5899478188ea2204c77b (patch)
tree74ce03acbe9a38f7b979d683b2725a57562915ab /libs/ardour/ardour
parentdabd5715e91fd97902b1312701b26f8a351e17e4 (diff)
Allow to query current effective instrument model/mode
This exposes custom plugin model/mode. It can be useful for the GUI to detect if effective settings have changed, and context-menus have to be re-build.
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r--libs/ardour/ardour/instrument_info.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/ardour/instrument_info.h b/libs/ardour/ardour/instrument_info.h
index 0a6746a960..9468831a85 100644
--- a/libs/ardour/ardour/instrument_info.h
+++ b/libs/ardour/ardour/instrument_info.h
@@ -52,6 +52,9 @@ public:
InstrumentInfo ();
~InstrumentInfo ();
+ std::string model () const;
+ std::string mode () const;
+
void set_external_instrument (const std::string& model, const std::string& mode);
void set_internal_instrument (boost::shared_ptr<ARDOUR::Processor>);
@@ -75,9 +78,6 @@ public:
bool have_custom_plugin_info () const;
private:
- std::string model () const;
- std::string mode () const;
-
std::string get_patch_name (uint16_t bank, uint8_t program, uint8_t channel, bool with_extra) const;
void invalidate_cached_plugin_model ()