mirror of https://github.com/mpv-player/mpv
a0de4bc500
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. |
||
---|---|---|
.. | ||
appleir.c | ||
ar.c | ||
ar.h | ||
input.c | ||
input.h | ||
joystick.c | ||
joystick.h | ||
keycodes.h | ||
lirc.c | ||
lirc.h |