If you are here it means your microphone is crackling in discord.
The solution is explained here : https://www.youtube.com/watch?v=71HrZfR_Fro
You can fix the problem by switching the audiodg.exe windows program priority to High and affinity to a single core from task manager
The problem is that it is necessary to remake this manipulation has each starting of windows.
You just have to create the file AffinitySetScript.ps1
that allows you to do everything automatically
param(
[switch]$Elevated,
[Parameter(Mandatory=$true)][string]$processName,
[Parameter(Mandatory=$true)][int]$affinity,
[int]$debugMode=0
)
function Test-Admin {
$currentUser = New-Object Security.Principal.WindowsPrincipal $([Security.Principal.WindowsIdentity]::GetCurrent())
$currentUser.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)
}
$stringArgs = [string]$args
if ((Test-Admin) -eq $false) {
if ($elevated) {
} else {
Start-Process powershell.exe -Verb RunAs -ArgumentList ('-executionpolicy bypass -noprofile -file "{0}" -elevated {1} {2} {3} {4}' -f ($myinvocation.MyCommand.Definition), $processName, $affinity, $debugMode, $stringArgs)
}
exit
}
$allProcesses = Get-Process $processName
foreach ($process in $allProcesses) {
try {
$originalAffinity = $process.ProcessorAffinity
$process.ProcessorAffinity = $affinity
$newAffinity = $process.ProcessorAffinity
}
catch {
$process
}
}
Get-WmiObject Win32_process -filter 'name = "audiodg.exe"' | foreach-object { $_.SetPriority(128) }
And the file SilentLauncher.vbs
Which allows to launch the 1st file (AffinitySetScript.ps1
) discreetly at the launch of the windows session
command = "powershell.exe -nologo -executionpolicy bypass -file AffinitySetScript.ps1 -processName audiodg -affinity 4"
set shell = CreateObject("WScript.Shell")
shell.Run command,0
Ok, you have now the script, but you have to run it every time windows start.
Put both files on C: drive
Open task scheduler
Create Basic Task
SilentLauncher.vbs
: C:\SilentLauncher.vbs
C:\
On the general tab
On Settings tab
That's it, the next time you restart your computer, the audio will be fixed automatically.