michail-nikolaev / task-force-arma-3-radio

TeamSpeak integration for Arma 3
http://radio.task-force.ru/en/
Other
315 stars 169 forks source link

Proper half-duplex #1205

Open dedmen opened 7 years ago

dedmen commented 7 years ago

Currently we only have semi-duplex. Real half-duplex should prevent the Sender from pressing the tangent while a transmission is coming in. https://www.funkgeraete-vermietung.de/Duplex.html

10Dozen commented 7 years ago

Hi,

is there any possibility to add proxy-solution by simple set radio volume to 0 in onSwTangentPressed function, and return volume back in onSwTangentReleased? I tested it and it sounds good for user.

It may be configurable, until 1.0.1 will be released.

I mean something like: onSwTangentPressed.sqf at 11 line:

player setVariable ["TFAR_CurrentSWRadioVolume",_radio call TFAR_fnc_getSwVolume]; [_radio, 0] call TFAR_fnc_setSwVolume;

onSwTangentReleased.sqf at 5 line:

if (!isNil { player getVariable "TFAR_CurrentSWRadioVolume" }) then { [_radio, player getVariable "TFAR_CurrentSWRadioVolume"] call TFAR_fnc_setSwVolume; player setVariable ["TFAR_CurrentSWRadioVolume",nil]; };

dedmen commented 7 years ago

That would prevent you to hear while you are sending. Which is exactly what Semi-duplex is doing right now.