diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-12-27 17:30:15 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-12-27 17:30:15 +0000 |
commit | 507121f7fe2d170dd8db99d3112602036ddef718 (patch) | |
tree | 38b26e115cfadde356b005496286f78307839440 /libao2/pl_volnorm.c | |
parent | 00f99a82a8f57573e3e6982cf9d014c9b9d8a68b (diff) | |
download | mpv-507121f7fe2d170dd8db99d3112602036ddef718.tar.bz2 mpv-507121f7fe2d170dd8db99d3112602036ddef718.tar.xz |
removing AFMT_ dependancy
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14246 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/pl_volnorm.c')
-rw-r--r-- | libao2/pl_volnorm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libao2/pl_volnorm.c b/libao2/pl_volnorm.c index dd5d0a4e9b..4a4823a244 100644 --- a/libao2/pl_volnorm.c +++ b/libao2/pl_volnorm.c @@ -30,7 +30,7 @@ #include "audio_out.h" #include "audio_plugin.h" #include "audio_plugin_internal.h" -#include "afmt.h" +#include "libaf/af_format.h" static ao_info_t info = { "Volume normalizer", @@ -116,7 +116,7 @@ static int control(int cmd,void *arg){ // return: 1=success 0=fail static int init(){ switch(ao_plugin_data.format){ - case(AFMT_S16_NE): + case(AF_FORMAT_S16_NE): break; default: fprintf(stderr,"[pl_volnorm] Audio format not yet supported.\n"); @@ -142,7 +142,7 @@ static void reset(){ int i; mul = MUL_INIT; switch(ao_plugin_data.format) { - case(AFMT_S16_NE): + case(AF_FORMAT_S16_NE): #if AVG==1 lastavg = MID_S16; #elif AVG==2 @@ -165,7 +165,7 @@ static void reset(){ static int play(){ switch(pl_volnorm.format){ - case(AFMT_S16_NE): { + case(AF_FORMAT_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; |