diff options
Diffstat (limited to 'libao2/pl_volnorm.c')
-rw-r--r-- | libao2/pl_volnorm.c | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/libao2/pl_volnorm.c b/libao2/pl_volnorm.c index 4ca29dbdd2..4a3c82f516 100644 --- a/libao2/pl_volnorm.c +++ b/libao2/pl_volnorm.c @@ -31,7 +31,6 @@ #include "audio_plugin.h" #include "audio_plugin_internal.h" #include "afmt.h" -#include "../config.h" static ao_info_t info = { "Volume normalizer", @@ -117,11 +116,7 @@ static int control(int cmd,int arg){ // 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_volnorm] Audio format not yet supported.\n"); @@ -147,11 +142,7 @@ static void reset(){ int i; mul = MUL_INIT; switch(ao_plugin_data.format) { -#ifndef WORDS_BIGENDIAN - case(AFMT_S16_LE): -#else - case(AFMT_S16_BE): -#endif + case(AFMT_S16_NE): #if AVG==1 lastavg = MID_S16; #elif AVG==2 @@ -174,11 +165,7 @@ static void reset(){ static int play(){ switch(pl_volnorm.format){ -#ifndef WORDS_BIGENDIAN - case(AFMT_S16_LE): { -#else - case(AFMT_S16_BE): { -#endif + case(AFMT_S16_NE): { #define CLAMP(x,m,M) do { if ((x)<(m)) (x) = (m); else if ((x)>(M)) (x) = (M); } while(0) int16_t* data=(int16_t*)ao_plugin_data.data; |