[AFV] Allow to set the tx/rx values for the AFV client

Simplified function
This commit is contained in:
Klaus Basan
2020-04-12 16:32:20 +02:00
committed by Mat Sutcliffe
parent 63cc2a7e3e
commit ea8198d26e
4 changed files with 127 additions and 36 deletions

View File

@@ -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");

View File

@@ -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