Audio: Difference between revisions

imported>Mic92
imported>Fadenb
m Enabling PulseAudio: syntaxhighlight
Line 100: Line 100:


The following command should only show that pulseaudio (and nothing else) is using the sound devices, if you see something like "plugin-container" in the COMMAND column then something is definitely not right, perhaps you have a local ~/.asoundrc which overrides the global alsa settings?.
The following command should only show that pulseaudio (and nothing else) is using the sound devices, if you see something like "plugin-container" in the COMMAND column then something is definitely not right, perhaps you have a local ~/.asoundrc which overrides the global alsa settings?.
<syntaxHighlight lang="bash">
<syntaxHighlight lang="console">
$ lsof /dev/snd/*
$ lsof /dev/snd/*
COMMAND    PID    USER  FD  TYPE DEVICE SIZE/OFF NODE NAME
COMMAND    PID    USER  FD  TYPE DEVICE SIZE/OFF NODE NAME
Line 121: Line 121:
#Enable JACK support
#Enable JACK support
#: In your configuration file:
#: In your configuration file:
#: <pre>hardware.pulseaudio.package = pkgs.pulseaudio.override { jackaudioSupport = true; };</pre>
#: <syntaxhighlight lang="nix" >hardware.pulseaudio.package = pkgs.pulseaudio.override { jackaudioSupport = true; };</syntaxhighlight>
# Ensure that the JACK enabled pulseaudio is being used
# Ensure that the JACK enabled pulseaudio is being used
#: ~/.config/pulse/client.conf
#: ~/.config/pulse/client.conf
Line 151: Line 151:
Otherwise, you may get further info by disabling PulseAudio respawning (see above) and starting it in verbose mode:  
Otherwise, you may get further info by disabling PulseAudio respawning (see above) and starting it in verbose mode:  


<pre>$ pulseaudio -vvv</pre>
<syntaxhighlight lang="console">$ pulseaudio -vvv</syntaxhighlight>


=== System optimizations for low latency audio with JACK ===
=== System optimizations for low latency audio with JACK ===