Control Linux sound volume via the command line

I want to set the volume at the command line to 40% before I run a game. I found that amixer does a pretty good job of this:

amixer --card 0 sset 'Master' 26

The volume number is on a scale of 0 to 64 (which seems weird).



Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 35.175.174.157
To prevent spam please submit by clicking the kitten: