mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
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:
committed by
Mathew Sutcliffe
parent
f9225814f9
commit
6485527062
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user