diff options
author | wm4 <wm4@nowhere> | 2018-01-18 14:44:20 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-01-30 03:10:27 -0800 |
commit | b9f804b566c4c528714e4ec5e63675ad7ba5fefd (patch) | |
tree | 49d6fcd42ce6597a67aa2af59b7f20beb21a2e14 /filters/f_autoconvert.h | |
parent | 76276c92104c31ee936ba5c76a76072f09978c5f (diff) | |
download | mpv-b9f804b566c4c528714e4ec5e63675ad7ba5fefd.tar.bz2 mpv-b9f804b566c4c528714e4ec5e63675ad7ba5fefd.tar.xz |
audio: rewrite filtering glue code
Use the new filtering code for audio too.
Diffstat (limited to 'filters/f_autoconvert.h')
-rw-r--r-- | filters/f_autoconvert.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 |