PipeWire: Difference between revisions

m Update Helvum link
Wimpy (talk | contribs)
Correct the PulseAudio backend configuration as per: https://docs.pipewire.org/page_module_protocol_pulse.html
Line 239: Line 239:
Applications using the Pulse backend have a separate configuration. The default minimum value is 1024, so it needs to be tweaked if low-latency audio is desired.
Applications using the Pulse backend have a separate configuration. The default minimum value is 1024, so it needs to be tweaked if low-latency audio is desired.
For 24.05 or newer:
For 24.05 or newer:
<syntaxHighlight lang=nix>
<syntaxhighlight lang="nix">
services.pipewire.extraConfig.pipewire-pulse."92-low-latency" = {
services.pipewire.extraConfig.pipewire-pulse."92-low-latency" = {
   "context.modules" = [
   "context.properties" = [
     {
     {
       name = "libpipewire-module-protocol-pulse";
       name = "libpipewire-module-protocol-pulse";
       args = {
       args = { };
        "pulse.min.req" = "32/48000";
        "pulse.default.req" = "32/48000";
        "pulse.max.req" = "32/48000";
        "pulse.min.quantum" = "32/48000";
        "pulse.max.quantum" = "32/48000";
      };
     }
     }
   ];
   ];
  "pulse.properties" = {
    "pulse.min.req" = "32/48000";
    "pulse.default.req" = "32/48000";
    "pulse.max.req" = "32/48000";
    "pulse.min.quantum" = "32/48000";
    "pulse.max.quantum" = "32/48000";
  };
   "stream.properties" = {
   "stream.properties" = {
     "node.latency" = "32/48000";
     "node.latency" = "32/48000";
Line 258: Line 259:
   };
   };
};
};
</syntaxHighlight>
</syntaxhighlight>
If you're still using 23.11 or earlier, you can use <code>environment.etc</code> and <code>pkgs.formats.json</code> like in [[PipeWire#Advanced_Configuration|Advanced Configuration]].
If you're still using 23.11 or earlier, you can use <code>environment.etc</code> and <code>pkgs.formats.json</code> like in [[PipeWire#Advanced_Configuration|Advanced Configuration]].