mirror of https://github.com/mpv-player/mpv
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. |
||
---|---|---|
.. | ||
ao_alsa.c | ||
ao_arts.c | ||
ao_coreaudio.c | ||
ao_dart.c | ||
ao_dsound.c | ||
ao_esd.c | ||
ao_ivtv.c | ||
ao_jack.c | ||
ao_kai.c | ||
ao_mpegpes.c | ||
ao_nas.c | ||
ao_null.c | ||
ao_openal.c | ||
ao_oss.c | ||
ao_pcm.c | ||
ao_pulse.c | ||
ao_rsound.c | ||
ao_sdl.c | ||
ao_sgi.c | ||
ao_sun.c | ||
ao_v4l2.c | ||
ao_win32.c | ||
audio_out.c | ||
audio_out.h | ||
audio_out_internal.h |