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_utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'filters/f_utils.h') diff --git a/filters/f_utils.h b/filters/f_utils.h index a59ac1601d..6ab288bcea 100644 --- a/filters/f_utils.h +++ b/filters/f_utils.h @@ -70,3 +70,9 @@ bool mp_subfilter_drain_destroy(struct mp_subfilter *sub); // A bidrectional filter which passes through all data. struct mp_filter *mp_bidir_nop_filter_create(struct mp_filter *parent); + +// A filter which repacks audio frame to fixed frame sizes with the given +// number of samples. On hard format changes (sample format/channels/srate), +// the frame can be shorter, unless pad_silence is true. Fails on non-aframes. +struct mp_filter *mp_fixed_aframe_size_create(struct mp_filter *parent, + int samples, bool pad_silence); -- cgit v1.2.3