home *** CD-ROM | disk | FTP | other *** search
- Short: SOX and Sound Tools Update for .WAV support
-
- -----
- BRIEF
- -----
- Here is my Amiga port of the SoundTools kit, including SOX, the Sound
- Exchange. The original Unix archive is available via anonymous ftp
- from wuarchive.wustl.edu:/usenet/alt.sources/articles/517[6-9].Z. I
- have placed all my modifications of the Unix code within #ifdef
- delimiters, so the Amiga code should still compile under BSD or SysV
- using the original Makefile (Makefile.unix). Use the Makefile.amiga
- to compile for AmigaDOS, or use the supplied shell script if you
- don't own a compliant "make" program.
-
-
- ---------
- NEW STUFF
- ---------
- Support for Windows 3.1 .WAV support is now included. Thanks to Bill
- Neisius for the WAV driver. I didn;t have the full patch at the time
- I updated the Amiga version to support .WAV, so changes to handlers.c
- and everything else are mine (and noted as such--just grep for my
- initials). Changes to incorporate this driver were not machine-
- dependent; thus you can compile this Amiga patch on your Sparc or
- whatever else and (presto!, big flourish) have .wav support there,
- too.
-
-
- -----------
- AMIGA NOTES
- -----------
- Read the file "sox.man.ascii" for general information. This is a pure
- text copy of the troff file "sox.man", though, and as such, it
- describes the Unix version. The following are peculiarities to the
- Amiga version:
-
- - the ".iff" filename extension and type specifier operates
- identically to the ".8svx" extension
- - piping as described in the manual does not work. I might try to
- fix this, but given the piping means available on the Amiga, it
- could be rough. The pipe: device should work on everything but
- VOC files as long as you use proper filename extensions or type
- specifications, but I can't see why you'd want to use it anyway.
- - The Amiga version of sox incorporates a version string, so typing
- "version sox" should tell you what version of the binary you have.
- - If you want to keep libst.lib, you'll have access to most of sox's
- functions through a compiler library as documented in the files
- "st.man" (troff) and "st.man.ascii" (ascii). Put this in your
- lib: directory if you're interested in it.
- - skel stuff, as coded in skel.c and skeleff.c and documented in
- st.man[.ascii], is not yet supported. Trying to compile it
- under SAS sent out loads of errors, but I didn't think them
- immediately worth fixing since skel*.c is only good for expansion
- using libst.lib. I may fix these up for a future release.
- - The supplied varargs.h is from my local BSD unix machine, and is
- used without permission.
-
- And, regarding the Sound Tools library and its documentation
- ("st.man" for troff, "st.man.ascii" for ascii):
-
- - On the current Unix version of Sound Tools, the library is named
- "libst.a". Some old documentation refers to it as "libsk.a".
- For the Amiga, replace any occurrence of either of these words
- with "libst.lib", the name of the Amiga library.
-
-
- -----
- FILES
- -----
- *.c C source code for Sound Tools kit and SOX
- *.h C header files for ST and SOX
- libst.lib Sound Tools compiler library, non-FPU version
- libst881.lib Sound Tools compiler library, FPU version
- Makefile.amiga Makefile for Amiga version of ST
- Makefile.unix Original Unix Makefile
- README Original Sound Tools README file
- README.amiga Notes on Amiga port
- sox Amiga Sound Exchange, non-FPU version
- sox.man Original Unix SOX manual, (troff format)
- sox.man.ascii Original Unix SOX manual, (ASCII format)
- sox881 Amiga Sound Exchange, FPU version
- st.man Original Unix Sound Tools Library manual (troff)
- st.man.ascii Original Unix Sound Tools Library manual (ASCII)
- TODO Things to be done for original Unix distribution
-
- I've supplied a number of scripts for making specific conversions
- with sox. These are contained in the archive "scripts.lha", and
- further documentation on them is available therein.
-
-
- ----------
- LAST NOTES
- ----------
- Windows 3.1 .WAV support is now included; see above.
-
- Some channel conversions on IFF-8SVX files require the creation of
- a temporary file which by default is written to the t: logical
- device. If you perform any of these conversions, be sure you have
- enough free store in t: for such a file.
-
- The FPU version of the Sound Tools library, libst881.lib, must be
- linked with a 68881/2 library to resolve math coprocessor calls.
- For Lattice/SAS C, use lib:lcm881.lib.
-
- Some of the .c files compile with type warnings, but the binaries
- seem to work fine. If you have any trouble, please let me know.
-
- Not all of the type identifiers are immediately obvious; for example,
- the type spec for a ulaw sound is "-t .au", rather than "-t ulaw".
- You can find all of the type specs buried inside the file
- "handlers.c".
-
- The outstanding (only, let's hope) bug in the Amiga version of the
- package is that the ami.o module (thus SOX and the libst.lib
- routines) does not know how to delete its temp files. If anyone
- can show me a good way to do this (perhaps by walking struct
- pointers?), I'd be a happy programmer.
-
- When I'm satisfied with the state of the Amiga port, I'll mail it to
- the original author, Lance Norskog, in hope that future releases of
- and patches to the kit will be Amiga-compatible.
-
- (Incidentally, the whole porting project was really relatively easy.
- I'm surprised no one else has done it yet.)
-
- As with the original Sound Tools package, the Amiga SOX and Sound
- Tools Library are freely distributable, but the original code is
- copyrighted by Lance Norskog. Amiga modifications are copyright
- David Champion; they may be distributed or modified in any way so
- long as a notice to this effect and a concise description of any
- changes are included with the distribution. See the file "README"
- for the details on SOX code rights and restrictions. See "wav.c"
- for ownership of the WAV driver.
-
- Finally, I suggest that, whenever possible, you use Mike Cramer's
- SoundZAP for XXX->IFF conversions; it's generally much faster. I
- do. The only time I can really justify using SOX is for effects
- other than rate changes and for conversions to types other than IFF.
-
- ----------------------
- CREDITS & AUTHOR STUFF
- ----------------------
- Thanks to the following folks for help on a few problems I had with
- the Amiga's lack of certain functions, and for suggestions on
- features to support:
-
- caw@miroc.Chi.IL.US (Christopher A. Wichura)
- psd1@midway.uchicago.edu (Pratik S. Dave)
- epang@sfu.ca (Eugene Pang)
- asd2@optima.rh.uchicago.edu
- "--SeebS--" <har@ux.acs.umn.edu>
- Raul Deluth Miller-Rockwell <rockwell@socrates.umd.edu>
- S.Raybould@fulcrum.bt.co.uk
- "Edward D. Berger" <eb15+@andrew.cmu.edu>
- Jonathan Potter <jpotter@itd.adelaide.edu.au>
- Gordon Keener <flash@unx.sas.com>
- webbs@mozart.cs.colostate.edu (Steven Webb (The walking glitch))
- fnx!del@pilchuck.data-io.com (Dag Erik Lindberg)
- robtu@itx.isc.com
- wusel@hactar.hanse.de (Kai 'wusel' Siering)
- mlelstv@specklec.mpifr-bonn.mpg.de (Michael van Elst)
-
- Thanks to bill%solaria@hac2arpa.hac.com (Bill Neisius) for supplying
- the .WAV driver, and to Rick Richardson for writing it.
-
- If you have any comments on Amiga SOX or on the Sound Tools library,
- I may be reached at:
-
- David Champion Internet E-Mail:
- 5326.5 S. Drexel Ave. Apt. 1A
- Chicago, IL 60615 dgc3@midway.uchicago.edu
- U.S.A. champion@tira.uchicago.edu
- (at least until early summer)
-
- See the file "README" for more information on the original
- Sound Tools package and its authors.
-
- Share and enjoy.
-