Dave Steinberg wrote:
> Package: slimserver
> Version: 6.2.1-2
> 
> I found that slimserver didn't correctly convert Ogg Vorbis files to
> mp3 for streaming.  I just heard noise.
> 
> Here's the relevant excerpt from /usr/share/slimserver/convert.conf:
> 
> ogg mp3 * *
>       [sox] -t ogg $FILE$ -t raw -r 44100 -c 2 -w -s $-x$ - | [lame]
> --resample 44100 --silent -q $QUALITY$ --abr $BITRATE$ -r - -
> 
> Simply changing "$-x$" to "-x" fixed the problem for me.  Here's the
> description of the -x option from sox's man page:
> 
> "The sample data is in XINU format; that is, it comes from a machine
> with the opposite word order than yours and must be swapped according
> to the word-size given above. Only 16-bit and 32-bit integer data may
> be swapped. Machine-format floating-point data is not portable."
> 
> I'm not sure what the current syntax is supposed to do -- maybe make
> the use of -x conditional? -- but my experience was that it didn't
> work correctly.
> 
> I'm not sure where the problem lies exactly.  If it's an upstream
> limitation and the user is supposed to set this himself, perhaps it
> could be pointed out (or done automatically) in the package
> configuration?  Or maybe it's a dependency issue (I'm using sox
> 12.17.9-1)?
> 
> Note: my system is actually running Ubuntu Breezy, but slimserver and
> several relevant dependencies (including sox) were of course grabbed
> from Sid.
> 
> 

$-x$ appears to expand to "-x" or nothing, depending on the byte order
of the host. The relevant code includes the helpful comment:

# XXX what is this?

This stuff seems to work for me (i386 32 bit machine), so I'm reluctant
to fiddle with it without better understanding of what's going wrong.
Are you using a non-i386 arch?

Poking round in the development sources, this seems to have been changed
for some better thought-out code: it may be worth awaiting the next
upstream.

Cheers,

Simon.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to