1 Pass audio through to Pulseaudio in host OS
Filippo Squillace edited this page 2021-09-07 22:17:32 +02:00
  • Run netstat on the host to determine where PulseAudio keeps its sockets:
~ # netstat -lnp | grep pulseaudio
unix  2      [ ACC ]     STREAM     LISTENING      22035 3813/pulseaudio     /run/user/1000/pulse/dbus-socket
unix  2      [ ACC ]     STREAM     LISTENING      22037 3813/pulseaudio     /run/user/1000/pulse/native

/run/user/1000/pulse/native is what we need.

  • Now, run junest and bind the socket:
junest -b "--bind /run/user/1000/pulse/native /path/to/.junest/run/pulse/native"
  • Within junest use the PULSE_SERVER variable to tell applications where to find the socket: export PULSE_SERVER=unix:/path/to/.junest/run/pulse/native

Taken from the issue (kudos @smtnsk): https://github.com/fsquillace/junest/issues/264