Hello folks. I started noticing this with Nativeaudio last weekend (2021-03-13) when both I and my pal were on Canary. At the time, stable did not have the same issue.
Details
Client version: Canary b2189 (Specifically tested at 2021-03-18, issued first encountered on 2021-03-13)
Server artifact: #3679 and #3652 Windows ← The video below was taken on #3652
Voice parameters: voice_use3dAudio false, voice_useSendingRangeOnly true, voice_useNativeAudio true
Fully reproducible on #3679 unmodified server. Only occurs with native audio enabled. With 3d audio, the issue does not occur.
Issue
it appears that if MumbleSetVolumeOverrideByServerId
is being run on a target for a second time (within a relatively short time span? unconfirmed) the target’s voice starts lagging horribly.
Expected Behavior
I use MumbleSetVolumeOverrideByServerId
to allow for long-distance communication like talking on a radio/phone. What should happen is this sets the volume of the transmission and overrides distance calculations and 3daudio. When using -1.0 it should reset so that the player can be heard locally.
Current Behaviour
When MumbleSetVolumeOverrideByServerId
is being run for a second time on a player, said player’s voice becomes extremely laggy or hangs completely. (The scruffy voice seems to clear after 15-30 seconds or so after MumbleSetVolumeOverrideByServerId
has been set to -1.0).
Repro
I ran this snippet in a command to simulate someone starting to speak on a radio:
MumbleSetVolumeOverrideByServerId(2, 0.5) -- Player started sending on radio
Wait(3000)
MumbleSetVolumeOverrideByServerId(2, -1.0) -- Player stopped sending on radio
print(1) -- Print so I can see in-game when we reset
Video
Notes: You can see in the video when his voice should have been reset. He had completely stopped transmitting at the end of the video. After an unknown interval, I can hear him normally again.
https://streamable.com/e/7zgklf
Link in-case video doesn’t load: https://streamable.com/e/7zgklf
Sorry it took me a week to send this in, should have said something 7 days ago