mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
Expanded voice sample to an interactive app
refs #36 - Based on the existing network sample, expanded the voice sample to an interactive app - Implmenented commands: mic test, squelch test refs #81
This commit is contained in:
committed by
Mathew Sutcliffe
parent
7292e265fb
commit
f91525b65b
@@ -76,6 +76,7 @@ namespace BlackCore
|
||||
virtual void runMicTest() = 0;
|
||||
|
||||
virtual float inputSquelch() const = 0;
|
||||
virtual Cvatlib_Voice_Simple::agc micTestResult() const = 0;
|
||||
|
||||
virtual const BlackMisc::Voice::CVoiceRoom &voiceRoom (const uint32_t comUnit) = 0;
|
||||
|
||||
|
||||
@@ -177,6 +177,11 @@ namespace BlackCore
|
||||
return m_inputSquelch;
|
||||
}
|
||||
|
||||
Cvatlib_Voice_Simple::agc CVoiceClientVatlib::micTestResult() const
|
||||
{
|
||||
return m_micTestResult;
|
||||
}
|
||||
|
||||
const BlackMisc::Voice::CVoiceRoom &CVoiceClientVatlib::voiceRoom(const uint32_t comUnit)
|
||||
{
|
||||
|
||||
@@ -202,7 +207,6 @@ namespace BlackCore
|
||||
|
||||
//TODO: store captured squelch
|
||||
m_inputSquelch = m_voice->GetInputSquelch();
|
||||
qDebug() << m_inputSquelch;
|
||||
emit squelchTestFinished();
|
||||
}
|
||||
catch (...) { this->exceptionDispatcher(Q_FUNC_INFO); }
|
||||
@@ -214,8 +218,7 @@ namespace BlackCore
|
||||
{
|
||||
Q_ASSERT_X (m_voice->IsValid() && m_voice->IsSetup(), "CVoiceClientVatlib", "Cvatlib_Voice_Simple invalid or not setup!");
|
||||
|
||||
Cvatlib_Voice_Simple::agc micTestResult = m_voice->EndMicTest();
|
||||
qDebug() << micTestResult;
|
||||
m_micTestResult = m_voice->EndMicTest();
|
||||
emit micTestFinished();
|
||||
}
|
||||
catch (...) { this->exceptionDispatcher(Q_FUNC_INFO); }
|
||||
|
||||
@@ -53,6 +53,7 @@ namespace BlackCore
|
||||
virtual void runMicTest();
|
||||
|
||||
virtual float inputSquelch() const;
|
||||
virtual Cvatlib_Voice_Simple::agc micTestResult() const;
|
||||
|
||||
|
||||
virtual const BlackMisc::Voice::CVoiceRoom &voiceRoom (const uint32_t comUnit);
|
||||
@@ -94,6 +95,7 @@ namespace BlackCore
|
||||
QList<BlackMisc::Voice::COutputAudioDevice> m_outputDevices;
|
||||
|
||||
float m_inputSquelch;
|
||||
Cvatlib_Voice_Simple::agc m_micTestResult;
|
||||
};
|
||||
|
||||
} // namespace BlackCore
|
||||
|
||||
Reference in New Issue
Block a user