Skip to main content

Notice

Please be aware that much of the software linked to or mentioned on this forum is niche and therefore infrequently downloaded. Lots of anti-virus scanners and so-called malware detectors like to flag infrequently downloaded software as bad until it is either downloaded enough times, or its developer actually bothers with getting each individual release allow listed by every single AV vendor. You can do many people a great favor when encountering such a "problem" example by submitting them to your AV vendor for examination. For almost everything on this forum, it is a false positive.
Topic: A shortcut to changing the default sound playback card? (Read 2406 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

A shortcut to changing the default sound playback card?

So I have 2 soundcards, one onboard that I use for my speakers and my SB Live with kxdriver running my headphones. Now the DSP I've configured for the SB Live is optimized for my headphones so I'd like to keep the speakers and headphones on separate cards. Now sometimes I switch between my headphones and speakers, usually when I have people over or I have some ear strain and currently its a 3-step process to change the playback source. I'm wondering if there's a shortcut, *.bat script or registry entry I could use to streamline the process. I'm running WinXP, btw.

A shortcut to changing the default sound playback card?

Reply #1
well i figured it out. If anyone else is curious this is how I did it;

I exported the registry settings from HKCU->Software->Microsoft->Multimedia->Sound Mapper for both states (on board and sblive sound cards) and labeled them KXAUDIO.REG and NVAUDIO.REG then I whipped up a batch file:

Code: [Select]
@ECHO OFF
:BEGIN
CLS
IF EXIST TEST.TXT (GOTO KXA) ELSE (GOTO NVA)
:KXA
ECHO HEADPHONES ARE NOW IN EFFECT!
REGEDIT /S KXAUDIO.REG
DEL TEST.TXT
GOTO END
:NVA
ECHO SPEAKERS ARE NOW IN EFFECT!
REGEDIT /S NVAUDIO.REG
ECHO SUCCESS > TEST.TXT
GOTO END
:END


The method is a bit crude but it works. Basically it looks for a text file and depending on whether it exists or not it loads up the keys from one of the .REG files. After it loads the .REG file it either deletes or creates the text file, so the next time I launch the batch file it will load up the other .REG file.

Finally I placed a shortcut to the batch file on my quick launch bar so now I'm only 1 click away from toggling sound sources instead of having to go through the control panel -> multimedia -> audio devices -> audio -> playback. Real convenience 

 
SimplePortal 1.0.0 RC1 © 2008-2021