pulsesink: Update segdone periodically
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 20 Nov 2012 06:44:07 +0000 (12:14 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Sat, 23 Feb 2013 03:56:19 +0000 (09:26 +0530)
commit35f3bea55888315ea477b16cfec19666962f2c70
tree27c1dd7aa147f626d27277393e2dde57bb75166f
parent10802cae7339ff1a3e35723159a122088c202933
pulsesink: Update segdone periodically

This makes sure that we update segdone based on the read index received
during latency updates. As the comment notes, we make some compromises
to deal with the fact that segdone is a segment multiple, while the read
index offers finer granularity. The updates are also not very often
(100ms since that is how often automatic timing updates are provided).

All this is required for the baseaudiosink sample alignment code to work
at all.

https://bugzilla.gnome.org/show_bug.cgi?id=694257
ext/pulse/pulsesink.c