Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!rice!sun-spots-request From: soleil!gopstein@rutgers.edu (Rich Gopstein) Newsgroups: comp.sys.sun Subject: sound file format converter for SS1 Keywords: Source Message-ID: <3173@brazos.Rice.edu> Date: 15 Nov 89 18:31:39 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 31 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 8, Issue 202, message 16 of 17 This program will convert an audio file in Macintosh format to SS1 uLAW format. The Mac format that this supports is one-byte-per-sample; each sample is stored in excess-128 (128 is added to the sample value before storing). It also knows how to convert to a sample speed of 8192 samples per second, which is what the SS1 uses. This program should be easily adaptable to convert just about any format to uLAW. To build: save the source as sound2sun.c, and "cc -o sound2sun sound2sun.c" Usage is: sound2sun [-f frequency] infile outfile Where frequency is the rate (in samples per second) of infile -- the default is 11000. Does anyone have a collection of sounds available via FTP or archive server? If not, maybe someone can start one? Rich Gopstein ..!rutgers!soleil!gopstein Ed's Note: placed in archives, we can also archive sound files as part of the sun-source archives if there is interest in this type of thing. FTP: Hostname : titan.rice.edu (128.42.30.1) Directory: sun-source Filename : sound2sun.c Archive Server Address: archive-server@rice.edu Archive Server Command: get sun-source sound2sun.c