14 Jun 2023 |
evils | anyone know how to set the sample rate in pipewire? | 13:47:28 |
Minijackson | 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 | for example PIPEWIRE_LATENCY=256/48000 carla | 17:59:36 |
evils | yea, i found that, it does nothing | 18:00:01 |
evils | 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 | 18:00:39 |
Minijackson | 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 | 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 | 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 | basically directly from the NixOS wiki but with my interface's max sample rate | 18:02:29 |
Minijackson | thanks | 18:02:37 |
Minijackson | if you don't want to reboot, you could just restart pipewire | 18:03:19 |
evils | 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) | 18:03:39 |
evils | In reply to @Minijackson:matrix.org if you don't want to reboot, you could just restart pipewire how? | 18:03:46 |
evils | Failed to restart pipewire.service: Unit pipewire.service is masked. | 18:04:03 |
Minijackson | systemctl --user restart 'pipewire*' should do the trick | 18:04:08 |
Minijackson | 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 | easyeffects still reports 48kHz sample rate | 18:05:34 |
Minijackson | 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 | ardour 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 | I started carla with PIPEWIRE_LATENCY=256/192000 | 18:09:05 |
Minijackson | 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 | hmm | 18:10:34 |
Minijackson | pipewire-jack might need some configuration itself | 18:10:58 |
evils | easyeffects is indeed using the quant and rate i set, but its source and sink's format are F32p 2 48000 | 18:11:14 |
evils | * easyeffects is indeed using the quant and rate i set, but its source and sink's format are F32P 2 48000 | 18:11:19 |
evils | * according to pw-top: easyeffects is indeed using the quant and rate i set, but its source and sink's format are F32P 2 48000 | 18:11:35 |
Minijackson | https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Config-JACK hmm | 18:17:19 |
evils | 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 |  Download IMG_20230614_211856.jpg | 19:20:53 |
evils | 18ms round trip time vs my interface's input monitoring | 19:21:14 |