Ugh, Alsa again … Linux versions after 5.10.94 have this regression that changing the sample rate with snd_pcm_hw_params returns "invalid argument" if you call it a second time, and I could finally no longer delay updating my kernel, so I worked around it by re-opening the device if I need to change the sample format.
That is everything I changed. And somehow, now playback sounds super noisy and as if there is overdrive in the high frequencies?
@robryk Or a bug that I introduced that also causes noise, though way more extreme noise so I don’t think this was it: when you put 3 bytes of a 24-bit sample back together into an i32, but you forget to extend the sign bit 😬