jack2 xruns during or after freewheeling
Describe the bug
When switching back from freewheeling, jack2 reports one or more xruns. Note: This does not happen with jack1.
Environment
- JACK Version: jackdmp version 1.9.17 tmpdir /dev/shm protocol
- Operating System: debian GNU/Linux (bullseye)
- Installation: deb from debian
Steps To Reproduce
Export an Ardour session, with 6.6-547-g98721b1267 or later using jack2.
Further info:
Ardour now reports xruns during realtime export.
There is an currently assert (realtime_export ()); since xruns cannot happen when freewheeling.
This is apparently triggered when using jack2 at the end of export (when switching back from freewheeling).
Also note that it's not just one. A user reported 117 dropouts (using an optimized build that doesn't assert):
https://discourse.ardour.org/t/there-have-been-dropouts-during-realtime-export/105930
Expected vs. actual behavior
jack2 should not call the xrun_callback while freewheeling or while entering/leaving freewheel mode.