]> code.delx.au - pulseaudio/commit
module-combine-sink: Initialize smoother in paused state
authorForest Bond <forest.bond@rapidrollout.com>
Fri, 20 May 2011 16:21:13 +0000 (12:21 -0400)
committerColin Guthrie <colin@mageia.org>
Thu, 2 Jun 2011 09:52:01 +0000 (11:52 +0200)
commit249218b944ed0237ec66d56c08ed4dddf5e98d24
tree8df198032d59d2c8cda3db739c7c524afffce80e
parentab808930ef29a34bd8f0b872993bb900c8f45961
module-combine-sink: Initialize smoother in paused state

The smoother is paused on initialization and resumed when the sink
state is set to running.  Otherwise, early latency estimates are
too low since there is some delay between module initialization and
entering the running state.

After the smoother is initially resumed, it is paused when the sink
state is not running.  The previous behavior was to pause only when
the sink enters suspended state, however, this would lead to large
errors in latency estimates after the sink has been idle for some
time.
src/modules/module-combine-sink.c