IMHO, what sox does for sample-rate conversion is quite "dodgy". I did
a search on the web, and there is a fine implementation of
"bandlimited interpolation" at
http://sunsite.unc.edu/pub/Linux/apps/sound/convert/rateconv-1.5.tar.gz
It is quite flexible, and goes to reasonable lengths to ensure that
very little distortion is introduced in the resampling process. The
executable reads input from stdin, does the rate conversion, and
writes to standard output. I would recommend including this code in
LAME, if you want rate conversion within the main executable.
--
James 'Jasha' Garnet Droppo III [EMAIL PROTECTED]
Interactive Systems Design Lab ISDL:(206)543-7298
Department of Electrical Engineering, University of Washington
http://isdl.ee.washington.edu/isdl/jdroppo/