From b9f804b566c4c528714e4ec5e63675ad7ba5fefd Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 18 Jan 2018 14:44:20 +0100 Subject: audio: rewrite filtering glue code Use the new filtering code for audio too. --- filters/f_autoconvert.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'filters/f_autoconvert.h') diff --git a/filters/f_autoconvert.h b/filters/f_autoconvert.h index 72af21a0df..77e07aecf1 100644 --- a/filters/f_autoconvert.h +++ b/filters/f_autoconvert.h @@ -29,6 +29,17 @@ struct mp_hwdec_devices; void mp_autoconvert_add_vo_hwdec_subfmts(struct mp_autoconvert *c, struct mp_hwdec_devices *devs); +// Add afmt (an AF_FORMAT_* value) as allowed audio format. +// See mp_autoconvert_add_imgfmt() for other remarks. +void mp_autoconvert_add_afmt(struct mp_autoconvert *c, int afmt); + +// Add allowed audio channel configuration. +struct mp_chmap; +void mp_autoconvert_add_chmap(struct mp_autoconvert *c, struct mp_chmap *chmap); + +// Add allowed audio sample rate. +void mp_autoconvert_add_srate(struct mp_autoconvert *c, int rate); + // Reset set of allowed formats back to initial state. (This does not flush // any frames or remove currently active filters, although to get reasonable // behavior, you need to readd all previously allowed formats, or reset the -- cgit v1.2.3