Audio sample rate setting

Could be a nice QoL feature to have an GUI option in the audio menu to set the sample rate of what a DAC support and what default sample rate should be instead of having to mess around with the pipewire config file.

pipewire should change to the required sample rate for the content with minimum conversion and just work without needing to modify anything.

Just odd that several says that one have to set it it config if one want to utilize a DAC’s full spec.

Like i’ve added this under: ~/.config/pipewire/pipewire.conf.d/pwrate.conf

{
“context.properties”: {
“default.clock.rate”: “192000”,
“default.clock.allowed-rates”: [
“384000”,
“352800”,
“192000”,
“44100”,
“48000”,
“88200”,
“96000”
]
}
}

Ah. This used to be supported with default behaviour. I went to look it up to show you, and found that it has been intentionally disabled by default. From the docs for that setting:

Note that this is not enabled by default for now because of kernel driver bugs that need to be fixed/worked around first. There are also potentially some bugs with bluetooth devices and synchronization.

Kind of a bummer! I guess if it gets a GUI it will need a warning that it can break stuff, in order to avoid “My audio is broken only under KDE” bug reports.

Since two of those three bug reports have been recently closed, perhaps it would be best to follow up with the pipewire project first, and see if they plan to re-enable rate switching by default. If they do that, there’s no need for a GUI.