Raymai97 / VMAudioBack

Workaround for VMware guest OS Audio Distortion (Windows) that run natively in Win2k and XP without needing DotNet framework.
80 stars 7 forks source link

Doesn't work in latest VMWare Workstation Player 16 #3

Open MrPepka opened 3 years ago

MrPepka commented 3 years ago

Unfortunately, your fix is completely down. The program starts, but despite its presence in the system, the sound is still distorted. I have Windows XP Professional SP3 PL and used version 1.2 of your program. What to do?

Raymai97 commented 1 year ago

Hi everyone, For those who enabled anything related to

  • Windows Subsystem for Linux
  • Windows Sandbox
  • Windows Hypervisor Platform
  • Virtual Machine Platform
  • Hyper-V

Please try this out and feedback.

  1. Install VirtualBox 6.1.36 (if not installed).
  2. Download the ZIP, extract to a folder that is easily accessible. VMAudioBack for Host (20220723-alpha-r1).zip
  3. Run "VMAB.cmd" and observe your VMware guest OS sound.

This is how it worked on my machine:

Why does this work 😅? been looking for a "solution" for months

I'm not sure why it worked for me. Did it worked for you?

Johs95 commented 1 year ago

Hi everyone, For those who enabled anything related to

  • Windows Subsystem for Linux
  • Windows Sandbox
  • Windows Hypervisor Platform
  • Virtual Machine Platform
  • Hyper-V

Please try this out and feedback.

  1. Install VirtualBox 6.1.36 (if not installed).
  2. Download the ZIP, extract to a folder that is easily accessible. VMAudioBack for Host (20220723-alpha-r1).zip
  3. Run "VMAB.cmd" and observe your VMware guest OS sound.

This is how it worked on my machine:

Why does this work 😅? been looking for a "solution" for months

I'm not sure why it worked for me. Did it worked for you?

It did :)

samtaylorr commented 1 year ago

Hi everyone, For those who enabled anything related to

  • Windows Subsystem for Linux
  • Windows Sandbox
  • Windows Hypervisor Platform
  • Virtual Machine Platform
  • Hyper-V

Please try this out and feedback.

  1. Install VirtualBox 6.1.36 (if not installed).
  2. Download the ZIP, extract to a folder that is easily accessible. VMAudioBack for Host (20220723-alpha-r1).zip
  3. Run "VMAB.cmd" and observe your VMware guest OS sound.

This is how it worked on my machine:

Why does this work 😅? been looking for a "solution" for months

I'm not sure why it worked for me. Did it worked for you?

It did :)

Can confirm this also worked for me. I have absolutely no clue how this witchcraft works but thank you?

fizdog commented 1 year ago

Hi everyone, For those who enabled anything related to

  • Windows Subsystem for Linux
  • Windows Sandbox
  • Windows Hypervisor Platform
  • Virtual Machine Platform
  • Hyper-V

Please try this out and feedback.

  1. Install VirtualBox 6.1.36 (if not installed).
  2. Download the ZIP, extract to a folder that is easily accessible. VMAudioBack for Host (20220723-alpha-r1).zip
  3. Run "VMAB.cmd" and observe your VMware guest OS sound.

This is how it worked on my machine:

Why does this work 😅? been looking for a "solution" for months

I'm not sure why it worked for me. Did it worked for you?

It did :)

Can confirm this also worked for me. I have absolutely no clue how this witchcraft works but thank you?

couldnt find the original comment so i am using this one to say it worked for me. using wmare 17 workstation pro. host is windows 11. thanks! i can now finally use winxp in wmare :)

edit: upon further testing, using the speaker icon and changing volume it sounds normal. I played a youtube video and it sounds like someone is pressing pause and play multiple times. it was a lot worse than it is now playing youtube videos.

edit2: a mp3 i copied over worked fine. so maybe it has to do with the browser i am using "360Chrome"

unbreakify commented 1 year ago

Using VMWare, doesn't seem to work anymore. I've tried looking everywhere for help.

S0m3Th1nG-AwFul commented 1 year ago

Hi everyone, For those who enabled anything related to

  • Windows Subsystem for Linux
  • Windows Sandbox
  • Windows Hypervisor Platform
  • Virtual Machine Platform
  • Hyper-V

Please try this out and feedback.

I have all of these Windows Features enabled, except WSL. This VMAB patch does work perfectly for me, unlike:

  • Running music in WMP Minimized
  • Opening VMAudioTrayFix
  • Installing SetTimerService
  • VMAudioBack v1.2

Host OS: Windows 11 Build 22621.674 VirtualBox: version v7.0.0 + extension pack VMware Workstation: v16.2.4 build-20089737

Here's a copy of the version I'm now using. I've changed the cmd file a little: VMABH.zip

8mb.video-kgG-dwcHxkXz.mp4

Hello! I can confirm, that this trickery works with VirtualBox 7.0.8, VMware Workstation Pro 17.0.2, Windows 11 22h2 (10.0.22621.1702). Win98 and WinXP finally started to sound as intended. Before that even having disabled WSL, WS, WHP, WMP, HV didn't help at all.

HTS126 commented 1 year ago

Also tested with Windows 11 22H2, VirtualBox 7.0.8 and VMware Workstation Pro 17.0.2 and Windows XP is now working with no changes needed. I've been trying to solve this problem for over a year as I needed to use virtual machines as part of my computer science degree!

Seems very strange that it works, but I'm glad it does! I noticed that playing a 10 second audio file actually takes XP 13 seconds when VirtualBox is not running, causing the slow down/crackle effect, but plays at normal speed when using this! I might spend more time looking into it and see if I can spot what's happening!

My only thought so far is that I read when Windows Virtualisation is enabled, every virtual platform is forced to use Hyper-V rather than their own built-in one. I wonder if Virtualbox is somehow improving the Hyper-V performance, or maybe blocking VMware from using it so it uses it's own instead?

S0m3Th1nG-AwFul commented 1 year ago

I finally understood what's wrong in my case. 'Core isolation' feature, if enabled, also uses Virtualization technology implicitly (even if you have unchecked that one in optionalfeatures), which leds to that problems with sound on ancient OSes.

AbdellahPlays commented 1 year ago

have you guys found a fix for this issue i don't want to use virtualbox its very laggy pls help :( I'm using Vmware 17.0.0 pro

RibShark commented 11 months ago

This is an issue with timer resolution, see Windows Timer Resolution: The Great Rule Change. For me, the issue is completely fixed on Windows 11 with no other programs needed by setting the registry entry:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\kernel]
"GlobalTimerResolutionRequests"=dword:00000001

This entry doesn't work on Windows 10, so I think ideally a tool should be created to inject a timeBeginPeriod call into the relevant VMWare process.

jed84 commented 11 months ago

I added the above registry entry and restarted my machine (Win 11 23H2 - 22631). This resolved the problem with VMWare on my machine.

Raymai97 commented 11 months ago

This is an issue with timer resolution, see Windows Timer Resolution: The Great Rule Change. For me, the issue is completely fixed on Windows 11 with no other programs needed by setting the registry entry:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\kernel]
"GlobalTimerResolutionRequests"=dword:00000001

This entry doesn't work on Windows 10, so I think ideally a tool should be created to inject a timeBeginPeriod call into the relevant VMWare process.

Can confirm this fixed the sound issue on my side.

Host OS: Win11 23H2 (22631.2428) Guest OS: WinXP Pro SP3 (ES1371) Windows Features: image

Raymai97 commented 11 months ago

Hi everyone,

I have created a new repo for VMAudioBackHost. Please try out and feedback. https://github.com/Raymai97/VMAudioBackHost/

lunaticjohn commented 3 months ago

I have the same problem with my VMware workstation pro. When i use Kali Linux on the workstation sound keeps crackling when i try to play audio and videos. I try all the solutions in here and from other sources. Still facing the issue. Is there a fix that works?

mrpenguinb commented 2 months ago

I have the same problem with my VMware workstation pro. When i use Kali Linux on the workstation sound keeps crackling when i try to play audio and videos. I try all the solutions in here and from other sources. Still facing the issue. Is there a fix that works?

Make sure to have your virtual machine in question running, not just VMware, but an actual virtual machine. Then in VMAudioBackHost, select "Start". Each time you shutdown a virtual machine, you will have to press "Start" in VMAudioBackHost again (after starting an OS/virtual machine).