mpv/audio
wm4 84cfe0d8b2 audio: flush remaining data from the filter chain on EOF
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.
2013-12-05 00:31:55 +01:00
..
decode audio: flush remaining data from the filter chain on EOF 2013-12-05 00:31:55 +01:00
filter audio: flush remaining data from the filter chain on EOF 2013-12-05 00:31:55 +01:00
out ao_oss: when falling back from unknown prefer larger format 2013-12-04 00:07:40 +01:00
audio.c audio: better rejection of invalid formats 2013-11-27 00:16:05 +01:00
audio.h audio: better rejection of invalid formats 2013-11-27 00:16:05 +01:00
audio_buffer.c audio: add mp_audio_buffer 2013-11-12 23:28:21 +01:00
audio_buffer.h audio: add mp_audio_buffer 2013-11-12 23:28:21 +01:00
chmap.c core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
chmap.h core: move contents to mpvcore (2/2) 2013-08-06 22:52:31 +02:00
chmap_sel.c ao_jack: allow more control about channel layouts 2013-07-07 18:37:55 +02:00
chmap_sel.h audio: add channel map selection function 2013-05-12 21:24:57 +02:00
fmt-conversion.c audio: drop "_NE"/"ne" suffix from audio formats 2013-11-15 21:25:05 +01:00
fmt-conversion.h ad_lavc: use fmt-conversion to map sample formats 2013-04-13 04:21:27 +02:00
format.c audio/format: add heuristic to estimate loss on format conversion 2013-11-16 21:46:17 +01:00
format.h audio/format: add heuristic to estimate loss on format conversion 2013-11-16 21:46:17 +01:00
mixer.c audio/filter: remove unneeded AF_CONTROLs, convert to enum 2013-11-18 14:21:01 +01:00
mixer.h command: don't allow changing volume if no audio initialized 2013-10-12 18:57:02 +02:00
reorder_ch.c ao_lavc: support non-interleaved audio 2013-11-13 20:10:17 +01:00
reorder_ch.h ao_lavc: support non-interleaved audio 2013-11-13 20:10:17 +01:00