Main > Software Forum

command line volume adjust?

(1/2) > >>

papaschtroumpf:
I have been working at balancing sound levels in my cab, so that different games and different emulators, and the jukebox software, have roughly the same base volume.
I have a few PC games that don't have a volume adjust option (I think Demon Star is one of them).

Is there a command line utility that I could use to set the current master volume of your sound card to a particular level? I could then launch the PC game from a batch file that sets the volume lower before launching the game, then restores it. Ideally you would be able to query the initial volume so you don't have to hardcode anything.

jcrouse:
Slightly off topic but I have two button configured on my control panel to adjust the volume while in the Front-End, MameWAH, by using an AHK script that I wrote. I would guess you could edit the script and make it any two keys you like. That way you could use too "odd" keys (not used by the game) to adjust the volume while the game is playing. It may work. The script looks like so:

; This script assigns hotkeys of your choice to raise and lower the
; master volume.

;_________________________________________________
;________________Global Settings__________________

#NoTrayIcon
#SingleInstance force

;_________________________________________________
;________________User Settings____________________

; The percentage by which to raise or lower the volume each time:
vol_Step = 2

HotKey, m, vol_MasterUp
HotKey, n, vol_MasterDown

vol_MasterUp:
SoundSet, +%vol_Step%
return

vol_MasterDown:
SoundSet, -%vol_Step%
return



Good Luck,
John

papaschtroumpf:
I have a volume control of my cab (an actual knowb to the speakers) but I'm trying to make all games about the same level.
I nothing else I can use AHK to change the volume and exit wihtout actually waiting for a key, so you jsut gave me a way to write my own volume adjust. I had not thought about it.

I use to use AHK a lot when it used to be AutoIt, but kind of forgot about it, but it's becoming my cab's new best friend.

pkellum:
Have you tried VolumeLine?  It seems to do exactly what you're asking, setting the volume of any sound channel.  I've tried it a bit and it seems to work fine.  And it's free, always a good thing :)

http://glorysoft.omsk.ru/vlt_download.html

Patrick

BobbyG66:

--- Quote from: jcrouse on October 11, 2005, 08:02:23 pm ---Slightly off topic but I have two button configured on my control panel to adjust the volume while in the Front-End, MameWAH, by using an AHK script that I wrote. I would guess you could edit the script and make it any two keys you like. That way you could use too "odd" keys (not used by the game) to adjust the volume while the game is playing. It may work. The script looks like so:

; This script assigns hotkeys of your choice to raise and lower the
; master volume.

;_________________________________________________
;________________Global Settings__________________

#NoTrayIcon
#SingleInstance force

;_________________________________________________
;________________User Settings____________________

; The percentage by which to raise or lower the volume each time:
vol_Step = 2

HotKey, m, vol_MasterUp
HotKey, n, vol_MasterDown

vol_MasterUp:
SoundSet, +%vol_Step%
return

vol_MasterDown:
SoundSet, -%vol_Step%
return



Good Luck,
John

--- End quote ---

John,

Do you have a command to MUTE?

Navigation

[0] Message Index

[#] Next page

Go to full version