Glitches in sound when using samplerate different than 44100
I have a Scarlett 2i2 audio card. This card supports 44100, 48000 and 96000 sample rate (probably more, but I dont care).
The issue is that when I set the samplerate to 48000 or 96000 in pipewire.conf, the audio is completely broken, as you can hear on the attached file.
I have no clue on how to fix this, I have tried connecting the audio interface into another USB, without success.
This is the output of pw-top
I have other audio interfaces in the same computer, and those audio interfaces work fine, so it looks like the issue is that the Scarlett 2i2 is not being configured correctly.