Mercurial > audlegacy
changeset 3981:ab4962c133c7
Handle native endianness.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Thu, 22 Nov 2007 05:01:37 -0600 |
parents | 5a0ff5e965f6 |
children | bd8de2a3cbea |
files | src/audacious/volumecontrol.c |
diffstat | 1 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/volumecontrol.c Sun Nov 18 18:34:44 2007 -0600 +++ b/src/audacious/volumecontrol.c Thu Nov 22 05:01:37 2007 -0600 @@ -123,6 +123,18 @@ switch (fmt) { + case FMT_S16_NE: + fmt = G_BYTE_ORDER == G_LITTLE_ENDIAN ? FMT_S16_LE : FMT_S16_LE; + break; + case FMT_U16_NE: + fmt = G_BYTE_ORDER == G_LITTLE_ENDIAN ? FMT_U16_LE : FMT_U16_BE; + break; + default: + break; + } + + switch (fmt) + { case FMT_S16_LE: VOLUME_ADJUST(gint16, GINT16, LE); break;