1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-25 00:02:13 +00:00
mpv/libao2
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
..
ao_alsa.c configure, ao_alsa: drop support for obsolete ALSA versions 2012-02-27 16:46:56 +02:00
ao_arts.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
ao_coreaudio.c ao_coreaudio: fix crash when using mute with S/PDIF output 2011-11-25 05:20:23 +02:00
ao_dart.c Fix function declarations to avoid casting function pointers. 2010-01-01 13:18:49 +00:00
ao_dsound.c cleanup: Silence compilation warnings on MinGW-w64 2012-03-01 00:22:30 +02:00
ao_esd.c cleanup: avoid various GCC warnings 2011-04-20 04:22:53 +03:00
ao_ivtv.c audio: export audio pts to AO drivers 2011-07-31 16:31:07 +03:00
ao_jack.c ao_jack: increase maximum allowed channels from 6 to 8. 2010-11-02 04:07:42 +02:00
ao_kai.c Include libavutil/avutil.h for FFMIN 2010-03-10 11:33:02 +00:00
ao_mpegpes.c audio: export audio pts to AO drivers 2011-07-31 16:31:07 +03:00
ao_nas.c Remove trailing whitespace from most files 2009-07-07 02:34:35 +03:00
ao_null.c ao_null: convert to new API, cleanup/rewrite 2011-05-05 04:45:44 +03:00
ao_openal.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
ao_oss.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
ao_pcm.c ao_pcm: fix pointless message due to uninitialize variable 2011-08-11 20:58:05 +03:00
ao_pulse.c ao_pulse, core: make pulse thread wake up core for more data 2012-03-26 03:55:31 +03:00
ao_rsound.c ao_rsound: add new RSound audio output driver 2011-06-26 06:19:42 +03:00
ao_sdl.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
ao_sgi.c Delete things related to old translation system 2010-03-10 03:47:14 +02:00
ao_sun.c cleanup: remove NULL checks before free() all over the code 2010-11-14 13:11:20 +02:00
ao_v4l2.c audio: export audio pts to AO drivers 2011-07-31 16:31:07 +03:00
ao_win32.c Add support for distinguishing between little- and big-endian SPDIF AC3 2010-01-11 20:27:52 +00:00
audio_out_internal.h options: move mixer.h options to struct 2012-03-20 14:51:32 +02:00
audio_out.c ao_pulse, core: make pulse thread wake up core for more data 2012-03-26 03:55:31 +03:00
audio_out.h ao_pulse, core: make pulse thread wake up core for more data 2012-03-26 03:55:31 +03:00