Mercurial > mplayer.hg
diff libao2/pl_extrastereo.c @ 8741:46d21c0f36aa
(nicer) endianness fix for every plugin except pl_format
author | colin |
---|---|
date | Fri, 03 Jan 2003 15:12:18 +0000 |
parents | 66f3204117d6 |
children | 12b1790038b0 |
line wrap: on
line diff
--- a/libao2/pl_extrastereo.c Fri Jan 03 14:51:49 2003 +0000 +++ b/libao2/pl_extrastereo.c Fri Jan 03 15:12:18 2003 +0000 @@ -20,7 +20,6 @@ #include "audio_plugin.h" #include "audio_plugin_internal.h" #include "afmt.h" -#include "../config.h" static ao_info_t info = { "Extra stereo plugin", @@ -58,11 +57,7 @@ // return: 1=success 0=fail static int init(){ switch(ao_plugin_data.format){ -#ifndef WORDS_BIGENDIAN - case(AFMT_S16_LE): -#else - case(AFMT_S16_BE): -#endif + case(AFMT_S16_NE): break; default: fprintf(stderr,"[pl_extrastereo] Audio format not yet suported \n"); @@ -92,11 +87,7 @@ static int play(){ switch(pl_extrastereo.format){ -#ifndef WORDS_BIGENDIAN - case(AFMT_S16_LE): { -#else - case(AFMT_S16_BE): { -#endif + case(AFMT_S16_NE): { int16_t* data=(int16_t*)ao_plugin_data.data; int len=ao_plugin_data.len / 2; // 16 bits samples