Add unified API to select plugins to show on control-surfaces
e.g. Mixbus channelstrip should be hidden, also mixbus' built-in effects are exposed as well-known controls
This commit is contained in:
parent
f0d227f925
commit
69322ccd1b
|
@ -113,13 +113,9 @@ public:
|
||||||
bool has_midi_thru () const;
|
bool has_midi_thru () const;
|
||||||
bool inplace () const { return ! _no_inplace; }
|
bool inplace () const { return ! _no_inplace; }
|
||||||
|
|
||||||
#ifdef MIXBUS
|
|
||||||
bool is_channelstrip () const;
|
bool is_channelstrip () const;
|
||||||
bool is_nonbypassable () const;
|
bool is_nonbypassable () const;
|
||||||
#else
|
bool show_on_ctrl_surface () const;
|
||||||
bool is_channelstrip () const { return false; }
|
|
||||||
bool is_nonbypassable () const { return false; }
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void set_input_map (uint32_t, ChanMapping);
|
void set_input_map (uint32_t, ChanMapping);
|
||||||
void set_output_map (uint32_t, ChanMapping);
|
void set_output_map (uint32_t, ChanMapping);
|
||||||
|
|
|
@ -1580,16 +1580,34 @@ PluginInsert::has_midi_thru () const
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
PluginInsert::is_channelstrip () const
|
||||||
|
{
|
||||||
#ifdef MIXBUS
|
#ifdef MIXBUS
|
||||||
bool
|
|
||||||
PluginInsert::is_channelstrip () const {
|
|
||||||
return _plugins.front()->is_channelstrip();
|
return _plugins.front()->is_channelstrip();
|
||||||
}
|
#else
|
||||||
bool
|
return false;
|
||||||
PluginInsert::is_nonbypassable () const {
|
|
||||||
return _plugins.front()->is_nonbypassable ();
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
PluginInsert::is_nonbypassable () const
|
||||||
|
{
|
||||||
|
#ifdef MIXBUS
|
||||||
|
return _plugins.front()->is_nonbypassable ();
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
PluginInsert::show_on_ctrl_surface () const
|
||||||
|
{
|
||||||
|
if (is_channelstrip () || !is_nonbypassable ()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
PluginInsert::check_inplace ()
|
PluginInsert::check_inplace ()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user