mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 18:55:38 +08:00
[AFV] Connect the network status change signal on both sides (core+UI),
as both sides can have independent audio (AFV) clients This solves the issue that users have to restart audio on a "remote" swift GUI
This commit is contained in:
committed by
Mat Sutcliffe
parent
ecf5d45993
commit
08c004e69b
@@ -276,11 +276,12 @@ namespace BlackCore
|
|||||||
}
|
}
|
||||||
|
|
||||||
// connection status of network changed
|
// connection status of network changed
|
||||||
if (m_contextAudio && m_contextAudio->isUsingImplementingObject())
|
// with AFV no longer use m_contextAudio->isUsingImplementingObject() as audio can run on both sides
|
||||||
|
if (this->getCContextAudioBase() && m_contextNetwork)
|
||||||
{
|
{
|
||||||
Q_ASSERT(m_contextApplication);
|
Q_ASSERT(m_contextApplication);
|
||||||
c = connect(m_contextNetwork, &IContextNetwork::connectionStatusChanged,
|
c = connect(m_contextNetwork, &IContextNetwork::connectionStatusChanged,
|
||||||
this->getCContextAudio(), &CContextAudio::xCtxNetworkConnectionStatusChanged, Qt::QueuedConnection);
|
this->getCContextAudioBase(), &CContextAudio::xCtxNetworkConnectionStatusChanged, Qt::QueuedConnection);
|
||||||
Q_ASSERT(c);
|
Q_ASSERT(c);
|
||||||
times.insert("Post setup, connects audio", time.restart());
|
times.insert("Post setup, connects audio", time.restart());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user