Jump to content

Registry Request: Set Speakers to 5.1 in Sound.


Recommended Posts


this is tricky, it's hardware dependant so you need to know the hardware where the key will be imported:

HKLM\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Enum\PCI\VEN_1102&DEV_0004&SUBSYS_10071102&REV_04\4&3b1d9ab8&0&3840\DirectSound\Speaker Configuration\Speaker Configuration: 0x00000006

HKLM\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Enum\PCI\VEN_1102&DEV_0004&SUBSYS_10071102&REV_04\4&3b1d9ab8&0&3840\DirectSound\Speaker Type\Speaker Type: 0x0000000B

Link to comment
Share on other sites

I'm using the onboard sound for an Nforce2 chipset and here were the locations of my two keys (both set to 5.1 surround sound)...

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Enum\NVAX\NFORCE_VAD\4&24B908&0&0000\DirectSound\Speaker Configuration]

"Speaker Configuration"=dword:00000006

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Enum\NVAX\NFORCE_VAD\4&24B908&0&0000\DirectSound\Speaker Type]

"Speaker Type"=dword:0000000b

Thanks for the great help SiMoNsAyS...

Link to comment
Share on other sites

  • 5 weeks later...
  • 3 years later...

This can be done with a script.

I did this AutoIt function. It will detect your sound card and write to the right registry key.

#include-once

; #FUNCTION# ====================================================================================================
================
;
; Name...........: _SpeakerSetup
; Description ...: Sets speaker setup for all enabled audio devices on a computer.
; Syntax.........: _SpeakerSetup([$iFlag, $sComputerName])
; Parameters ....: $iFlag - [Optional] A flag that indicates the desired speaker configuration.
; 0 - No speakers
; 1 - Stereo headphones
; 2 - Desktop stereo speakers
; 3 - Laptop mono speakers
; 4 - Laptop stereo speakers
; 5 - Monitor stereo speakers
; 6 - Monitor stand stereo speakers
; 7 - Monitor mounted stereo speakers
; 8 - Keyboard stereo speakers
; 9 - Quadraphonic speakers
; 10 - Surround sound speakers
; 11 - 5.1 surround sound speakers
; 12 - 7.1 wide configuration speakers
; 13 - 7.1 home theater speakers
; Default is "Desktop stereo speakers".
; $sComputerName - [Optional] Computer name.
; The local computer is default.
; Return values .: Success - Returns 1
; Failure - Returns 0 and sets @error to:
; -1 - Flag is out of range.
; 1 - Either no enabled audio devices were found or failed to write settings.
; Author ........: artbio
; Modified.......:
; Remarks .......:
; Related .......:
; Link ..........;
; Example .......;
;
; ====================================================================================================
===========================

Func _SpeakerSetup($iFlag = 2, $sComputerName = @ComputerName)
Local $iConfig, $objSystem, $objItems, $sKey, $iReg1, $iReg2, $iRet
Switch $iFlag
Case 0, 1, 3, 9, 10, 11, 12, 13
$iConfig = $iFlag - Number($iFlag = 3 Or $iFlag = 9) - 5 * Number($iFlag >= 9)
Case 2, 4, 5, 6, 7, 8
$iConfig = 1310724 - 655360 * Number($iFlag <> 2 And $iFlag <> 7)
Case Else
Return SetError(-1, 0, 0)
EndSwitch
$objSystem = ObjGet("winmgmts:{ImpersonationLevel=impersonate}!\\" & $sComputerName & "\root\CIMV2")
$objItems = $objSystem.ExecQuery("Select * from Win32_SoundDevice Where StatusInfo = 3")
For $objDevice In $objItems
$sKey = "\\" & $sComputerName & "\HKLM\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Enum\" & $objDevice.DeviceID & "\DirectSound\"
$iReg1 = RegWrite($sKey & "Speaker Configuration", "Speaker Configuration", "REG_DWORD", $iConfig)
$iReg2 = RegWrite($sKey & "Speaker Type", "Speaker Type", "REG_DWORD", $iFlag)
Next
$iRet = $iReg1 * $iReg2
Return SetError($iRet = 0, 0, $iRet)
EndFunc;==> _SpeakerSetup

Just copy the code to a text file, save as something with extension ".au3", like "AudioDevices.au3".

Write a new script.

#include "AudioDevices.au3"; Relative path, for example "..\Include\AudioDevices.au3"

_SpeakerSetup(11); 11 is for 5.1 surround sound speakers

Exit

Save as something with ".au3" extension. Compile this script if you would like.

Regards.

Edited by artbio
Link to comment
Share on other sites

  • 7 years later...

HI,

I INSTALLED WINDOWS 10 UPON AN OLD XP PC,

WITH AN OLD AUDIGY 2ZS, WITH NO ACTUAL DRIVER & TOOL TO USE WITH WINDOWS 10

AND EVEN IF I HAVE SET TO 4.1, IN SOUND (WITH GOOD HEARING TEST),

I GET STEREO SOUND ON WINAMP MEDIA PLAYER & NAVIGATOR...

I CHECKED YOVR PAGE,

AND I SETTED THE REGISTRY VALUE WHO WHERE MISSING,

BUT WHAT ARE THE DWORD PRO 4.1 ???

PRO "\Speaker Type:" & "\Speaker Configuration :" ???

PLEASE HELP...

KANTH YOU.

Link to comment
Share on other sites

11 minutes ago, NEMZAG said:

I CHECKED YOVR PAGE,

AND I SETTED THE REGISTRY VALUE WHO WHERE MISSING,

What page? We have a page (topic) to set the Registry to allow for it? Can you provide a link to it so we know where you got the "registry setting"?

Also, please don't USE ALL CAPS IN YOUR POSTS. It makes it sound like you're YELLING.

All I can found is this (drivers that supposedly work) -
http://windowspro.eu/installing-old-sound-card-on-latest-windows-versions/

HTH (that's short for Hope This Helps)

Link to comment
Share on other sites

(since "edit" isn't working...)

DOH! THIS is the topic... (sorry :blushing:) However, I do hope the Drivers link will help. :unsure:

It seems that this Topic is for 5.1 and you require 4.1. Hopefully, someone familiar with the values can help. I'm unable to assist since I don't use Windows 10 (and this is in "Unattended Windows 2000/XP/2003). I will assume that the same Registry setting would be used in any Windows version (I could be wrong).

Link to comment
Share on other sites

I'M ALBANIAN AND I WRITE IN GEGONIST SCRIPT SCIPTIO SHQYPTAR,

AND NOT IN MINISCULE LETTER LOOKING LIKE HEBREW...

THE ORIGINAL...

WHAT PAGE ?

THIS ONE !

I DON'T NEED DRIVER, THERE IS A WINDOWS 10 DRIVER, BUT HE NOT SET THE VALUE PRO DIRECT SOUND, AND I GET TWO SPEAKER IN ALL APPS,

EVEN IF  THE CONFIGURATION SOUND PANEL, IS IN 4.1, AND TEST CORRECT...

I REPORTED TO WINDOWS 10 FEEDBACK,

BUT NOTHING WAS DONE,

SO NOW I'M SEARCHING HOW TO ACTIVATE IT BY USING REGEDIT.

KANTH YOU

Edited by NEMZAG
CORRECTION
Link to comment
Share on other sites

56 minutes ago, NEMZAG said:

I'M ALBANIAN AND I WRITE IN GEGONIST SCRIPT SCIPTIO SHQYPTAR,

AND NOT IN MINISCULE LETTER LOOKING LIKE HEBREW...

Good, I am Italian and I can tell you how writing in ALL CAPS is considered, on this board and everywhere else on the internet as either shouting or extreme lack of politeness.

Please do check also Rule #11

http://www.msfn.org/board/guidelines/

Quote


11. Do not use CAPITALIZATIONS in the topic title or when participating in threads because they will not attract attention - instead it will annoy many of MSFN's members. Using unnecessary font formatting (i.e., bold font, increased font sizes, colored fonts, etc.) on the full body of posts is also discouraged.

Just for your knowledge, however, Hebrew uses a different alphabet and is written from right to left, no possibility to confuse it, and just in case, please do review Rule #7.a, additionally.

Kanth you for understanding.

jaclaz

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...