On Mon, 13.04.09 16:18, jerry tan ([email protected]) wrote:

> --- libcanberra-0.11/src/oss.c.old      2009-04-08 18:23:29.686476000 +0800
> +++ libcanberra-0.11/src/oss.c  2009-04-08 18:23:46.415008000 +0800
> @@ -258,9 +258,9 @@
>              break;
>          case CA_SAMPLE_S16RE:
>  #if __BYTE_ORDER == __LITTLE_ENDIAN
> -            val = AFMT_S16_BE;
> -#else
>              val = AFMT_S16_LE;
> +#else
> +            val = AFMT_S16_BE;
>  #endif
>              break;
>      }

Uh? S16RE is 16bit reverse endian. i.e. RE means BE on LE machines and
LE on BE machines. The current code is hence completely correct.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4
_______________________________________________
libcanberra-discuss mailing list
[email protected]
https://tango.0pointer.de/mailman/listinfo/libcanberra-discuss

Reply via email to