Wong's Cafe
2023-02-20 (Updated 2023-06-10)
I use steam in a arch linux chroot to avoid gentoo's x86 depencency hell, although ALSA inside the chroot works, it doesn't support advanced features like bluetooth, usb output and more.
In this article, I talk about how to configure pipewire in chroot to achieve features mentioned above.
My host system runs pipewire, which is a client-server model software. So, we only have to install pipewire as a client in the chroot, and make the client connect to pipewire daemon on host OS.
Just install required software according to the wiki for your distro, in my case, it's at arch wiki
follow the steps and you should be fine.
I use gentoo as host, and they have detailed explanation here, which seems applicable for most linux distros.
And that's all, to test that, run wpctl status
as a normal user in chroot, and you should see that by changing the setting in host side, it also changes settings in chroot.