expose more info from plugin-strip (for GUI display)
This commit is contained in:
parent
e087237f3c
commit
1a7a9455ca
|
@ -90,6 +90,11 @@ class LIBARDOUR_API PluginInsert : public Processor
|
|||
ChanMapping input_map () const;
|
||||
ChanMapping output_map () const;
|
||||
bool has_midi_bypass () const;
|
||||
bool has_midi_trhu () const;
|
||||
|
||||
#ifdef MIXBUS
|
||||
bool is_channelstrip () const;
|
||||
#endif
|
||||
|
||||
void set_input_map (uint32_t, ChanMapping);
|
||||
void set_output_map (uint32_t, ChanMapping);
|
||||
|
|
|
@ -540,7 +540,7 @@ PluginInsert::connect_and_run (BufferSet& bufs, pframes_t nframes, framecnt_t of
|
|||
|
||||
}
|
||||
#ifdef MIXBUS
|
||||
if (_plugins.front()->is_channelstrip() ) {
|
||||
if (is_channelstrip ()) {
|
||||
if (_configured_in.n_audio() > 0) {
|
||||
ChanMapping mb_in_map (ChanCount::min (_configured_in, ChanCount (DataType::AUDIO, 2)));
|
||||
ChanMapping mb_out_map (ChanCount::min (_configured_out, ChanCount (DataType::AUDIO, 2)));
|
||||
|
@ -995,12 +995,30 @@ PluginInsert::output_map () const
|
|||
bool
|
||||
PluginInsert::has_midi_bypass () const
|
||||
{
|
||||
if (_configured_in.n_midi () == 1 && _configured_out.n_midi () == 1 && natural_output_streams ().n_midi () == 0) {
|
||||
if (_configured_in.n_midi () == 1 && _configured_out.n_midi () == 1
|
||||
&& natural_output_streams ().n_midi () == 0) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
PluginInsert::has_midi_trhu () const
|
||||
{
|
||||
if (_configured_in.n_midi () == 1 && _configured_out.n_midi () == 1
|
||||
&& natural_input_streams ().n_midi () == 0 && natural_output_streams ().n_midi () == 0) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifdef MIXBUS
|
||||
bool
|
||||
PluginInsert::is_channelstrip () const {
|
||||
return _plugins.front()->is_channelstrip();
|
||||
}
|
||||
#endif
|
||||
|
||||
bool
|
||||
PluginInsert::sanitize_maps ()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user