sunshine icon indicating copy to clipboard operation
sunshine copied to clipboard

Audio passthrough not working [Pipewire]

Open YourSandwich opened this issue 2 years ago • 9 comments

Hi :)

Currently audio passthrough is not working using pipewire. It always passthroughs the microphone not careing about my config. It worked some time ago on pipewire. It may be caused by some pipewire chanegs.

Pipewire version 0.3.42 It worked probably at around 0.3.20

Best Regards, Sandwich

YourSandwich avatar Dec 30 '21 13:12 YourSandwich

I'm also in the same issue.

I have set the option Audio Sink to the same default output alsa_output.pci-0000_00_1f.3.analog-stereo on sunshine, but strangely, it will only record input stream from my microphone, which seems just like Audio Sink being setting to alsa_input.pci-0000_00_1f.3.analog-stereo.

After recent update, I can record output stream from applications on OBS correctly. The case of OBS before I update is similar to sunshine, in which I can only either record stream from my microphone or nothing.

There is the information of my audio devices:

$ pw-play --list-targets

Available targets ("*" denotes default): alsa_output.pci-0000_00_1f.3.analog-stereo
*       31: sink description="Built-in Audio Analog Stereo" prio=1009
$ pw-record --list-targets

Available targets ("*" denotes default): alsa_input.pci-0000_00_1f.3.analog-stereo
*       32: source description="Built-in Audio Analog Stereo" prio=2009
31: sink description="Built-in Audio Analog Stereo" prio=1009
58: stream description="PipeWire ALSA [plasmashell]" prio=-1

AngelSherry avatar Jan 14 '22 20:01 AngelSherry

I'm also in the same issue.

I have set Audio Sink to the same default output alsa_output.pci-0000_00_1f.3.analog-stereo on sunshine, but strangely, it will only record input stream from my recorder, which seems just like Audio Sink being setting to alsa_input.pci-0000_00_1f.3.analog-stereo.

After recent update, I can record output stream from applications on OBS correctly. The case of OBS before I update is similar to sunshine, in which I can only either record stream from my recorder or nothing.

Exactly, has similar issues with OBS.

YourSandwich avatar Jan 14 '22 20:01 YourSandwich

I'm also in the same issue. I have set Audio Sink to the same default output alsa_output.pci-0000_00_1f.3.analog-stereo on sunshine, but strangely, it will only record input stream from my recorder, which seems just like Audio Sink being setting to alsa_input.pci-0000_00_1f.3.analog-stereo. After recent update, I can record output stream from applications on OBS correctly. The case of OBS before I update is similar to sunshine, in which I can only either record stream from my recorder or nothing.

Exactly, has similar issues with OBS.

Since I updated recently, the issue of OBS seems to be gone. Now I can record from both sound of system and microphone.

I have to say though pipewire is awesome, it is still unstable. And it may mess everything up easily.

AngelSherry avatar Jan 14 '22 20:01 AngelSherry

I'm also in the same issue. I have set Audio Sink to the same default output alsa_output.pci-0000_00_1f.3.analog-stereo on sunshine, but strangely, it will only record input stream from my recorder, which seems just like Audio Sink being setting to alsa_input.pci-0000_00_1f.3.analog-stereo. After recent update, I can record output stream from applications on OBS correctly. The case of OBS before I update is similar to sunshine, in which I can only either record stream from my recorder or nothing.

Exactly, has similar issues with OBS.

Since I updated recently, the issue of OBS seems to be gone. Now I can record from both sound of system and microphone.

I have to say though pipewire is awesome, it is still unstable. And it may mess everything up easily.

I love Pipewire but some updates sucks like in this case. Do you use arch? Is the issue also gone for you in sunshine?

YourSandwich avatar Jan 14 '22 21:01 YourSandwich

I'm also in the same issue. I have set Audio Sink to the same default output alsa_output.pci-0000_00_1f.3.analog-stereo on sunshine, but strangely, it will only record input stream from my recorder, which seems just like Audio Sink being setting to alsa_input.pci-0000_00_1f.3.analog-stereo. After recent update, I can record output stream from applications on OBS correctly. The case of OBS before I update is similar to sunshine, in which I can only either record stream from my recorder or nothing.

Exactly, has similar issues with OBS.

Since I updated recently, the issue of OBS seems to be gone. Now I can record from both sound of system and microphone. I have to say though pipewire is awesome, it is still unstable. And it may mess everything up easily.

I love Pipewire but some updates sucks like in this case. Do you use arch? Is the issue also gone for you in sunshine?

Yep, but I'm still in this case in sunshine.

AngelSherry avatar Jan 15 '22 04:01 AngelSherry

Same here. I noticed however that In pavucontrol - in the input device tab, if I change the fallback to "monitor of sink-sunshine-stereo" it works correctly.

ghostface avatar Feb 04 '22 16:02 ghostface

Same here. I noticed however that In pavucontrol - in the input device tab, if I change the fallback to "monitor of sink-sunshine-stereo" it works correctly.

Thanks a lot. This worked for me

akhil-rana avatar Mar 18 '22 15:03 akhil-rana

@ghostface epic thaks.

YourSandwich avatar Mar 18 '22 16:03 YourSandwich

Just wanted to add this little tidbit here that if I run the following before starting a stream:

pactl load-module module-null-sink media.class=Audio/Duplex sink_name=sink-sunshine-stereo audio.position=FL,FR

I can go into my sound settings and switch the output to "sink-sunshine-stereo" and everything works swell.

sirrkitt avatar Apr 05 '22 07:04 sirrkitt