[pulseaudio-discuss] module-combine-sinks latency

Marius Bjørnstad pmb at fa2k.net
Sun Jul 8 04:59:08 PDT 2012


On 07/08/2012 07:19 AM, Tanu Kaskinen wrote:
> On Sun, 2012-07-08 at 00:42 +0100, Marius Bjørnstad wrote:
>> Hi,
>>
>> I would like to play the same sound to my speakers and headphones, so
>> "switching" between them is just a matter of turning on/off the
>> speakers. When I use module-combine-sink to combine two sound cards, the
>> virtual sink gets a latency of approximately 200 ms -- very high for
>> VoIP usage. If I send the stream to either of the sound cards
>> separately, the latency is just 0.5 ms and ~15 ms. Is there a way to
>> reduce the latency for module-combine-sinks ?
> Apparently not - there are no module arguments for controlling the
> latency. module-combine-sink.c has the constant BLOCK_USEC, which is
> defined to be 200 ms, so apparently the latency is determined by that
> constant. It wouldn't be hard to make that configurable.
>

Hi,

Thanks for the reply. It works perfectly to change the number in
BLOCK_USEC, I now have much lower latency (haven't tried a conversation
yet, but I'm sure it will be fine).

Marius

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20120708/5cfbcf88/attachment.pgp>


More information about the pulseaudio-discuss mailing list