context.objects = {
adapter = {
args = {
factory.name = api.alsa.pcm.sink # The ALSA sinks object on Pipewire
node.name = line_output # A name for the device
node.description = "Line Output" # A visible name for the device in the tray (mandatory quotes)
media.class = Audio/Sink # Another sink parameter on Pipewire
api.alsa.path = "hw:PCH,0" # Finally the sink location. Quotes are mandatory.
}
}
adapter = {
args = {
factory.name = api.alsa.pcm.source # Here we did the same thing, just change "sink" to "source" and the names.
node.name = microphone_input
node.description = "Microphone Input"
media.class = Audio/Source
api.alsa.path = "hw:PCH,0"
}
}
adapter = {
args = {
factory.name = api.alsa.pcm.source
node.name = line_input
node.description = "Line Input"
media.class = Audio/Source
api.alsa.path = "hw:PCH,2"
}
}
}