mpv/player
wm4 b74c09efbf audio: refactor how data is passed to AO
This replaces the two buffers (ao_chain.ao_buffer in the core, and
buffer_state.buffers in the AO) with a single queue. Instead of having a
byte based buffer, the queue is simply a list of audio frames, as output
by the decoder. This should make dataflow simpler and reduce copying.

It also attempts to simplify fill_audio_out_buffers(), the function I
always hated most, because it's full of subtle and buggy logic.

Unfortunately, I got assaulted by corner cases, dumb features (attempt
at seamless looping, really?), and other crap, so it got pretty
complicated again. fill_audio_out_buffers() is still full of subtle and
buggy logic. Maybe it got worse. On the other hand, maybe there really
is some progress. Who knows.

Originally, the data flow parts was meant to be in f_output_chain, but
due to tricky interactions with the playloop code, it's now in the dummy
filter in audio.c.

At least this improves the way the audio PTS is passed to the encoder in
encoding mode. Now it attempts to pass frames directly, along with the
pts, which should minimize timestamp problems. But to be honest, encoder
mode is one big kludge that shouldn't exist in this way.

This commit should be considered pre-alpha code. There are lots of bugs
still hiding.
2020-08-29 13:12:32 +02:00
..
javascript js: hooks: allow deferred continuation (match d0ab562b) 2020-08-07 15:12:20 +03:00
lua ytdl_hook: sort subtitle list by language 2020-08-12 20:16:13 +02:00
audio.c audio: refactor how data is passed to AO 2020-08-29 13:12:32 +02:00
client.c client API: report IDs of inserted playlist entries on loading playlist 2020-03-27 00:57:11 +01:00
client.h scripting: remove race condition when toggling internal scripts 2020-03-26 23:59:44 +01:00
command.c command: extend subprocess command stdin, change behavior 2020-08-16 02:54:44 +02:00
command.h command: use client IDs for hooks 2020-03-26 23:40:25 +01:00
configfiles.c player: warn if both proper and compat. config directories exist 2020-06-25 17:56:16 +02:00
core.h audio: refactor how data is passed to AO 2020-08-29 13:12:32 +02:00
external_files.c external_files: add .pgs subtitle extension 2020-07-21 15:07:17 +02:00
external_files.h player: get rid of mpv_global.opts 2018-05-24 19:56:35 +02:00
javascript.c win32: scripting utils.get_env_list(): use UTF-8 2020-08-16 12:24:19 +03:00
loadfile.c player: add --subs-with-matching-audio option 2020-08-19 23:44:54 -05:00
lua.c win32: scripting utils.get_env_list(): use UTF-8 2020-08-16 12:24:19 +03:00
main.c build: change filenames of generated files 2020-06-04 16:59:05 +02:00
misc.c audio: refactor how data is passed to AO 2020-08-29 13:12:32 +02:00
osd.c player: add --term-title option 2020-05-25 20:39:37 +02:00
playloop.c audio: refactor how data is passed to AO 2020-08-29 13:12:32 +02:00
screenshot.c screenshot: fix typo in comment 2020-02-07 13:42:42 +01:00
screenshot.h player: make screenshot each-frame mode more accurate 2020-02-07 13:32:21 +01:00
scripting.c auto_profiles: add this script 2020-08-05 22:37:47 +02:00
sub.c command: add property to return text subtitles in ASS 2020-05-14 22:14:49 +02:00
video.c audio: refactor how data is passed to AO 2020-08-29 13:12:32 +02:00