Closed dagargo closed 8 months ago
With PipeWire 0.3.77, the issue don't arise when making connections but still appear at random.
But it's much more stable now.
After more testing, I can confirm that with version 0.3.77 making connections still causes timing issues.
I've tried setting the api.alsa.disable-tsched
property as explained in this PipeWire issue without success.
Seems that everything is working great again with version 0.3.80.
Some issues have been solved in the recent releases but I've just discovered that I wasn't calling rtirq properly, so the RT priorities were not set up as needed to ensure low latency. So this issue was probably my fault.
Leaving this open for now as I want to run more tests.
Looks like the issue is still there and the changes I saw were just caused by having Ardour running before launching Overwitch.
Perhaps the issue is related to the way the JACK client is created.
PipeWire support improved in b869eed544908284bfd0428361a41bbe50b6e05a.
It's recommended to use the Pro audio profile and pass the environment variable PIPEWIRE_PROPS
indicating the hardware to be assigned to and scheduled with.
$ PIPEWIRE_PROPS='node.link-group=pro-audio-0 overwitch-cli
The GUI may use this or use the settings to internally set this variable.
See the README.md section for more information.
The issue seems to appear at random but it also happens when making JACK connections to Overwitch or any other client or hardware.
The clock drifts, and so the ratios, and the buffers get filled up with more data increasing the latency. This is more noticeable in the JACK to Overbridge side.
This is an example of Overwitch running.
Just when making a connection this happens (ratio drift).
After a few connections, the delays are unacceptable.
The issue appears when making connections from Ardour or
qpwgraph
. It doesn't make any difference if Ardour is up or down.Sometimes, the ratios are not right from the start, meaning that I know that the
o2p
ratio in my device is around0,999885
and being greater than1.0
is a symptom that the clock will drift later.