1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-03 21:42:18 +00:00
mpv/audio/out
wm4 c5158b057c audio: reduce extra wakeups caused by recent changes
The feeder thread basically woke up the core and itself too often, and
caused some CPU overhead. This was caused by the recent buffer.c
changes.

For one, do not let ao_read_data() wake up the core, and instead rely on
the feeder thread's own buffer management. This is a bit strange, since
the change intended to unify the buffer management, but being more
consequent about it is better deferred to later, when the buffer
management changes again anyway. And also, the "more" condition in the
feeder thread seems outdated, or at least what made it make sense has
been destroyed, so do something that may or may not be better. In any
case, I'm still not getting underruns with ao_alsa, but the wakeup
hammering is gone.
2020-06-01 15:48:45 +02:00
..
ao_alsa.c audio: redo internal AO API 2020-06-01 01:08:16 +02:00
ao_audiotrack.c audio: redo internal AO API 2020-06-01 01:08:16 +02:00
ao_audiounit.m audio: redo internal AO API 2020-06-01 01:08:16 +02:00
ao_coreaudio_chmap.c audio/out: add AudioUnit output driver for iOS 2016-11-01 16:25:40 +01:00
ao_coreaudio_chmap.h audio/out: add AudioUnit output driver for iOS 2016-11-01 16:25:40 +01:00
ao_coreaudio_exclusive.c audio: redo internal AO API 2020-06-01 01:08:16 +02:00
ao_coreaudio_properties.c ao_coreaudio: change license to LGPL 2017-05-08 13:57:40 +02:00
ao_coreaudio_properties.h ao_coreaudio: change license to LGPL 2017-05-08 13:57:40 +02:00
ao_coreaudio_utils.c ao/audiounit: improve a/v sync 2019-04-05 10:29:44 +07:00
ao_coreaudio_utils.h ao/audiounit: improve a/v sync 2019-04-05 10:29:44 +07:00
ao_coreaudio.c audio: redo internal AO API 2020-06-01 01:08:16 +02:00
ao_jack.c audio: redo internal AO API 2020-06-01 01:08:16 +02:00
ao_lavc.c audio: redo internal AO API 2020-06-01 01:08:16 +02:00
ao_null.c audio: redo internal AO API 2020-06-01 01:08:16 +02:00
ao_openal.c audio: redo internal AO API 2020-06-01 01:08:16 +02:00
ao_opensles.c audio: redo internal AO API 2020-06-01 01:08:16 +02:00
ao_pcm.c audio: redo internal AO API 2020-06-01 01:08:16 +02:00
ao_pulse.c audio: redo internal AO API 2020-06-01 01:08:16 +02:00
ao_sdl.c audio: redo internal AO API 2020-06-01 01:08:16 +02:00
ao_wasapi_changenotify.c ao_wasapi_changenotify: use %ls instead of %S for wchar_t 2017-04-20 07:38:03 +02:00
ao_wasapi_utils.c ao_wasapi: try mix format except for chmap 2020-03-19 20:39:44 +02:00
ao_wasapi.c audio: redo internal AO API 2020-06-01 01:08:16 +02:00
ao_wasapi.h ao_wasapi: reorganize wasapi.h 2017-08-07 14:33:03 -07:00
ao.c audio: redo internal AO API 2020-06-01 01:08:16 +02:00
ao.h audio: redo internal AO API 2020-06-01 01:08:16 +02:00
buffer.c audio: reduce extra wakeups caused by recent changes 2020-06-01 15:48:45 +02:00
internal.h audio: redo internal AO API 2020-06-01 01:08:16 +02:00