Skip to content

Instantly share code, notes, and snippets.

@Stormwind99
Last active January 10, 2021 19:14
Show Gist options
  • Save Stormwind99/e5ffc026a44ec2374f92864652d94854 to your computer and use it in GitHub Desktop.
Save Stormwind99/e5ffc026a44ec2374f92864652d94854 to your computer and use it in GitHub Desktop.
Install PulseAudio systemwide as a Windows service

Steps

  1. Install cygwin - include pulseaudio and cygrunsrv
  2. Configure /etc/pulse/* as required for use case (load-module module-native-protocol-tcp for example)
  3. Copy auth cookie to /home/SYSTEM/.config/pulse/cookie
  4. To install service, run: cygrunsrv -I PulseAudio -p /usr/bin/pulseaudio.exe -a "--exit-idle-time=9999999999999 --realtime --disallow-exit --daemonize=no --no-cpu-limit"
  5. Start PulseAudio service
  6. Open PulseAudio port (4713) in Windows Firewall as appropriate (local network, for example)

References

  1. https://stackoverflow.com/questions/52704903/running-cygwin-application-as-a-windows-service
  2. https://gist.github.com/awidegreen/6003640
  3. https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/
  4. http://web.mit.edu/cygwin/cygwin_v1.3.2/usr/doc/Cygwin/cygrunsrv.README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment