v10networkscom / saltychat-docs

Documentation for Salty Chat (TeamSpeak 3 based Voice Plugin)
https://gaming.v10networks.com
15 stars 22 forks source link

[Feature-Request] Add IsHardwareInputEnabled and IsHardwareOutputEnabled state in the Command 6 - SoundState #15

Closed MypowerHD closed 4 years ago

MypowerHD commented 4 years ago

It would be nice if we can check that the Player has no Input or Output Hardware enabled. In the plugin sdk it handled over the HardwareInputStatus and HardwareOutputStatus.

https://github.com/TeamSpeak-Systems/ts3client-pluginsdk/blob/a39d50383b4a023941c31c08fe0c9766b149ed01/include/teamspeak/public_definitions.h#L80

BlackFlash5 commented 4 years ago

Got this implemented in 2.0.0, but unfortunately TeamSpeak doesn't trigger the client variable update when you join another TeamSpeak server, where the mic gets disabled automatically.

riffy commented 4 years ago

So there is currently no way to capture this behavior ? mic_deactivated

Maybe the Input Disable/Enable can still be treated then as IsMicrophoneMuted and IsSoundMuted

BlackFlash5 commented 4 years ago

I got a solution for this, which will be in 2.0.0p2. The issue is, that TeamSpeak updates the client property CLIENT_INPUT_HARDWARE only on the connection tab where the mic will be enabled and completely forgets about the tab where the mic was active. So you have to listen for that and set the mic as disabled, when it gets enabled on any other tab.

BlackFlash5 commented 4 years ago

2.0.0 is with this feature implemented on the stable branch.