Re: blocking call in pulse core mainloop context results in sink not getting data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Mon, 19 Jul 2021, at 3:23 PM, Ravikiran belur wrote:
> Hello,
> A module in pulseaudio is using a blocking function in pa_hook_connect callback.
> So the blocking function runs in PA core mainloop context for 40ms to 90ms.
> This causes audio break/silence at the sink side, resulting in small 
> noise on the speaker during playback.
> Can someone suggest a fix for this issue in module/pulseaudio?

This is not unexpected. Data from PulseAudio clients arrives in the main thread, so blocking for that long is not good.

The module should be performing the task that is taking so long asynchronously, or dispatching it to a separate thread.

-- Arun
pulseaudio-discuss mailing list

[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux