Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tweak(mumble): swap to completely using TCP ping for checking if UDP is available #3052

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AvarianKnight
Copy link
Contributor

@AvarianKnight AvarianKnight commented Jan 5, 2025

  • The previous implementation would constantly swap between UDP/TCP constantly causing the players mic to stutter
  • The old implementation should've been completely removed, this is an oversight in f182bb5

Goal of this PR

Fix broken implementation of f182bb5, time since last UDP received doesn't matter as this is all determined by MumbleCrypto.

How is this PR achieving the goal

Removes UDP timeout checks and once m_hasUdp is set to true, disallow it from being set to false again for the first 20 seconds of a connection (mimicking mumbles implementation https://github.com/mumble-voip/mumble/blob/e64f334c9376cfc8425916a152e3c09e301d5188/src/mumble/ServerHandler.cpp#L648-L663)

This PR applies to the following area(s)

FiveM, RedM

Successfully tested on

Game builds: ..

Platforms:

Checklist

These changes were not tested, but did compile fine.

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

Fixes issues

Fixes AvarianKnight/pma-voice#510

@github-actions github-actions bot added invalid Requires changes before it's considered valid and can be (re)triaged RedM Issues/PRs related to RedM labels Jan 5, 2025
…is available

- The previous implementation would constantly swap between UDP/TCP constantly causing the players mic to stutter
- The old implementation should've been completely removed, this is an oversight in citizenfx@f182bb5
Copy link
Contributor

@FabianTerhorst FabianTerhorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@FabianTerhorst FabianTerhorst added ready-to-merge This PR is enqueued for merging and removed invalid Requires changes before it's considered valid and can be (re)triaged labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR is enqueued for merging RedM Issues/PRs related to RedM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mic is choppy
2 participants