Update audio.nix
This commit is contained in:
parent
849f84d885
commit
4889394efb
1 changed files with 30 additions and 1 deletions
|
|
@ -9,6 +9,35 @@
|
|||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
jack.enable = true; # Added for compatibility with more audio applications
|
||||
jack.enable = true;
|
||||
|
||||
# Enable audio monitoring for game capture
|
||||
extraConfig.pipewire."92-low-latency" = {
|
||||
context.properties = {
|
||||
default.clock.rate = 48000;
|
||||
default.clock.quantum = 1024;
|
||||
default.clock.min-quantum = 512;
|
||||
default.clock.max-quantum = 2048;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# Allow capturing audio from all applications
|
||||
environment.etc."pipewire/pipewire.conf.d/99-steam-monitor.conf".text = ''
|
||||
context.modules = [
|
||||
{ name = libpipewire-module-loopback
|
||||
args = {
|
||||
node.description = "Steam Audio Monitor"
|
||||
capture.props = {
|
||||
media.class = "Audio/Sink"
|
||||
audio.position = [ FL FR ]
|
||||
}
|
||||
playback.props = {
|
||||
media.class = "Audio/Source"
|
||||
audio.position = [ FL FR ]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue