[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Alsa-xmms-user] Problem with endianness
From: |
mattam |
Subject: |
Re: [Alsa-xmms-user] Problem with endianness |
Date: |
Sat, 21 Sep 2002 01:54:48 +0200 |
User-agent: |
Mutt/1.4i |
On Fri, Sep 20, 2002 at 08:42:50AM -0700, Ondrej Certik wrote:
> I have made this change:
>
> in a file src/audio.c there is a function
> alsa_write(...) and at the end of
> this function there is:
>
<snip/>
I suggest the you put this line in the snd_format_from_xmms function:
if (fmt == FMT_U16_LE || fmt == FMT_S16_LE)
printf("Little-endian data\n");
else if (fmt == FMT_U16_BE || fmt == FMT_S16_BE)
printf("Big-endian data\n");
else if (fmt == FMT_U16_NE || fmt == FMT_S16_NE)
printf("Native-endian data\n");
I tried bot wav and mp3/ogg's and it always reports a "native-endian"
type (mine being little-endian). Do you have the same situation?
P.S: I'm the author and I'm on the list too :)
address@hidden