peoman Posted January 3, 2010 Share Posted January 3, 2010 Hi everybody.Is there a way to set silently "use only default devices" on Audio properties?I know that these are the registry keys:[HKEY_CURRENT_USER\Software\Microsoft\Multimedia\Sound Mapper]"Playback"="SB Live! Audio [AC00]""PreferredOnly"=dword:00000001"SetupPreferredAudioDevicesCount"=dword:00000000"Record"="SB Live! Audio [AC00]"[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Multimedia\MIDIMap]"DeviceInterface"="\\\\?\\pci#ven_1102&dev_0002&subsys_80401102&rev_08#4&13699180&0&4048#{6994ad04-93ef-11d0-a3cc-00a0c9223196}\\syntha""szPname"="SB Live! Synth A [AC00]""RelativeIndex"=dword:00000000"SetupPreferredAudioDevicesCount"=dword:00000000As you can see, the values depends on hardware.Anybody knows a cmd command / utilty that does this job?Or perhaps a Windows API / WMI code?PSI don't want an autoit script.PS2I want to do this on many PCs, so i can't just make a reg file for every one of them. Link to comment Share on other sites More sharing options...
Martin H Posted January 3, 2010 Share Posted January 3, 2010 I just did some quick tests, and here you go...INF:[Version]Signature=$Windows NT$[DefaultInstall]AddReg=addreg[addreg]HKCU,"Software\Microsoft\Multimedia\Sound Mapper","PreferredOnly",0x10001,1REG:Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Multimedia\Sound Mapper]"PreferredOnly"=dword:00000001 Link to comment Share on other sites More sharing options...
peoman Posted January 3, 2010 Author Share Posted January 3, 2010 Just tested on a clean windows installation. No it doesn't work.You see, on a clean windows installation,[HKEY_CURRENT_USER\Software\Microsoft\Multimedia\Sound Mapper]and[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Multimedia\MIDIMap]doesn't exists.If i set only the "PreferredOnly" value, windows does not create the other values ("Playback", "Record" etc)On a machine that has already checked the checkbox, your registry value works fine ("PreferredOnly"=1, enabled - "PreferredOnly"=0, disabled)Thanks for your time. Link to comment Share on other sites More sharing options...
Martin H Posted January 4, 2010 Share Posted January 4, 2010 Oh, i'm sorry about that...I don't really know anything about this issue, so let's hope someone else can come to your rescue Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now