Samuel Shuert | ea0f92f | 2024-09-15 00:10:13 -0400 | [diff] [blame^] | 1 | {...}: { |
| 2 | services.pipewire.extraConfig.pipewire."new-virtual-devices" = { |
| 3 | "context.modules" = [ |
| 4 | { |
| 5 | name = "libpipewire-module-combine-stream"; |
| 6 | args = { |
| 7 | "combine.mode" = "sink"; |
| 8 | "node.name" = "output"; |
| 9 | "node.description" = "Combined Outputs"; |
| 10 | "combine.latency-compensate" = false; |
| 11 | "combine.props" = { |
| 12 | "audio.position" = [ "FL" "FR" ]; |
| 13 | }; |
| 14 | "stream.props" = { |
| 15 | "stream.dont-remix" = true; |
| 16 | }; |
| 17 | "stream.rules" = [ |
| 18 | { |
| 19 | matches = [ |
| 20 | { |
| 21 | "media.class" = "Audio/Sink"; |
| 22 | "node.name" = "alsa_output.usb-NXP_SEMICONDUCTORS_Razer_Kraken_V3_Pro-00.analog-stereo"; |
| 23 | } |
| 24 | { |
| 25 | "media.class" = "Audio/Sink"; |
| 26 | "node.name" = "alsa_output.usb-R__DE_RODECaster_Duo_IR0023015-00.analog-stereo"; |
| 27 | } |
| 28 | ]; |
| 29 | actions = { |
| 30 | create-stream = { |
| 31 | "audio.position" = [ "FL" "FR" ]; |
| 32 | "combine.audio.position" = [ "FL" "FR" ]; |
| 33 | }; |
| 34 | }; |
| 35 | } |
| 36 | ]; |
| 37 | }; |
| 38 | } |
| 39 | ]; |
| 40 | }; |
| 41 | } |