mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Fixes around audio "on remote computer"
* Better options to debug * Fixes as of n2, https://dev.vatsim-germany.org/boards/22/topics/1792?r=1802#message-1802 * Doxygen
This commit is contained in:
@@ -164,10 +164,14 @@ namespace BlackCore
|
||||
{
|
||||
Q_ASSERT(this->m_voice);
|
||||
if (this->getRuntime()->isSlotLogForAudioEnabled()) this->getRuntime()->logSlot(Q_FUNC_INFO, com1.toQString(), com2.toQString());
|
||||
|
||||
// volumes
|
||||
qint32 vol1 = com1.getVolumeOutput();
|
||||
qint32 vol2 = com2.getVolumeOutput();
|
||||
this->m_voice->setRoomOutputVolume(IVoice::COM1, vol1);
|
||||
this->m_voice->setRoomOutputVolume(IVoice::COM2, vol2);
|
||||
|
||||
// enable / disable in the same step
|
||||
this->m_voice->switchAudioOutput(IVoice::COM1, com1.isEnabled());
|
||||
this->m_voice->switchAudioOutput(IVoice::COM2, com2.isEnabled());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user