Standalone sound player for SS1

John_E_Little at cup.portal.com John_E_Little at cup.portal.com
Tue Nov 21 06:24:18 AEST 1989


Here's another way to make a standalone sound file player for the
Sparcstation 1:

	cat file.au > /dev/audio

The audio device resets the various hardware registers on the last close.
This means that you can do things like start the sound program, select the
speaker and change the volume, then use cat to send files to the device
and get the previously selected options.  As long as sound is running (it
can be iconic), you get the selected characteristics.  The chip has a
bunch of unused capabilities, including single and dual tone generators
(you can get DTMF), a bunch of gain controls, and the completely unused
ISDN capabilities.   Device ioctl calls give you complete access to all of
the chip's registers (even the ISDN ones) so you can experiment to your
heart's content.

You could also write a small program that just twiddles chip registers,
then use cat for all of your actual output. 

	John Little
	jel at cup.portal.com



More information about the Comp.sys.sun mailing list