📜  PULSEUADIO 到 PIPEWIRE default.pa -> pipewire.conf - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:47.981000             🧑  作者: Mango

代码示例1
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"
        }
    }
}