[MPlayer-dev-eng] [PATCH] reduce latency for ao_pulse

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Jul 12 19:50:05 CEST 2010


On Mon, Jul 12, 2010 at 06:38:27PM +0200, Dan Oscarsson wrote:
> mplayer uses a call get_delay to the ao when calculation the playing
> pts. When trying to get good pts values I found that when using ao pulse
> the call get_delay returned wrong answers a short while after a pause or
> a seek. My analysis showed that pulseaudio calculates latency in, from
> what I can see, wrong way - especially just after a pause or a seek. The
> only way, I have found out, to reduce the bad values are to request
> pulseaudio to reduce its latency.


I really don't like the idea of adding hacks to work around pulseaudio bugs,
particularly since pulseaudio is already only barely acceptable CPU-usage
wise and I suspect this approach may further increase the CPU usage of it.
It might be worth checking if -autosync can handle this already and if not
if it can be extended to cover this issue.


More information about the MPlayer-dev-eng mailing list