MCU: add MackieControlProtocol::is_bus

This commit is contained in:
Franke Burgarino
2025-08-22 13:56:50 -05:00
parent 75f8aa3673
commit d49e44c5c7
2 changed files with 7 additions and 0 deletions

View File

@@ -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
{

View File

@@ -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;