• 0 Posts
  • 25 Comments
Joined 1 year ago
cake
Cake day: August 2nd, 2023

help-circle














  • So I personally use two computers on a daily basis, a personal desktop I use all day long, and a laptop I use during work hours. Both are running Linux with pipewire and the pipewire-pulseaudio extension. I do my best to keep everything work related on the work device and everything personal on the personal device, so discord chats with friends stay on the personal machine etc. I occasionally need to participate in work meetings and the like, so I would like my audio interface to be shared between the two devices. Turns out this is exceptionally simple.

    On my “host” machine with the audio interface I always use I have a pipewire config file at /etc/pipewire/pipewire-pulse.conf.d/50-network-party.conf that contains

    context.exec = [
        { path = "pactl" args = "load-module module-native-protocol-tcp listen=0.0.0.0" }
        { path = "pactl" args = "load-module module-zeroconf-discover" }
        { path = "pactl" args = "load-module module-zeroconf-publish" }
    ]
    

    And on my work laptop I similarly just load the module-zeroconf-publish module. Once that’s done all of my desktop’s audio devices show up on the work laptop and I can set them as my defaults, and everything just works! Didn’t even require installing any extra software or anything, both systems worked out of the box when I learned about this module.

    As for using my desktop’s audio devices for my phone, turns out pulseaudio also supports connecting android devices using a2dp and simply pairing my phone and computer had my phone streaming its audio to my desktop and using its microphone for calls. Honestly wish I’d looked in to this sooner, having everything going through my desktop’s audio setup is so nice.