audio: more allowed rates for pipewire, 44100 +

48000
This commit is contained in:
teutat3s 2024-04-19 16:55:32 +02:00
parent 84019208c5
commit ccc098d379
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -30,10 +30,22 @@ in {
# rtkit is optional but recommended
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Config-PipeWire#setting-sample-rates
extraConfig.pipewire = {
"10-clock-rate" = {
"context.properties" = {
default = {
"clock.rate" = 48000; # Pipewire default
"clock.allowed-rates" = [ 44100 48000 ];
};
};
};
};
};
}