mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-11 07:56:27 +01:00
remove default implementation to query plugin-preset names
This commit is contained in:
parent
027ffb1b37
commit
b4b0f57c0b
2 changed files with 1 additions and 11 deletions
|
|
@ -336,7 +336,7 @@ class LIBARDOUR_API PluginInfo {
|
|||
virtual bool is_instrument() const;
|
||||
virtual bool in_category (const std::string &) const { return false; }
|
||||
|
||||
virtual std::vector<Plugin::PresetRecord> get_presets(Session& session);
|
||||
virtual std::vector<Plugin::PresetRecord> get_presets(Session& session) = 0;
|
||||
|
||||
/* NOTE: this block of virtual methods looks like the interface
|
||||
to a Processor, but Plugin does not inherit from Processor.
|
||||
|
|
|
|||
|
|
@ -86,16 +86,6 @@ PluginInfo::is_instrument () const
|
|||
return (n_inputs.n_midi() != 0) && (n_outputs.n_audio() > 0);
|
||||
}
|
||||
|
||||
std::vector<Plugin::PresetRecord>
|
||||
PluginInfo::get_presets(Session& session) {
|
||||
PluginPtr plugin = load (session);
|
||||
if (plugin) {
|
||||
return plugin->get_presets();
|
||||
} else {
|
||||
return std::vector<Plugin::PresetRecord> ();
|
||||
}
|
||||
}
|
||||
|
||||
Plugin::Plugin (AudioEngine& e, Session& s)
|
||||
: _engine (e)
|
||||
, _session (s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue