[Desktop/Multimedia] fix pipewire combined outputs

This commit is contained in:
Antoine Viallon 2024-02-07 20:46:59 +01:00
parent 5d255ebcdc
commit fd09456414
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -68,16 +68,43 @@ in {
["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]" ["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]"
} }
''; '';
"pipewire/pipewire-pulse.conf.d/combined-outputs.json".text = '' "pipewire/pipewire.conf.d/combined-outputs.conf".text = ''
context.modules = [
{ name = libpipewire-module-combine-stream
args = {
combine.mode = sink
node.name = "combine_sink"
node.description = "Sortie combinée"
combine.latency-compensate = true
combine.props = {
audio.position = [ FL FR ]
}
stream.props = {
}
stream.rules = [
{ {
"context.exec": [ matches = [
# any of the items in matches needs to match, if one does,
# actions are emited.
{ {
"args": "load-module module-combine-sink sink_name=\"Sorties combinées\"", # all keys must match the value. ! negates. ~ starts regex.
"path": "pactl" #node.name = "~alsa_input.*"
media.class = "Audio/Sink"
}
]
actions = {
create-stream = {
#combine.audio.position = [ FL FR ]
#audio.position = [ FL FR ]
}
}
} }
] ]
} }
}
]
''; '';
}; };
security.rtkit.enable = true; # Real-time support for pipewire security.rtkit.enable = true; # Real-time support for pipewire