Try   HackMD

Voicemeeter crackling microphone fix

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.

But for you i created a sustainable fix.

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
Create a planned task

Ok, you have now the script, but you have to run it every time windows start.

  1. Put both files on C: drive

  2. Open task scheduler

  3. Create Basic Task

    1. Name : "Voicemeeter audioFix"
    2. Trigger : "When i log on"
    3. Action : "Start a program"
    4. Program/script : Put the access path to the SilentLauncher.vbs : C:\SilentLauncher.vbs
    5. Start in : C:\
    6. On finish tab, check "open the propreties dialog for this task whe i click finish"
    7. Click finish
  4. On the general tab

    1. Check "Run with highest privileges"
    2. Configure for : "Windows 10"
  5. On Settings tab

    1. Check "If the task fails, restart every" and select "1 minute"
  6. That's it, the next time you restart your computer, the audio will be fixed automatically.