You are not logged in.

#1 2021-09-25 11:19:18

bjornp_
Member
Registered: 2020-12-31
Posts: 42

PipeWire only allowing one coupled stream to work

I have an Audient iD44 which is capable of 20 output and 22 input channels of audio. Because of this I want to create reroutes within pipewire so that I can output only to output 0 and 1 and input from only input 0 (my stereo speakers and my microphone, respectively). On pulse this was doable with config options, and it should also be the case on pipewire. I added this to my config to achieve the reroutes I want:

{   name = libpipewire-module-loopback
    args = {
        node.name = "Audient iD44 Stereo"
        node.description = "Audient iD44 Stereo"
        capture.props = {
            media.class = "Audio/Sink"
            audio.position = [ FL FR ]
        }
        playback.props = {
            audio.position = [ AUX0 AUX1 ]
            node.target = "alsa_output.usb-Audient_Audient_iD44-00.pro-output-0"
            stream.dont-remix = true
            node.passive = true
        }
    }
}  

{   name = libpipewire-module-loopback
    args = {
        node.name = "Audient iD44 Ch1"
        node.description = "Audient iD44 Ch1"
        capture.props = {
            audio.position = [ AUX0 ]
            stream.dont-remix = true
            node.target = "alsa_input.usb-Audient_Audient_iD44-00.pro-input-0"
            node.passive = true
        }
        playback.props = {
            media.class = "Audio/Source"
            audio.position = [ MONO ]
        }
    }
}

Note: I have the audio interface configured as a pro-audio device in pipewire so that AUX<x> maps to channel <x> on my iD44.

The problem with this is that only one of them works at a time. The stereo output works fine, but when I'm playing anything back, I cannot use the microphone until I restart pipewire. If I use the microphone first, the mapping between the stereo sink and the audio device fails and so I cannot listen to audio anymore. How can I fix this?


Fun fact: I actually have no clue what I'm doing

Offline

Board footer

Powered by FluxBB