mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 20:55:42 +08:00
[AFV] Ref T739, removed unused code
This commit is contained in:
@@ -385,29 +385,6 @@ namespace BlackCore
|
|||||||
this->setVoiceOutputVolume(v);
|
this->setVoiceOutputVolume(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
CComSystem CContextAudioBase::xCtxGetOwnComSystem(CComSystem::ComUnit unit) const
|
|
||||||
{
|
|
||||||
if (!this->getIContextOwnAircraft())
|
|
||||||
{
|
|
||||||
// context not available
|
|
||||||
const double defFreq = 122.8;
|
|
||||||
switch (unit)
|
|
||||||
{
|
|
||||||
case CComSystem::Com1: return CComSystem::getCom1System(defFreq, defFreq);
|
|
||||||
case CComSystem::Com2: return CComSystem::getCom2System(defFreq, defFreq);
|
|
||||||
default: break;
|
|
||||||
}
|
|
||||||
return CComSystem::getCom1System(defFreq, defFreq);
|
|
||||||
}
|
|
||||||
return this->getIContextOwnAircraft()->getOwnComSystem(unit);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool CContextAudioBase::xCtxIsComIntegratedWithSimulator() const
|
|
||||||
{
|
|
||||||
if (!this->getIContextSimulator()) { return false; }
|
|
||||||
return this->getIContextSimulator()->getSimulatorSettings().isComIntegrated();
|
|
||||||
}
|
|
||||||
|
|
||||||
void CContextAudioBase::xCtxNetworkConnectionStatusChanged(const CConnectionStatus &from, const CConnectionStatus &to)
|
void CContextAudioBase::xCtxNetworkConnectionStatusChanged(const CConnectionStatus &from, const CConnectionStatus &to)
|
||||||
{
|
{
|
||||||
if (!m_voiceClient) { return; }
|
if (!m_voiceClient) { return; }
|
||||||
|
|||||||
@@ -257,13 +257,6 @@ namespace BlackCore
|
|||||||
void audioDecreaseVolume(bool enabled);
|
void audioDecreaseVolume(bool enabled);
|
||||||
//! @}
|
//! @}
|
||||||
|
|
||||||
//! Get current COM unit from cockpit
|
|
||||||
//! \remark cross context
|
|
||||||
//! @{
|
|
||||||
BlackMisc::Aviation::CComSystem xCtxGetOwnComSystem(BlackMisc::Aviation::CComSystem::ComUnit unit) const;
|
|
||||||
bool xCtxIsComIntegratedWithSimulator() const;
|
|
||||||
//! @}
|
|
||||||
|
|
||||||
//! Network connection status
|
//! Network connection status
|
||||||
void xCtxNetworkConnectionStatusChanged(const BlackMisc::Network::CConnectionStatus &from, const BlackMisc::Network::CConnectionStatus &to);
|
void xCtxNetworkConnectionStatusChanged(const BlackMisc::Network::CConnectionStatus &from, const BlackMisc::Network::CConnectionStatus &to);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user