mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 07:15:34 +08:00
[AFV] Allow to set the tx/rx values for the AFV client
Simplified function
This commit is contained in:
committed by
Mat Sutcliffe
parent
63cc2a7e3e
commit
ea8198d26e
@@ -252,6 +252,22 @@ namespace BlackCore
|
||||
}
|
||||
}
|
||||
|
||||
void CContextAudioBase::setRxTx(bool rx1, bool tx1, bool rx2, bool tx2)
|
||||
{
|
||||
if (m_voiceClient)
|
||||
{
|
||||
m_voiceClient->setRxTx(rx1, tx1, rx2, tx2);
|
||||
}
|
||||
}
|
||||
|
||||
void CContextAudioBase::getRxTx(bool &rx1, bool &tx1, bool &rx2, bool &tx2) const
|
||||
{
|
||||
if (m_voiceClient)
|
||||
{
|
||||
m_voiceClient->setRxTx(rx1, tx1, rx2, tx2);
|
||||
}
|
||||
}
|
||||
|
||||
const CIdentifier &CContextAudioBase::audioRunsWhere() const
|
||||
{
|
||||
static const CIdentifier i("CContextAudioBaseImpl");
|
||||
|
||||
@@ -148,6 +148,11 @@ namespace BlackCore
|
||||
void disableVoiceClient() { this->terminateVoiceClient(); }
|
||||
//! @}
|
||||
|
||||
//! Receive/transmit @{
|
||||
void setRxTx(bool rx1, bool tx1, bool rx2, bool tx2);
|
||||
void getRxTx(bool &rx1, bool &tx1, bool &rx2, bool &tx2) const;
|
||||
//! @}
|
||||
|
||||
// -------- parts which can run in core and GUI, referring to local voice client ------------
|
||||
|
||||
//! Audio devices
|
||||
|
||||
Reference in New Issue
Block a user