13
0

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.
This commit is contained in:
Robin Gareus 2020-04-03 03:29:32 +02:00
parent dabd5715e9
commit 21c9505652
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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 ()