spatialaudio / jackclient-python

🂻 JACK Audio Connection Kit (JACK) Client for Python :snake:
https://jackclient-python.readthedocs.io/
MIT License
135 stars 26 forks source link

negative xrun times #105

Open swapan-g opened 3 years ago

swapan-g commented 3 years ago

Hello I am running the chatty client demo. the Xrun call back is producing negative values e.g. xrun; delay -274886000640.0 microseconds

This clearly makes no sense.... There is no audible artifacts in the audio stream

I am running Ubuntu 20.04.2

mgeier commented 3 years ago

Yeah, not only is it negative, it's also about 76 hours, which doesn't seem like a typical delay value ...

Maybe that's some kind of integer overflow error?

I don't think this is caused by the Python wrapper, the value comes directly from the JACK library (using the jack_get_xrun_delayed_usecs() function).

You should probably ask this to the JACK developers: https://jackaudio.org/community.html?

swapan-g commented 3 years ago

Thanks I will inquire there. For what it's worth: I also noticed values are the same magnitude but opposite in sign as the 'usecs' output when jack_showtime. Also the values produces by the Xrun callback continually increase..

mgeier commented 3 years ago

@swapan-g Any news on this?

swapan-g commented 3 years ago

No never learned anymore...