rchrd@lll-crg.llnl.gov (Richard Friedman) (01/07/90)
Does anyone know of any software now available that makes use of the audio output of the Sparc station? They distribute on /usr/demo/sound a simple record/playback tool, but does anyone have or know of a simple batch program that can be used to "audition" (the sound equivalent of "display" or "view"?) an audio file that I've recorded? I'd like to put some error messages in my scripts that sound off verbal warnings. I need something like: play -HIGHVOL soundfile I could probably do it myself by cobbling stuff from the source for the sound demo (its in /usr/demo/sound/sound.c) but I figure someone out there has probably already done it. /s/ rchrd <=> Richard Friedman <=> rchrd@well rchrd@well.sf.ca.us | {apple,pacbell,hplabs,ucbvax}!well!rchrd
gopstein@rutgers.edu (Rich Gopstein) (02/01/90)
I posted some patches to sound.c which will turn it into play.c. Play takes a file and a volume setting, and plays the file. It can be used with "rsh" since it doesn't use graphics. I also have a program which will convert MAC-style audio files into SS1 format. This is the patchfile: The following ed script will convert /usr/demo/sound/sound.c into a standalone program to play sound files on the Sparcstation I. After extracting the "patches" file, do the following: ed /usr/demo/sound/sound.c < patchfile The version of sound.c that this works on is: -rw-r--r-- 1 bin 37759 May 25 22:58 sound.c This will create play.c in the current directory. Just "cc -o play play.c" to compile. Its use is "play [-v volume] soundfile" where volume is 0-10, the default is 7. Since it doesn't use the screen, it will work with rsh. If anyone wants it, I have a quick-hack program to convert 8-bit binary sampled audio (like the MAC uses) into the u-law format for the SS1, but it is not very user-friendly. Rich Gopstein ..!rutgers!soleil!gopstein [[Ed's Note: placed in archives at Rice]] FTP: Hostname : titan.rice.edu (128.42.1.30) Directory: sun-source Filename : play.shar Archive Server Address: archive-server@rice.edu Archive Server Command: send sun-source play.diff