Changed voice context so it can play SELCAL tones. This makes sense, as I can

use the device information of this context. Sound shall be played on the
same computer as the voice.

* Adjusted .pro file
* Methods for SELCAL in context
* New XML file (DBus)
* changed the place where I can obtain the current in/output device
This commit is contained in:
Klaus Basan
2014-02-05 21:05:00 +00:00
committed by Mathew Sutcliffe
parent f9225814f9
commit 6485527062
9 changed files with 114 additions and 27 deletions

View File

@@ -9,6 +9,7 @@
using namespace BlackMisc::Voice;
using namespace BlackMisc::Network;
using namespace BlackMisc::Aviation;
namespace BlackCore
{
@@ -86,6 +87,14 @@ namespace BlackCore
return this->m_dBusInterface->callDBusRet<CAudioDeviceList>(QLatin1Literal("getCurrentAudioDevices"));
}
/*
* Set current audio device
*/
void IContextVoice::setCurrentAudioDevice(const CAudioDevice &audioDevice)
{
this->m_dBusInterface->callDBus(QLatin1Literal("setCurrentAudioDevice"), audioDevice);
}
/*
* Voice rooms, with audio status
*/
@@ -127,11 +136,11 @@ namespace BlackCore
}
/*
* Set current audio device
* Play SELCAL tone
*/
void IContextVoice::setCurrentAudioDevice(const CAudioDevice &audioDevice)
void IContextVoice::playSelcalTone(const CSelcal &selcal) const
{
this->m_dBusInterface->callDBus(QLatin1Literal("setCurrentAudioDevice"), audioDevice);
this->m_dBusInterface->callDBus(QLatin1Literal("playSelcalTone"), selcal);
}
/*