Skip to content

Commit

Permalink
Merge Voice cracking on high load (pr-2744)
Browse files Browse the repository at this point in the history
f16fca7 - fix(voip/mumble): Voice cracking on high load
  • Loading branch information
prikolium-cfx committed Oct 3, 2024
2 parents db0d747 + f16fca7 commit 04dc42c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/components/voip-mumble/src/MumbleAudioInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ void MumbleAudioInput::ThreadFunc()
{
SetThreadName(-1, "[Mumble] Audio Input Thread");

SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL);

// initialize COM for the current thread
CoInitialize(nullptr);

Expand Down
2 changes: 2 additions & 0 deletions code/components/voip-mumble/src/MumbleAudioOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1469,6 +1469,8 @@ void MumbleAudioOutput::ThreadFunc()

mmcssHandle = AvSetMmThreadCharacteristics(L"Audio", &mmcssTaskIndex);

SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_ABOVE_NORMAL);

// initialize COM for the current thread
CoInitialize(nullptr);

Expand Down

0 comments on commit 04dc42c

Please sign in to comment.