Audio completely glitching out when audio is stopped and started again.
I have encountered this problem in 2 separate occasions. The first time was in chrome when I was writing tool in javascript to capture my screen and audio and play it back so that I could do a browser-discord screen capture with audio. If I disconnected the mic that the page was capturing and playing back using qjackctl BEFORE connecting a new source to that input it would completely glitch out. I was able to work around this and everything was good.
The situation I cannot work around however is using UxPlay to mirror my iphone screen. UxPlay functioned absolutely perfectly in pulse but I tried it again after having switched to pipewire and it is having the exact same problem as above except there is literally nothing I can do to prevent it. Every time my phone stops outputting audio for even a second the audio gets COMPLETELY screwed up when it resumes.
Here is a video of what is happening in UxPlay https://www.youtube.com/watch?v=BeI1MQwQ4xg
If anyone has any suggestions on things I can try on my end to fix this or if there is any further information I can provide to help in diagnosing the issue let me know.