your current code would use pipewire jack devel also on leap and the bigger problem is actually the runtime requires on jack a few lines below. apps compiled against jack-devel work just fine with pipewire. the hard runtime requires on jack is the problem.