1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 00:02:13 +00:00
mpv/input
Uoti Urpala a0de4bc500 ao_pulse, core: make pulse thread wake up core for more data
For ao_pulse, the current latency is not a good indicator of how soon
the AO requires new data to avoid underflow. Add an internal pipe that
can be used to wake up the input loop from select(), and make the
pulseaudio main loop (which runs in a separate thread) use this
mechanism when pulse requests more data. The wakeup signal currently
contains no information about the reason for the wakup, but audio
buffers are always filled when the event loop wakes up.

Also, request a latency of 1 second from the Pulseaudio server. The
default is normally significantly higher. We don't need low latency,
while higher latency helps prevent underflows reduces need for
wakeups.
2012-03-26 03:55:31 +03:00
..
appleir.c input: move all key code lists to input/keycodes.h 2011-05-02 00:43:31 +03:00
ar.c input/ar.c, input/lirc.c: fix changes missing from 1916b95b8 2011-09-04 08:04:31 +03:00
ar.h cleanup: remove some unnecessary input.[ch] typedefs 2011-07-16 21:32:37 +03:00
input.c ao_pulse, core: make pulse thread wake up core for more data 2012-03-26 03:55:31 +03:00
input.h ao_pulse, core: make pulse thread wake up core for more data 2012-03-26 03:55:31 +03:00
joystick.c input/joystick.c: add #include missing from 23cb829072 2011-05-03 13:26:30 +03:00
joystick.h input: move all key code lists to input/keycodes.h 2011-05-02 00:43:31 +03:00
keycodes.h x11: input: add print and menu keys 2012-03-25 22:30:37 +03:00
lirc.c input/ar.c, input/lirc.c: fix changes missing from 1916b95b8 2011-09-04 08:04:31 +03:00
lirc.h cleanup: remove some unnecessary input.[ch] typedefs 2011-07-16 21:32:37 +03:00