16using namespace swift::misc::audio;
17using namespace swift::misc::aviation;
18using namespace swift::core::afv::clients;
20namespace swift::core::context
35 m_registeredDevices.registerDevices(devices);
40 m_registeredDevices.unRegisterDevices(devices);
45 m_registeredDevices.unRegisterDevices(
identifier);
50 m_registeredCallsigns.insert(
identifier, callsign);
61 return std::ranges::any_of(m_registeredCallsigns, [&](
const CCallsign &cs) {
return callsign == cs; });
ContextMode
How to handle a given context.
void changedLocalAudioDevices(const swift::misc::audio::CAudioDeviceInfoList &devices)
Changed audio devices (e.g. device enabled/disable).
CContextAudioBase(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime)
Constructor.
CContextAudio(CCoreFacadeConfig::ContextMode mode, CCoreFacade *runtime)
Constructor.
void registerAudioCallsign(const swift::misc::aviation::CCallsign &callsign, const swift::misc::CIdentifier &identifier)
Register an audio callsign (used with AFV).
void unRegisterDevices(const swift::misc::audio::CAudioDeviceInfoList &devices)
Unregister devices.
void registerDevices(const swift::misc::audio::CAudioDeviceInfoList &devices)
Register a device on a machine (for core/GUI it will return all known devices on all machines).
void unRegisterDevicesFor(const swift::misc::CIdentifier &identifier)
Remove all devices for identifier (i.e. "a machine").
void unRegisterAudioCallsign(const swift::misc::aviation::CCallsign &callsign, const swift::misc::CIdentifier &identifier)
Un-register an audio callsign (used with AFV).
misc::audio::CAudioDeviceInfoList getRegisteredDevices() const
All registered devices.
bool hasRegisteredAudioCallsign(const swift::misc::aviation::CCallsign &callsign) const
Un-register an audio callsign (used with AFV).
void onChangedLocalDevices(const swift::misc::audio::CAudioDeviceInfoList &devices)
Devices have been changed.
const CIdentifier & identifier() const
Get identifier.
Value object encapsulating information identifying a component of a modular distributed swift process...
bool isEmpty() const
Synonym for empty.
Value object encapsulating a list of audio devices.
Value object encapsulating information of a callsign.
Free functions in swift::misc.
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)