|
From: Michael C. <ch...@mc...> - 2007-10-25 11:31:02
|
On Thursday 25 October 2007 8:13 am, robs wrote: <snip> > I'm afraid the SoX lib API is still poorly documented > and somewhat fluid. > > Probably best to use the standard sox executable and a > scripting language (bash, perl, etc.) for this sort of > thing. <snap> Fair enough. I am trying to script in Perl. But (further to mine of Fri, 19 Oct 2007 09:43:28 +0000) can anyone explain the following (except the first two, which are just for information): [james@bond ~]$ sox --version sox: SoX v14.0.0 [james@bond ~]$ sox test4-1sec.wav out.wav mixer 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0 sox mixer: mixer can only take up to 16 pan values [james@bond ~]$ sox test4-1sec.wav out.wav mixer 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 sox mixer: Invalid options specified to mixer while not mixing [james@bond ~]$ sox test4-1sec.wav -c 4 out.wav mixer 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 sox mixer: Invalid options specified to mixer while not mixing [james@bond ~]$ sox -c 4 test4-1sec.wav -c 4 out.wav mixer 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 sox mixer: Invalid options specified to mixer while not mixing [james@bond ~]$ sox -c 4 test4-1sec.wav out.wav mixer 0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1 sox mixer: Invalid options specified to mixer while not mixing Is this a bug (my patch of Fri, 19 Oct 2007 certainly 'fixes' it) or have I mis-read the documentation?? (BTW if this is a whine about documentation ... not sure if it is ... then I am more than happy to convert /sox-14.0.0/sox.txt /sox-14.0.0/soxeffect.txt /sox-14.0.0/soxformat.txt /sox-14.0.0/soxexam.txt /sox-14.0.0/libsox.txt to PDF (there is a PDF root specified in ".confugure --help"'s output). That would only make pretty what there is currently, but it might help as a start .. ?) Michael Chapman |