[pulseaudio-discuss] [PATCH 0/5] HW and SW volume syncronization in IO-thread

Jyri Sarha oku at iki.fi
Thu Oct 14 08:04:06 PDT 2010


>> On 2010-10-13 18:40, oku at iki.fi wrote:
>>> From: Jyri Sarha<jyri.sarha at nokia.com>
> ...
>> ...rather than trying to add explicit delays just for the volume sync.
>> Either that, or some kind of volume ramping. Just curious if you
>> considered that solution as well?
>>

Ah, only after reading my reply from the mailing list I
understand your concern.

The sync-volume is really not only using some explicit timers,
but it uses sinks latency information (got with
pa_sink_get_latency_within_thread()) for timing the HW volume
changes and adjust the timers when ever the DMA buffer is rewound.

The parameters given are there only to compensate for timer and
reported latency inaccuracy. The "safety margin" is for compensation
dynamic inaccuracy and "extra delay" is there to compensate
static errors. On most hardware "extra delay" should be set to
zero.

Cheers,
   Jyri






More information about the pulseaudio-discuss mailing list