Does anyone know of a way I could change the default audio device in Win XP at runtime? The user will have 2 options. Either the integrated audio, or a sound card. It will be the same sound card and integrated audio everytime.
Thanks
Printable View
Does anyone know of a way I could change the default audio device in Win XP at runtime? The user will have 2 options. Either the integrated audio, or a sound card. It will be the same sound card and integrated audio everytime.
Thanks
I'll take wild stabs and other languages.
I would guess that it would be a registry setting. I just looked at my default playback device in the Control Panel and it was named "NVIDIA(R) nForce(TM) Audio". I then did a search through the registry and that string was found under a number of keys. I suggest that you do something similar and note each key that contains that value. Then change your setting from the Control Panel and check again to see which have changed.
Actually, I think I just found it. I changed it to another device that was less common and the search went straight to HKCU\Software\Microsoft\Multimedia\Sound Mapper. There are values for Playback and Record that correspond to the same values in the Control Panel Sound applet. You will need to make sure that you use the exact names as listed in the Sound applet I would think, which Windows presumably gets from the hardware itself or, more likely, the hardware driver and stores elsewhere in the Registry.
Thanks JM. That did the trick.