X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Doug Kaufman Newsgroups: comp.os.msdos.djgpp Subject: Re: ANNOUNCE: SoX for DOS Date: Mon, 23 Oct 2006 04:18:46 +0000 (UTC) Organization: "a2i network" Lines: 42 Message-ID: References: NNTP-Posting-Host: mauve.rahul.net X-Trace: blue.rahul.net 1161577126 11075 192.160.13.69 (23 Oct 2006 04:18:46 GMT) X-Complaints-To: support AT rahul DOT net NNTP-Posting-Date: Mon, 23 Oct 2006 04:18:46 +0000 (UTC) User-Agent: nn/6.6.4 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Florian Xaver" writes: >I ported SoX to DOS. "SoX is a command line utility that can convert >various formats of computer audio files in to other formats. It can also >apply various effects to these sound files during the conversion." >You can get the binary (also source with my bad hack) at >http://www.flox.at.tf ! Thanks for making this available. I am not sure I understand what you tried to change in sox, since the current cvs code compiles "out of the box" in DJGPP. To compile, I just downloaded the cvs source code, then in a bash shell did autoheader, then autoconf, then configure, then make. I don't have the mp3 libraries on my machine, so it was built without them. What does need to be fixed is making stdin and stdout binary. You don't seem to have done that with your binary. Try adding the following patch: --- sox/src/stio.c.ori 2006-05-14 16:46:56.000000000 -0800 +++ sox/src/stio.c 2006-10-22 21:09:54.000000000 -0800 @@ -24,7 +24,7 @@ #endif /* Based from zlib's minigzip: */ -#if defined(WIN32) || defined(__NT__) +#if defined(WIN32) || defined(__NT__) || defined(__DJGPP__) # include # include # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY) Sox passed all the tests in "tests.sh" with the exception of "float to unsigned bytes conversion". That failure appeared to be due to bytes sometimes being off by one from rounding. That test appears to be omitted from the "tests.bat" file. Doug -- Doug Kaufman Internet: dkaufman AT rahul DOT net