summaryrefslogtreecommitdiffstats
path: root/libaf/af_resample.c
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2012-11-01 12:23:48 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2012-11-02 19:20:03 +0100
commitc9b59548510845e668b6e87c1f69e62302f93d56 (patch)
tree8ab88c22e961a53bac4dcb7901a6b6016b4ea85b /libaf/af_resample.c
parent596e12fcb26e3bad65e91e635796a3bbf051a719 (diff)
downloadmpv-c9b59548510845e668b6e87c1f69e62302f93d56.tar.bz2
mpv-c9b59548510845e668b6e87c1f69e62302f93d56.tar.xz
audio: untypedef af_instance
Diffstat (limited to 'libaf/af_resample.c')
-rw-r--r--libaf/af_resample.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libaf/af_resample.c b/libaf/af_resample.c
index f531066cbc..51c51b0bf0 100644
--- a/libaf/af_resample.c
+++ b/libaf/af_resample.c
@@ -122,7 +122,7 @@ static int linint(struct mp_audio* c,struct mp_audio* l, af_resample_t* s)
}
/* Determine resampling type and format */
-static int set_types(struct af_instance_s* af, struct mp_audio* data)
+static int set_types(struct af_instance* af, struct mp_audio* data)
{
af_resample_t* s = af->setup;
int rv = AF_OK;
@@ -170,7 +170,7 @@ static int set_types(struct af_instance_s* af, struct mp_audio* data)
}
// Initialization and runtime control
-static int control(struct af_instance_s* af, int cmd, void* arg)
+static int control(struct af_instance* af, int cmd, void* arg)
{
switch(cmd){
case AF_CONTROL_REINIT:{
@@ -302,7 +302,7 @@ static int control(struct af_instance_s* af, int cmd, void* arg)
}
// Deallocate memory
-static void uninit(struct af_instance_s* af)
+static void uninit(struct af_instance* af)
{
af_resample_t *s = af->setup;
if (s) {
@@ -317,7 +317,7 @@ static void uninit(struct af_instance_s* af)
}
// Filter data through filter
-static struct mp_audio* play(struct af_instance_s* af, struct mp_audio* data)
+static struct mp_audio* play(struct af_instance* af, struct mp_audio* data)
{
int len = 0; // Length of output data
struct mp_audio* c = data; // Current working data
@@ -370,7 +370,7 @@ static struct mp_audio* play(struct af_instance_s* af, struct mp_audio* data)
}
// Allocate memory and set function pointers
-static int af_open(af_instance_t* af){
+static int af_open(struct af_instance* af){
af->control=control;
af->uninit=uninit;
af->play=play;