summaryrefslogtreecommitdiffstats
path: root/libao2/pl_volnorm.c
diff options
context:
space:
mode:
Diffstat (limited to 'libao2/pl_volnorm.c')
-rw-r--r--libao2/pl_volnorm.c8
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;