mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 00:02:13 +00:00
84cfe0d8b2
This can be reproduced with: mpv short.wav -af 'lavfi="aecho=0.8:0.9:5000|6800:0.3|0.25"' An audio file that is just 1-2 seconds long should play for 8-9 seconds, which audible echo towards the end. The code assumes that when playing with AF_FILTER_FLAG_EOF, the filter will either produce output, or has all remaining data flushed. I'm not really sure whether this really works if there are multiple filters with EOF handling in the chain. To handle it correctly, af_lavfi should retry filtering if 1. EOF flag is set, 2. there were input samples, and 3. no output samples were produced. But currently it seems to work well enough anyway. |
||
---|---|---|
.. | ||
af_bs2b.c | ||
af_center.c | ||
af_channels.c | ||
af_convert24.c | ||
af_convertsignendian.c | ||
af_delay.c | ||
af_drc.c | ||
af_dummy.c | ||
af_equalizer.c | ||
af_export.c | ||
af_extrastereo.c | ||
af_format.c | ||
af_hrtf.c | ||
af_hrtf.h | ||
af_karaoke.c | ||
af_ladspa.c | ||
af_lavcac3enc.c | ||
af_lavfi.c | ||
af_lavrresample.c | ||
af_pan.c | ||
af_scaletempo.c | ||
af_sinesuppress.c | ||
af_sub.c | ||
af_surround.c | ||
af_sweep.c | ||
af_volume.c | ||
af.c | ||
af.h | ||
dsp.h | ||
equalizer.h | ||
filter.c | ||
filter.h | ||
tools.c | ||
window.c | ||
window.h |