AudioSetup

Languages
C / Solaris
Version
1.1.0

AudioSetup provides an ultra-simplistic interface for Solaris audio devices. It is designed to be used in the same way as the mixerctl application provided with Solaris, namely in start-up scripts.

The functionality provided by AudioSetup currently consists of setting the gain (volume), balance and output ports of a given audio device. Future releases will allow the current settings to be output (like mixerctl) and settings such as balance to be configured.


Usage

audiosetup device=AUDIO_DEVICE volume=VOLUME balance=BALANCE output=OUTPUT(S)

AUDIO_DEVICE:
The audio device name, for example /dev/audioctl.
VOLUME:
The volume of the output. This should be an integer from 0 (mute) to 100 (full volume).
BALANCE:
The balance of the output. This should be an integer from 0 (full left) to 100 (full right). 50 provides equal output to both speakers (centre).
OUTPUT(S):
A comma seperated list of outputs. The output names (see below) should be lower-case and there should be no whitespace in the list.

The following output ports are currently supported:

speaker:
The internal speaker
headphones:
The headphone socket
lineout:
The line-out socket

For example, if you wanted a script to disable the output mixer on /dev/audioctl, set the volume to 25% and disable the internal speaker you would use the following:

/usr/sbin/mixerctl -d /dev/audioctl -o
/usr/local/bin/audiosetup volume=25 output=lineout,headphones

Recent News

Version 1.1.0 released (2003-12-07 20:46:52 vrai)
AudioSetup can now be used to set the balance of the output. In addition the bug that reset settings not specified in the command-line arguments has been fixed. Now settings that are not explicitly set will be left untouched.
Version 1.0.0 released (2003-08-17 17:48:07 vrai)
The initial version of AudioSetup is now ready for public use.

Project Files

Click on the file name to download the file. Some browsers may require you to right-click on the file and select "Save Link As".
Version File Description MD5
1.1.0 audiosetup-1.1.0.tar.bz2 Added support for setting output balance.
No longer necessary to specify all settings, unspecified settings will not be reset.
0ff088cf3cc5b2cb0830a9e8153e84bc
1.0.0 audiosetup-1.0.0.tar.bz2 Initial release. ce6bc0cf552cc2d21aa33ae3adde4518

Navigation

Software Projects


Assorted Scripts - things that don't warrant a whole project but might be useful to someone.

Site hosted by Linode: using Apache, PHP, MySQL and Propel.

Site created using Eclipse PDT and OS X.

Site design and original content Copyright © Vrai Stacey. Unless otherwise stated, source code contained on this site is published under the GNU Public License (GPL).

Valid XHTML PHP Powered No Software Patents