diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2012-11-01 12:00:00 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2012-11-02 19:19:28 +0100 |
commit | 0374ddb79d4e20aa73ef91496beb2c0811c34ca7 (patch) | |
tree | c9066550112a2b905c2e87351c10bd484ebe04ba /libaf/af_ladspa.c | |
parent | e0aef8cf1275cc988007fcb2a099cdd9f92fa374 (diff) | |
download | mpv-0374ddb79d4e20aa73ef91496beb2c0811c34ca7.tar.bz2 mpv-0374ddb79d4e20aa73ef91496beb2c0811c34ca7.tar.xz |
audio: untypedef af_data and rename it to mp_audio
this is to have something specular to mp_image
Diffstat (limited to 'libaf/af_ladspa.c')
-rw-r--r-- | libaf/af_ladspa.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libaf/af_ladspa.c b/libaf/af_ladspa.c index 30693f09f2..0c83024b70 100644 --- a/libaf/af_ladspa.c +++ b/libaf/af_ladspa.c @@ -498,8 +498,8 @@ static int control(struct af_instance_s *af, int cmd, void *arg) { /* accept FLOAT, let af_format do conversion */ - af->data->rate = ((af_data_t*)arg)->rate; - af->data->nch = ((af_data_t*)arg)->nch; + af->data->rate = ((struct mp_audio*)arg)->rate; + af->data->nch = ((struct mp_audio*)arg)->nch; af->data->format = AF_FORMAT_FLOAT_NE; af->data->bps = 4; @@ -507,7 +507,7 @@ static int control(struct af_instance_s *af, int cmd, void *arg) { * filter, has to be done in play() :-/ */ - return af_test_output(af, (af_data_t*)arg); + return af_test_output(af, (struct mp_audio*)arg); case AF_CONTROL_COMMAND_LINE: { char *buf; char *line = arg; @@ -710,7 +710,7 @@ static void uninit(struct af_instance_s *af) { * \return Either AF_ERROR or AF_OK */ -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_ladspa_t *setup = af->setup; const LADSPA_Descriptor *pdes = setup->plugin_descriptor; float *audio = (float*)data->audio; @@ -889,7 +889,7 @@ static int af_open(af_instance_t *af) { af->play=play; af->mul=1; - af->data = calloc(1, sizeof(af_data_t)); + af->data = calloc(1, sizeof(struct mp_audio)); if (af->data == NULL) return af_ladspa_malloc_failed((char*)af_info_ladspa.name); |