Skip to content

Commit

Permalink
fix(voip/mumble): Voice cracking on high load
Browse files Browse the repository at this point in the history
  • Loading branch information
Ktos93 committed Aug 23, 2024
1 parent d5255f9 commit f16fca7
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 f16fca7

Please sign in to comment.