diff options
author | Robin Gareus <robin@gareus.org> | 2016-10-29 19:02:33 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-10-29 19:57:43 +0200 |
commit | f8167ebe20ea5d6e4e8d376dfae1b211887977e9 (patch) | |
tree | dd7cb125ba4476cee2ef535e9d4990b3dd6a7bd5 /libs/ardour/instrument_info.cc | |
parent | 0332c127cd54b9386bb59eb0ec18c49917c0cf57 (diff) |
Prepare for the day when MTAV does no longer force-override InstrumentInfo
Diffstat (limited to 'libs/ardour/instrument_info.cc')
-rw-r--r-- | libs/ardour/instrument_info.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libs/ardour/instrument_info.cc b/libs/ardour/instrument_info.cc index b8c026bd02..2f77d980ba 100644 --- a/libs/ardour/instrument_info.cc +++ b/libs/ardour/instrument_info.cc @@ -124,9 +124,12 @@ string InstrumentInfo::get_controller_name (Evoral::Parameter param) const { boost::shared_ptr<Processor> p = internal_instrument.lock(); - if (p || param.type() != MidiCCAutomation) { + if (param.type() != MidiCCAutomation) { return ""; } + if (p) { + return get_plugin_controller_name (p, param); + } boost::shared_ptr<MIDI::Name::MasterDeviceNames> dev_names( MIDI::Name::MidiPatchManager::instance().master_device_by_model( @@ -229,6 +232,12 @@ InstrumentInfo::general_midi_patches() } string +InstrumentInfo::get_plugin_controller_name (boost::shared_ptr<ARDOUR::Processor>, Evoral::Parameter param) const +{ + return ""; +} + +string InstrumentInfo::get_plugin_patch_name (boost::shared_ptr<Processor> p, uint16_t bank, uint8_t program, uint8_t /*channel*/) const { boost::shared_ptr<PluginInsert> insert = boost::dynamic_pointer_cast<PluginInsert> (p); |