MCU: add MackieControlProtocol::is_bus
This commit is contained in:
@@ -2380,6 +2380,12 @@ MackieControlProtocol::is_trigger_track (std::shared_ptr<Stripable> r) const
|
||||
return (trk && (r)->presentation_info ().trigger_track ());
|
||||
}
|
||||
|
||||
bool
|
||||
MackieControlProtocol::is_bus (std::shared_ptr<Stripable> r) const
|
||||
{
|
||||
return ((r)->presentation_info ().flags () & PresentationInfo::Bus);
|
||||
}
|
||||
|
||||
bool
|
||||
MackieControlProtocol::is_foldback_bus (std::shared_ptr<Stripable> r) const
|
||||
{
|
||||
|
||||
@@ -132,6 +132,7 @@ class MackieControlProtocol
|
||||
bool is_audio_track (std::shared_ptr<ARDOUR::Stripable>) const;
|
||||
bool is_midi_track (std::shared_ptr<ARDOUR::Stripable>) const;
|
||||
bool is_trigger_track (std::shared_ptr<ARDOUR::Stripable>) const;
|
||||
bool is_bus (std::shared_ptr<ARDOUR::Stripable>) const;
|
||||
bool is_foldback_bus (std::shared_ptr<ARDOUR::Stripable>) const;
|
||||
bool is_vca (std::shared_ptr<ARDOUR::Stripable>) const;
|
||||
bool has_instrument (std::shared_ptr<ARDOUR::Stripable>) const;
|
||||
|
||||
Reference in New Issue
Block a user