diff options
Diffstat (limited to 'libaf/af_delay.c')
-rw-r--r-- | libaf/af_delay.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libaf/af_delay.c b/libaf/af_delay.c index f0a9704eaa..15e0c7071f 100644 --- a/libaf/af_delay.c +++ b/libaf/af_delay.c @@ -52,10 +52,10 @@ static int control(struct af_instance_s* af, int cmd, void* arg) for(i=0;i<af->data->nch;i++) free(s->q[i]); - af->data->rate = ((af_data_t*)arg)->rate; - af->data->nch = ((af_data_t*)arg)->nch; - af->data->format = ((af_data_t*)arg)->format; - af->data->bps = ((af_data_t*)arg)->bps; + af->data->rate = ((struct mp_audio*)arg)->rate; + af->data->nch = ((struct mp_audio*)arg)->nch; + af->data->format = ((struct mp_audio*)arg)->format; + af->data->bps = ((struct mp_audio*)arg)->bps; // Allocate new delay queues for(i=0;i<af->data->nch;i++){ @@ -118,9 +118,9 @@ static void uninit(struct af_instance_s* af) } // Filter data through filter -static af_data_t* play(struct af_instance_s* af, af_data_t* data) +static struct mp_audio* play(struct af_instance_s* af, struct mp_audio* data) { - af_data_t* c = data; // Current working data + struct mp_audio* c = data; // Current working data af_delay_t* s = af->setup; // Setup for this instance int nch = c->nch; // Number of channels int len = c->len/c->bps; // Number of sample in data chunk @@ -182,7 +182,7 @@ static int af_open(af_instance_t* af){ af->uninit=uninit; af->play=play; af->mul=1; - af->data=calloc(1,sizeof(af_data_t)); + af->data=calloc(1,sizeof(struct mp_audio)); af->setup=calloc(1,sizeof(af_delay_t)); if(af->data == NULL || af->setup == NULL) return AF_ERROR; |