Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: Woodshop Flunky on July 18, 2011, 02:08:19 pm

Title: Game Specific Volume Settings in MAME
Post by: Woodshop Flunky on July 18, 2011, 02:08:19 pm
I'm sure this is possible, but I'm missing an example in my search.

I've noticed that if I set the volume control on my speakers to a nice level in one game, then next game may be too loud or too quite.  Is there a way to set a specific volume level for each game individually?

Thanks!
Title: Re: Game Specific Volume Settings in MAME
Post by: Donkbaca on July 18, 2011, 02:45:00 pm
yeah, if you press F2 and access the game menu, a lot of games have a volume control, I know all the midway games do....
Title: Re: Game Specific Volume Settings in MAME
Post by: leapinlew on July 18, 2011, 02:58:59 pm
yeah, if you press F2 and access the game menu, a lot of games have a volume control, I know all the midway games do....


Does it keep the setting? I'm using an older version of Mame and it doesn't stick with the MK games.
Title: Re: Game Specific Volume Settings in MAME
Post by: Woodshop Flunky on July 18, 2011, 03:20:49 pm
While in a game, I can hit tab to adjust the volume from MAME.  Can this be set from a config file for each game?
Title: Re: Game Specific Volume Settings in MAME
Post by: gabe on July 18, 2011, 03:57:09 pm
While in a game, I can hit tab to adjust the volume from MAME.  Can this be set from a config file for each game?

Yes.

Let's say 1942 is too loud... You could then create 1942.ini in your ini directory. The file should look something like this:

Code: [Select]
volume -12
Note that you can set any other game specific options here.

From the mame config.txt:

Code: [Select]
-volume / -vol <value>

Sets the startup volume. It can later be changed with the user
interface (see Keys section). The volume is an attenuation in dB:
e.g., "-volume -12" will start with -12dB attenuation. The default
is 0.
Title: Re: Game Specific Volume Settings in MAME
Post by: Woodshop Flunky on July 18, 2011, 04:41:14 pm
...

You could then create 1942.ini in your ini directory. The file should look something like this:

Code: [Select]
volume -12
...

Thanks!  This worked well.
Title: Re: Game Specific Volume Settings in MAME
Post by: djm858 on July 18, 2011, 04:49:55 pm
...

You could then create 1942.ini in your ini directory. The file should look something like this:

Code: [Select]
volume -12
...

Thanks!  This worked well.

Just wondering (as I'm unable to check right now).  Is "volume -12" relative to the current volume setting or an absolute volume, and does it reset back automatically when the game exits?

Thanks,
Title: Re: Game Specific Volume Settings in MAME
Post by: scofthe7seas on July 19, 2011, 02:00:17 pm
Just wondering (as I'm unable to check right now).  Is "volume -12" relative to the current volume setting or an absolute volume, and does it reset back automatically when the game exits?

Thanks,

Do you mean like a global setting, in windows (or whatever)? It changes in game volume only, relative to whatever volume level you have your system set as. If you have the speaker volume up way high, turning it down in mame will make it "less way high". I have the volume button mapped to a admin button. Some games are much louder than others, so it's pretty convenient. I also have a command line in mame to set the volume down -3, in case some games are too quiet and should be turned up.