mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
US2400: build-fix: need some IFDEFs for Mixbus.
This commit is contained in:
parent
f13acad7ed
commit
193cebc912
1 changed files with 6 additions and 0 deletions
|
|
@ -216,6 +216,7 @@ US2400Protocol::stripable_is_locked_to_strip (boost::shared_ptr<Stripable> r) co
|
|||
return false;
|
||||
}
|
||||
|
||||
#ifdef MIXBUS
|
||||
struct StripableByMixbusOrder
|
||||
{
|
||||
bool operator () (const boost::shared_ptr<Stripable> & a, const boost::shared_ptr<Stripable> & b) const
|
||||
|
|
@ -233,6 +234,7 @@ struct StripableByMixbusOrder
|
|||
return a->mixbus() < b->mixbus();
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
// predicate for sort call in get_sorted_stripables
|
||||
struct StripableByPresentationOrder
|
||||
|
|
@ -305,11 +307,15 @@ US2400Protocol::get_sorted_stripables()
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef MIXBUS
|
||||
if (_view_mode == Busses) {
|
||||
sort (sorted.begin(), sorted.end(), StripableByMixbusOrder());
|
||||
} else {
|
||||
sort (sorted.begin(), sorted.end(), StripableByPresentationOrder());
|
||||
}
|
||||
#else
|
||||
sort (sorted.begin(), sorted.end(), StripableByPresentationOrder());
|
||||
#endif
|
||||
return sorted;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue