1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 17:12:36 +00:00
mpv/audio/decode
wm4 5fd8a1e04c audio: make decoders output refcounted frames
This rewrites the audio decode loop to some degree. Audio filters don't
do refcounted frames yet, so af.c contains a hacky "emulation".

Remove some of the weird heuristic-heavy code in dec_audio.c. Instead of
estimating how much audio we need to filter, we always filter full
frames. Maybe this should be adjusted later: in case filtering increases
the volume of the audio data, we should try not to buffer too much
filter output by reducing the input that is fed at once.

For ad_spdif.c and ad_mpg123.c, we don't avoid extra copying yet - it
doesn't seem worth the trouble.
2014-11-10 22:02:05 +01:00
..
ad_lavc.c audio: make decoders output refcounted frames 2014-11-10 22:02:05 +01:00
ad_mpg123.c audio: make decoders output refcounted frames 2014-11-10 22:02:05 +01:00
ad_spdif.c audio: make decoders output refcounted frames 2014-11-10 22:02:05 +01:00
ad.h audio: make decoders output refcounted frames 2014-11-10 22:02:05 +01:00
dec_audio.c audio: make decoders output refcounted frames 2014-11-10 22:02:05 +01:00
dec_audio.h audio: make decoders output refcounted frames 2014-11-10 22:02:05 +01:00