Using JACK with PulseAudio: Difference between revisions

imported>HLandau
mNo edit summary
imported>User
No edit summary
Line 1: Line 1:
When on nixos-unstable, one may use [https://github.com/NixOS/nixpkgs-channels/blob/nixos-unstable/nixos/modules/services/audio/jack.nix JACK module]. It works both with and without PulseAudio. Enable it this way and reboot:
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
  services.jack = {
    jackd.enable = true;
    # support ALSA only programs via ALSA JACK PCM plugin
    alsa.enable = false;
    # support ALSA only programs via loopback device (supports programs like Steam)
    loopback = {
      enable = true;
      # buffering parameters for dmix device to work with ALSA only semi-professional sound programs
      dmixConfig = ''
        period_size 2048
      '';
    };
  };
  users.extraUsers.YOURUSER.extraGroups = [ "jackaudio" ];
</nowiki>}} 
{{Outdated|needs cleanup}}
{{Outdated|needs cleanup}}
[http://jackaudio.org The Jack Audio Connection Kit] is used by most of the serious audio applications on Linux. It provides real-time, low latency connections for both audio and MIDI data between applications that implement its API. NixOS uses the dbus version of JACK2 (jackdbus). This can be used together with pulseaudio with a little configuration. The result is that you don't have to manually hunt down applications which are using the sound device and kill them before starting JACK. You can also continue to use non-JACK aware applications (e.g. flash) at the same time as using JACK applications (e.g. Ardour).
[http://jackaudio.org The Jack Audio Connection Kit] is used by most of the serious audio applications on Linux. It provides real-time, low latency connections for both audio and MIDI data between applications that implement its API. NixOS uses the dbus version of JACK2 (jackdbus). This can be used together with pulseaudio with a little configuration. The result is that you don't have to manually hunt down applications which are using the sound device and kill them before starting JACK. You can also continue to use non-JACK aware applications (e.g. flash) at the same time as using JACK applications (e.g. Ardour).