1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 06:42:03 +00:00
mpv/audio/decode
wm4 824e6550f8 audio/filter: fix mul/delay scale and values
Before this commit, the af_instance->mul/delay values were in bytes.
Using bytes is confusing for non-interleaved audio, so switch mul to
samples, and delay to seconds. For delay, seconds are more intuitive
than bytes or samples, because it's used for the latency calculation.
We also might want to replace the delay mechanism with real PTS
tracking inside the filter chain some time in the future, and PTS
will also require time-adjustments to be done in seconds.

For most filters, we just remove the redundant mul=1 initialization.
(Setting this used to be required, but not anymore.)
2013-11-12 23:34:35 +01:00
..
ad_lavc.c Remove sh_audio->samplesize 2013-11-09 23:32:58 +01:00
ad_mpg123.c Remove sh_audio->samplesize 2013-11-09 23:32:58 +01:00
ad_spdif.c ad_spdif: change API usage so that it works on Libav 2013-11-10 00:52:55 +01:00
ad.h cosmetics: replace "CTRL" defines by enums 2013-10-02 21:19:16 +02:00
dec_audio.c audio/filter: fix mul/delay scale and values 2013-11-12 23:34:35 +01:00
dec_audio.h audio: switch output to mp_audio_buffer 2013-11-12 23:29:53 +01:00