#!/bin/bash
###########################################
# Copyright (C) 2005 Patrick A. Read
#
# louder - this shell script increases
# the volume of the Master playback control
# in alsamixer.  Usage: louder [number]
# where (optional) number is the number of 
# "clicks" you wish to increase the volume.
# Example:  louder 4 cranks up the volume
# four steps.  If you do not specify a
# number, then louder will raise the
# volume one step.  NOTE:  Alsamixer uses
# 32 steps (0-31) in its volume controls.
###########################################
if [ "$1" != "" ]
then
VOLADJ=${1}+
else
VOLADJ="1+"
fi
amixer set Master ${VOLADJ}
exit 0
###########################################
# end of louder script
###########################################
