Home Computer Audio Asylum

Music servers and other computer based digital audio technologies.

3. [Change] Reduce interference of Soundcard's Mixer process

RME and other pro soundcard suppliers have software drivers that installs a mixer process. These cannot be uninstalled or removed (without having other problems). During playback, mixing is not needed but interferes with sound quality. RME's mixer process creates some 30-70 context switches per second!

To prevent this interference, suspend Mixer process on foobar startup and resume on exit. Here are updated .bat files that do this for RME based cards (see rem #2 of both .bat files). For other soundcards, replace HDSP32.EXE (configuration process) & HDSPMIX.EXE with correct soundcard mixer's process name. Test and confirm which version you prefer.

======= ?.bat (stored on desktop) =======

@echo off
rem #1 Kill UI
start /b /wait c:\process.exe -k explorer.exe

rem #2 Suspend Windows
start /b /wait c:\process.exe -p smss.exe Low
start /b /wait c:\process.exe -p winlogon.exe Low
start /b /wait c:\process.exe -a smss.exe 01
start /b /wait c:\process.exe -a winlogon.exe 01
start /b /wait c:\process.exe -s smss.exe
start /b /wait c:\process.exe -s winlogon.exe
start /b /wait c:\process.exe -s hdsp32.exe
start /b /wait c:\process.exe -s hdspmix.exe

rem #3 Start Foobar2000
start /b /wait c:\process.exe -a cmd.exe 01
start /Low /min c:\foobar.bat

rem #4 Adjust priorities, eg. High, RealTime, AboveNormal, BelowNormal, Low;
rem # and Set Affinities
start /b /wait c:\process.exe -p system Normal
start /b /wait c:\process.exe -p csrss.exe Low
start /b /wait c:\process.exe -p services.exe Low
start /b /wait c:\process.exe -p svchost.exe Low
start /b /wait c:\process.exe -p lsass.exe Low
start /b /wait c:\process.exe -a system 10
start /b /wait c:\process.exe -a csrss.exe 11
start /b /wait c:\process.exe -a services.exe 10
start /b /wait c:\process.exe -a svchost.exe 01
start /b /wait c:\process.exe -a lsass.exe 01
start /b /wait c:\process.exe -a foobar2000.exe 11

rem #5 Start Task Manager (remove ‘rem ’ prefix of next 2 lines) or Process Explorer
rem start /b C:\WINDOWS\system32\taskmgr.exe
rem start /b /wait c:\process.exe -p taskmgr.exe Normal
rem start /b c:\progra~1\proces~1\procexp.exe /p:n
exit

======= Foobar.bat (stored in root drive C:\) =======

@echo off
rem #1 Start Foobar2000 in RealTime
start /wait /RealTime c:\progra~1\foobar2000\foobar2000.exe

rem #2 Resume Windows, Restore affinities & priorities, and Start UI
start /b /wait c:\process.exe -r winlogon.exe
start /b /wait c:\process.exe -r smss.exe
start /b /wait c:\process.exe -r hdsp32.exe
start /b /wait c:\process.exe -r hdspmix.exe

start /b /wait c:\process.exe -p smss.exe AboveNormal
start /b /wait c:\process.exe -p winlogon.exe High
start /b /wait c:\process.exe -p system Normal
start /b /wait c:\process.exe -p csrss.exe High
start /b /wait c:\process.exe -p services.exe Normal
start /b /wait c:\process.exe -p svchost.exe Normal
start /b /wait c:\process.exe -p lsass.exe Normal

start /b /wait c:\process.exe -a smss.exe 11
start /b /wait c:\process.exe -a winlogon.exe 11
start /b /wait c:\process.exe -a system 11
start /b /wait c:\process.exe -a csrss.exe 11
start /b /wait c:\process.exe -a services.exe 11
start /b /wait c:\process.exe -a svchost.exe 11
start /b /wait c:\process.exe -a lsass.exe 11
start /b /wait c:\process.exe -a cmd.exe 11

start /b c:\windows\explorer.exe
exit


This post is made possible by the generous support of people like you and our sponsors:
  McShane Design  


Follow Ups Full Thread
Follow Ups
  • 3. [Change] Reduce interference of Soundcard's Mixer process - cics 21:24:01 10/10/07 (0)

FAQ

Post a Message!

Forgot Password?
Moniker (Username):
Password (Optional):
  Remember my Moniker & Password  (What's this?)    Eat Me
E-Mail (Optional):
Subject:
Message:   (Posts are subject to Content Rules)
Optional Link URL:
Optional Link Title:
Optional Image URL:
Upload Image:
E-mail Replies:  Automagically notify you when someone responds.