From ed024aadb6e7be6c3d910045a64db53a6c95e98f Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 5 Dec 2013 00:01:46 +0100 Subject: audio/filter: change filter callback signature The new signature is actually closer to how it actually works, and someone who is not familiar to the API and how it works might make fewer fatal mistakes with the new signature than the old one. Pretty weird. Do this to sneak in a flags parameter, which will later be used to flush remaining data of at least vf_lavfi. --- audio/filter/af_hrtf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'audio/filter/af_hrtf.c') diff --git a/audio/filter/af_hrtf.c b/audio/filter/af_hrtf.c index 0092d0dc85..83495f4fcb 100644 --- a/audio/filter/af_hrtf.c +++ b/audio/filter/af_hrtf.c @@ -353,7 +353,7 @@ frequencies). 2. A bass compensation is introduced to ensure that 0-200 Hz are not damped (without any real 3D acoustical image, however). */ -static struct mp_audio* play(struct af_instance *af, struct mp_audio *data) +static int filter(struct af_instance *af, struct mp_audio *data, int flags) { af_hrtf_t *s = af->priv; short *in = data->planes[0]; // Input audio data @@ -538,7 +538,7 @@ static struct mp_audio* play(struct af_instance *af, struct mp_audio *data) data->planes[0] = af->data->planes[0]; mp_audio_set_num_channels(data, 2); - return data; + return 0; } static int allocate(af_hrtf_t *s) @@ -571,7 +571,7 @@ static int af_open(struct af_instance* af) af->control = control; af->uninit = uninit; - af->play = play; + af->filter = filter; s = af->priv; -- cgit v1.2.3