mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
[AFV] Ref T739, use the Audio base class with the shared CAfvClient functions
This commit is contained in:
@@ -81,7 +81,7 @@ namespace BlackCore
|
||||
|
||||
CContextOwnAircraft *CContextOwnAircraft::registerWithDBus(CDBusServer *server)
|
||||
{
|
||||
if (!server || m_mode != CCoreFacadeConfig::LocalInDBusServer) return this;
|
||||
if (!server || m_mode != CCoreFacadeConfig::LocalInDBusServer) { return this; }
|
||||
server->addObject(IContextOwnAircraft::ObjectPath(), this);
|
||||
return this;
|
||||
}
|
||||
@@ -418,7 +418,8 @@ namespace BlackCore
|
||||
void CContextOwnAircraft::setAudioOutputVolume(int outputVolume)
|
||||
{
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << outputVolume; }
|
||||
if (this->getIContextAudio()) this->getIContextAudio()->setVoiceOutputVolume(outputVolume);
|
||||
CContextAudioBase *audio = qobject_cast<CContextAudioBase *>(this->getIContextAudio());
|
||||
if (audio) { audio->setVoiceOutputVolume(outputVolume); }
|
||||
}
|
||||
|
||||
void CContextOwnAircraft::xCtxChangedAtcStationOnlineConnectionStatus(const CAtcStation &atcStation, bool connected)
|
||||
|
||||
Reference in New Issue
Block a user