Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4151

Graphics, sound and multimedia • Re: Make Pipewire read /etc/pulse/default.pa on initialization

$
0
0
For future visitors, I solved this by doing the below. I'm sure there is a "pipewire" configuration way to do this as well (If you know, please share). I tried a few things but couldn't get it to work.

Code:

mkdir -p ./.config/pipewire/pipewire-pulse.conf.dnano ./.config/pipewire/pipewire-pulse.conf.d/custom.conf
add the below in the file

Code:

context.exec = [  { path = "/usr/bin/pactl" args = "load-module module-remap-sink sink_name=mono_left channels=2 master=alsa_output.platform-bcm2835_audio.stereo-fallback master_channel_map=front-left,front-right channel_map=mono,mono remix=no" }]
Here is the configuration I couldn't get to work that is pipewire configuration. If someone could help improve this. This was put in the same custom.conf file I created above.

Code:

context.objects = [    {        factory = adapter        args = {            factory.name            = "support.null-audio-sink"            node.name               = "mono_left"            media.class             = "Audio/Sink"            object.linger           = true            audio.channels          = 2            audio.position          = [ MONO MONO ]            node.description        = "Mono Left"            audio.format            = "S16LE"            audio.rate              = 48000            audio.position-map      = [ "FL", "FR" ]            audio.position          = [ "MONO", "MONO" ]            node.target             = "alsa_output.platform-bcm2835_audio.stereo-fallback"        }    }]

Statistics: Posted by scottn20 — Fri Aug 09, 2024 10:58 pm



Viewing all articles
Browse latest Browse all 4151

Trending Articles