workstation perf tweaks
This commit is contained in:
parent
349cdd047d
commit
e70c974289
5 changed files with 325 additions and 288 deletions
|
|
@ -96,12 +96,20 @@ in {
|
|||
|
||||
wireplumber.extraConfig."99-alsa-lowlatency"."alsa_monitor.rules" = [
|
||||
{
|
||||
matches = [ { "node.name" = "matches:alsa_output.*"; } ];
|
||||
matches = [{"node.name" = "matches:alsa_output.*";}];
|
||||
apply_properties = {
|
||||
"audio.format" = "S32LE";
|
||||
"audio.rate" = toString (cfg.rate * (if cfg.usbSoundcard then 2 else 1)); # for USB soundcards it should be twice your desired rate
|
||||
"api.alsa.period-size" = toString cfg.periodSize; # defaults to 1024, tweak by trial-and-error
|
||||
"api.alsa.disable-batch" = if cfg.batch then "false" else "true"; # generally, USB soundcards use the batch mode
|
||||
"audio.format" = "S32LE";
|
||||
"audio.rate" = toString (cfg.rate
|
||||
* (
|
||||
if cfg.usbSoundcard
|
||||
then 2
|
||||
else 1
|
||||
)); # for USB soundcards it should be twice your desired rate
|
||||
"api.alsa.period-size" = toString cfg.periodSize; # defaults to 1024, tweak by trial-and-error
|
||||
"api.alsa.disable-batch" =
|
||||
if cfg.batch
|
||||
then "false"
|
||||
else "true"; # generally, USB soundcards use the batch mode
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue