Jump to content

Sound Settings


Recommended Posts

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:00000000

As 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?

PS

I don't want an autoit script.

PS2

I 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


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,1

REG:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Multimedia\Sound Mapper]
"PreferredOnly"=dword:00000001

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...