mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 13:55:36 +08:00
Ref T730, Ref T739, make sure transmitting receivers are correct
* deferred init, make sure values from context are used (if possible) * only use 1 transmitting transceiver
This commit is contained in:
committed by
Mat Sutcliffe
parent
160589c975
commit
f81a9e8447
@@ -236,7 +236,7 @@ namespace BlackCore
|
||||
void onSettingsChanged();
|
||||
|
||||
void updateTransceivers(bool updateFrequencies = true);
|
||||
void updateTransceiversFromContext(const BlackMisc::Simulation::CSimulatedAircraft &aircraft, const BlackMisc::CIdentifier &originator);
|
||||
void onUpdateTransceiversFromContext(const BlackMisc::Simulation::CSimulatedAircraft &aircraft, const BlackMisc::CIdentifier &originator);
|
||||
|
||||
static constexpr int PositionUpdatesMs = 5000; //!< position timer
|
||||
static constexpr int SampleRate = 48000;
|
||||
@@ -282,10 +282,13 @@ namespace BlackCore
|
||||
Audio::InputVolumeStreamArgs m_inputVolumeStream;
|
||||
Audio::OutputVolumeStreamArgs m_outputVolumeStream;
|
||||
|
||||
void deferredInit();
|
||||
void initTransceivers();
|
||||
void initWithContext();
|
||||
void connectWithContexts();
|
||||
static bool hasContext();
|
||||
|
||||
std::atomic_bool m_connectedWithContext { false };
|
||||
|
||||
mutable QMutex m_mutex;
|
||||
mutable QMutex m_mutexInputStream;
|
||||
mutable QMutex m_mutexOutputStream;
|
||||
|
||||
Reference in New Issue
Block a user