mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-10 22:15:34 +08:00
[AFV], Ref T730 play audio "tuned in"/"out"
Replaces the former voice room connected sounds
This commit is contained in:
@@ -47,6 +47,14 @@ namespace BlackMisc
|
||||
});
|
||||
}
|
||||
|
||||
bool CAtcStationList::hasComUnitTunedInChannelSpacing(const CComSystem &comUnit) const
|
||||
{
|
||||
return this->containsBy([&](const CAtcStation & atcStation)
|
||||
{
|
||||
return atcStation.isComUnitTunedInChannelSpacing(comUnit);
|
||||
});
|
||||
}
|
||||
|
||||
CAtcStationList CAtcStationList::findIfFrequencyIsWithinSpacing(const CFrequency &frequency, CComSystem::ChannelSpacing spacing)
|
||||
{
|
||||
if (frequency.isNull()) { return CAtcStationList(); }
|
||||
@@ -110,6 +118,14 @@ namespace BlackMisc
|
||||
return this->removeIf(&CAtcStation::isInRange, false);
|
||||
}
|
||||
|
||||
CAtcStationList CAtcStationList::findInRange() const
|
||||
{
|
||||
if (this->isEmpty()) { return {}; }
|
||||
CAtcStationList copy(*this);
|
||||
copy.removeIfOutsideRange();
|
||||
return copy;
|
||||
}
|
||||
|
||||
int CAtcStationList::synchronizeWithBookedStation(CAtcStation &bookedAtcStation)
|
||||
{
|
||||
int c = 0;
|
||||
|
||||
Reference in New Issue
Block a user