!XrtRvzcHOrHtSKARne:nixos.org

NixOS Audio

110 Members
24 Servers

Load older messages


SenderMessageTime
14 Jun 2023
@evils:nixos.devevilsanyone know how to set the sample rate in pipewire?13:47:28
@Minijackson:matrix.orgMinijackson
In reply to @evils:nixos.dev
anyone know how to set the sample rate in pipewire?
maybe you can using the PIPEWIRE_LATENCY env variable, but it's per-client
17:59:30
@Minijackson:matrix.orgMinijackson for example PIPEWIRE_LATENCY=256/48000 carla 17:59:36
@evils:nixos.devevilsyea, i found that, it does nothing18:00:01
@evils:nixos.devevilsi did set a /etc config file that may take effect the next time i reboot, but i'm hoping not to reboot for a while18:00:39
@Minijackson:matrix.orgMinijackson
In reply to @evils:nixos.dev
yea, i found that, it does nothing
it did help me for the "latency" part
18:01:02
@Minijackson:matrix.orgMinijackson
In reply to @evils:nixos.dev
i did set a /etc config file that may take effect the next time i reboot, but i'm hoping not to reboot for a while
a pipewire config file? What did you put, if I may ask?
18:01:37
@evils:nixos.devevils
  environment.etc = let
    json = pkgs.formats.json {};
  in {
    "pipewire/pipewire.d/92-low-latency.conf".source = json.generate "92-low-latency.conf" {
      context.properties = {
        default.clock.rate = 192000;
        default.clock.quantum = 32;
        default.clock.min-quantum = 32;
        default.clock.max-quantum = 1024;
      };
    };
  };
18:02:00
@evils:nixos.devevilsbasically directly from the NixOS wiki but with my interface's max sample rate18:02:29
@Minijackson:matrix.orgMinijacksonthanks18:02:37
@Minijackson:matrix.orgMinijacksonif you don't want to reboot, you could just restart pipewire18:03:19
@evils:nixos.devevilsi somewhat suspect it's up to users of a sink to request a sample rate as the inverse is the case (if i play a high sample rate file, pw-top shows it as high sample rate)18:03:39
@evils:nixos.devevils
In reply to @Minijackson:matrix.org
if you don't want to reboot, you could just restart pipewire
how?
18:03:46
@evils:nixos.devevils Failed to restart pipewire.service: Unit pipewire.service is masked. 18:04:03
@Minijackson:matrix.orgMinijackson systemctl --user restart 'pipewire*' should do the trick 18:04:08
@Minijackson:matrix.orgMinijackson
In reply to @evils:nixos.dev
Failed to restart pipewire.service: Unit pipewire.service is masked.
yeah, it's a user service, not a system service
18:04:37
@evils:nixos.devevilseasyeffects still reports 48kHz sample rate18:05:34
@Minijackson:matrix.orgMinijackson
In reply to @evils:nixos.dev
i somewhat suspect it's up to users of a sink to request a sample rate

as the inverse is the case (if i play a high sample rate file, pw-top shows it as high sample rate)
I think it's like gstreamer, where the sample rate may be negotiated between clients
18:05:57
@evils:nixos.devevilsardour also gets 48kHz, and i can't configure the sample rate in that, it's up to jack, and qjackctl is already set to 192kHz it does jack shit (pardon the pun)18:06:59
@Minijackson:matrix.orgMinijackson I started carla with PIPEWIRE_LATENCY=256/192000 18:09:05
@Minijackson:matrix.orgMinijackson pw-top reports that it is using that buffer size and bitrate, but Carla itself reports a buffersize of 64 and 48kHz x) 18:09:37
@evils:nixos.devevilshmm18:10:34
@Minijackson:matrix.orgMinijacksonpipewire-jack might need some configuration itself18:10:58
@evils:nixos.devevilseasyeffects is indeed using the quant and rate i set, but its source and sink's format are F32p 2 4800018:11:14
@evils:nixos.devevils * easyeffects is indeed using the quant and rate i set, but its source and sink's format are F32P 2 4800018:11:19
@evils:nixos.devevils * according to pw-top: easyeffects is indeed using the quant and rate i set, but its source and sink's format are F32P 2 4800018:11:35
@Minijackson:matrix.orgMinijacksonhttps://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Config-JACK hmm18:17:19
@evils:nixos.devevils

hmm, either this doesn't do anything, or pipewire doesn't accept quoted values

    "pipewire/jack.conf.d/jack.conf".source = json.generate "jack.conf" {
      jack.properties.node.latency = "128/192000";
    };
18:45:23
@evils:nixos.devevilsIMG_20230614_211856.jpg
Download IMG_20230614_211856.jpg
19:20:53
@evils:nixos.devevils18ms round trip time vs my interface's input monitoring19:21:14

Show newer messages


Back to Room ListRoom Version: 9