Add client-side handling for channel levels
This commit is contained in:
parent
36e54f4da7
commit
30c4e006b6
4 changed files with 24 additions and 0 deletions
|
@ -192,6 +192,10 @@ CClient::CClient ( const quint16 iPortNumber,
|
||||||
SIGNAL ( CLVersionAndOSReceived ( CHostAddress, COSUtil::EOpSystemType, QString ) ) );
|
SIGNAL ( CLVersionAndOSReceived ( CHostAddress, COSUtil::EOpSystemType, QString ) ) );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
QObject::connect ( &ConnLessProtocol,
|
||||||
|
SIGNAL ( CLChannelLevelListReceived ( CHostAddress, CVector<uint16_t> ) ),
|
||||||
|
this, SLOT ( OnCLChannelLevelListReceived ( CHostAddress, CVector<uint16_t> ) ) );
|
||||||
|
|
||||||
// other
|
// other
|
||||||
QObject::connect ( &Sound, SIGNAL ( ReinitRequest ( int ) ),
|
QObject::connect ( &Sound, SIGNAL ( ReinitRequest ( int ) ),
|
||||||
this, SLOT ( OnSndCrdReinitRequest ( int ) ) );
|
this, SLOT ( OnSndCrdReinitRequest ( int ) ) );
|
||||||
|
@ -610,6 +614,12 @@ void CClient::OnSndCrdReinitRequest ( int iSndCrdResetType )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CClient::OnCLChannelLevelListReceived ( CHostAddress InetAddr,
|
||||||
|
CVector<uint16_t> vecLevelList )
|
||||||
|
{
|
||||||
|
emit CLChannelLevelListReceived ( InetAddr, vecLevelList );
|
||||||
|
}
|
||||||
|
|
||||||
void CClient::Start()
|
void CClient::Start()
|
||||||
{
|
{
|
||||||
// always use the OPUS codec
|
// always use the OPUS codec
|
||||||
|
|
|
@ -402,6 +402,9 @@ public slots:
|
||||||
|
|
||||||
void OnSndCrdReinitRequest ( int iSndCrdResetType );
|
void OnSndCrdReinitRequest ( int iSndCrdResetType );
|
||||||
|
|
||||||
|
void OnCLChannelLevelListReceived ( CHostAddress InetAddr,
|
||||||
|
CVector<uint16_t> vecLevelList );
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void ConClientListMesReceived ( CVector<CChannelInfo> vecChanInfo );
|
void ConClientListMesReceived ( CVector<CChannelInfo> vecChanInfo );
|
||||||
void ChatTextReceived ( QString strChatText );
|
void ChatTextReceived ( QString strChatText );
|
||||||
|
@ -424,6 +427,9 @@ signals:
|
||||||
QString strVersion );
|
QString strVersion );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void CLChannelLevelListReceived ( CHostAddress InetAddr,
|
||||||
|
CVector<uint16_t> vecLevelList );
|
||||||
|
|
||||||
void Disconnected();
|
void Disconnected();
|
||||||
void ControllerInFaderLevel ( int iChannelIdx, int iValue );
|
void ControllerInFaderLevel ( int iChannelIdx, int iValue );
|
||||||
};
|
};
|
||||||
|
|
|
@ -486,6 +486,10 @@ CClientDlg::CClientDlg ( CClient* pNCliP,
|
||||||
SIGNAL ( ControllerInFaderLevel ( int, int ) ),
|
SIGNAL ( ControllerInFaderLevel ( int, int ) ),
|
||||||
this, SLOT ( OnControllerInFaderLevel ( int, int ) ) );
|
this, SLOT ( OnControllerInFaderLevel ( int, int ) ) );
|
||||||
|
|
||||||
|
QObject::connect ( pClient,
|
||||||
|
SIGNAL ( CLChannelLevelListReceived ( CHostAddress, CVector<uint16_t> ) ),
|
||||||
|
this, SLOT ( OnCLChannelLevelListReceived ( CHostAddress, CVector<uint16_t> ) ) );
|
||||||
|
|
||||||
#ifdef ENABLE_CLIENT_VERSION_AND_OS_DEBUGGING
|
#ifdef ENABLE_CLIENT_VERSION_AND_OS_DEBUGGING
|
||||||
QObject::connect ( pClient,
|
QObject::connect ( pClient,
|
||||||
SIGNAL ( CLVersionAndOSReceived ( CHostAddress, COSUtil::EOpSystemType, QString ) ),
|
SIGNAL ( CLVersionAndOSReceived ( CHostAddress, COSUtil::EOpSystemType, QString ) ),
|
||||||
|
|
|
@ -192,6 +192,10 @@ public slots:
|
||||||
CVector<CChannelInfo> vecChanInfo )
|
CVector<CChannelInfo> vecChanInfo )
|
||||||
{ ConnectDlg.SetConnClientsList ( InetAddr, vecChanInfo ); }
|
{ ConnectDlg.SetConnClientsList ( InetAddr, vecChanInfo ); }
|
||||||
|
|
||||||
|
void OnCLChannelLevelListReceived ( CHostAddress /* unused */,
|
||||||
|
CVector<uint16_t> vecLevelList )
|
||||||
|
{ MainMixerBoard->SetChannelLevels ( vecLevelList ); }
|
||||||
|
|
||||||
void OnConnectDlgAccepted();
|
void OnConnectDlgAccepted();
|
||||||
void OnDisconnected();
|
void OnDisconnected();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue