I don’t know why, either it did not work for me, or I used something similar in older pulseaudio versions when the “avoid-resampling” wasn’t available.
Also… I suspect this will cause all kinds of problems because if you pause a video on youtube, or start playing a 192khz song when two seconds of a youtube video is still playing in the background, with “avoid-resampling”, well, something will play slower/faster, or something will just break. I don’t think pulseaudio will immediately start to auto-resample the last 2 seconds of youtube-video in 192khz. With all the problems I had with pulseaudio (which I replaced with a 20-lines alsa config file…) I suspect it will just shit itself.
With Deadbeef, set to “without any software conversions”, if something is playing in another bitrate, it just won’t play. You pause (or quit) the youtube video for bitperfect playback. It might be weird sometimes, but it’s the best way I’ve found to get reliable, bitperfect playback on linux, without any possibility of upsampling or downsampling.
And even with that I still don’t trust computers in general so I will get a DAC showing the Khz of the files playing, just to be 200% sure.