Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@ECHO OFF
SET "LINUXTMP=$(echo '%TMP:\=\\%' | sed -e 's|\\|/|g' -e 's|^\([A-Za-z]\)\:/\(.*\)|/mnt/\L\1\E/\2|')"
echo LINUXTMP = "%LINUXTMP%"
ECHO --- PulseAudio...
C:\Windows\System32\bash.exe -xc "wget -cO '%LINUXTMP%/pulseaudio.zip' 'http://bosmans.ch/pulseaudio/pulseaudio-1.1.zip'"
ECHO --- Extracting PulseAudio
md "%TMP%\pulseaudio"
C:\Windows\System32\bash.exe -xc "unzip -o '%LINUXTMP%/pulseaudio.zip' -d '%LINUXTMP%/pulseaudio'"
ECHO --- Installing PulseAudio
xcopy /e "%TMP%\pulseaudio" "%AppData%\PulseAudio\"
ECHO --- Setting PulseAudio to run at startup
echo set ws=wscript.createobject("wscript.shell") > "%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\start_pulseaudio.vbe"
echo ws.run "%AppData%\PulseAudio\bin\pulseaudio.exe --exit-idle-time=-1",0 >> "%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\start_pulseaudio.vbe"
REM Recomended/required settings
echo load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1 >> "%AppData%\PulseAudio\etc\pulse\default.pa"
"%userprofile%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\start_pulseaudio.vbe"
ECHO When prompted, DO NOT allow 'pulseaudio' access to any of your networks. It doesn't need access.
ECHO All Done
PAUSE
@NateDogg1232

This comment has been minimized.

Copy link

@NateDogg1232 NateDogg1232 commented Dec 29, 2017

Do not forget that this requires the unzip package, for all users checking this out

@sumeshmeena

This comment has been minimized.

Copy link

@sumeshmeena sumeshmeena commented Feb 12, 2020

I can't make it work, been trying for 2 days. I have tried everything but no sound. pls help

@trzecieu

This comment has been minimized.

Copy link
Owner Author

@trzecieu trzecieu commented Feb 12, 2020

Hi! I will take a look what's happening there. Can you please tell me what is your Windows version (Win+R: winver). So that I can install VM and test it.
I've switched entirely to Linux recently and I didn't follow fully what's changing there.
Cheers!

@sumeshmeena

This comment has been minimized.

Copy link

@sumeshmeena sumeshmeena commented Feb 12, 2020

I have version 2004 (build 19041.84), thanks for helping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment