Raymai97 / VMAudioBack

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

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

Open MrPepka opened 2 years ago

MrPepka commented 2 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 2 years ago

Hi @MrPepka

When you play a MP3 file using Windows Media Player in Windows XP, is the sound still distorted?

MrPepka commented 2 years ago

Yes, the sound is also distorted then

Raymai97 commented 2 years ago

Hi @MrPepka

Could you try below steps in your Windows XP: 1) Kill VMAudioBack process (if it's already running). 2) Go to the folder of VMAudioBack, find the file "SET_TIMER_RES_INSTEADD", rename it to "SET_TIMER_RES_INSTEAD". 3) Double-click VMAudioBack to run it, then check if the sound is still distorted.

MrPepka commented 2 years ago

Earlier I changed the name of this file but still the sound is distorted even as your program is running in the background

Raymai97 commented 2 years ago

Hi @MrPepka

I can reproduce your issue in VMware Workstation 16.2.0 but not in 16.1.2. Could you verify whether your WinXP sound is good in VMware Workstation 16.1.2?

nguyenthienminh commented 2 years ago

I also got the problem. I checked it and I happened to use 16.2.0. Thanks!

TP555 commented 2 years ago

Hi

For me works that fine with Vmware Player 16.2.1 build-18811642 ! (Host OS: Windows 8.1)

I have Windows XP SP3 with the SB 128PCI Drivers from Vogons http://vogonsdrivers.com/getfile.php?fileid=370&menustate=0

After install that Driver and run VMAudioback , no Sound Problems anymore.

ok , i had never this Crackling Sound , i had more Cut or too Fast Sound , when the Sound Quick Repeat ! Like the XP Volume Panel , and Click on the Volume. !

May it works better with the latest VmWare Player or the SB128 PCI Drivers. !

MrPepka commented 2 years ago

OK, it's been a few months since my submission, it's time for a small update: Well, the update is that I still have distorted audio (despite the SB PCI 128 driver and this fix), but I discovered something strange. Namely, the sound is only distorted in the system. After starting any game in full screen, the sound is OK, but the sound in the system is distorted, no matter if it's the system sound, the sound from a movie played on YT in the browser or something else Anyone have any idea?

Raymai97 commented 2 years ago

Hi @MrPepka

I'm still waiting your response on this.

Could you verify whether your WinXP sound is good in VMware Workstation 16.1.2?

Please provide below test result for your XP SP3 guest. 1) Workstation 16.1.2 a) Native (without VMAudioBack) b) VMAudioBack + "SET_TIMER_RES_INSTEADD" c) VMAudioBack + "SET_TIMER_RES_INSTEAD"

2) Workstation 16.2.3 a) Native (without VMAudioBack) b) VMAudioBack + "SET_TIMER_RES_INSTEADD" c) VMAudioBack + "SET_TIMER_RES_INSTEAD"

Also, what host OS are you using? Windows 10 version 21H2?

MrPepka commented 2 years ago

I have Windows 10 21H2. Audio on XP works on older versions of VMWare, but I would prefer it to run on the latest version of VMWare ;)

Raymai97 commented 2 years ago

I have Windows 10 21H2. Audio on XP works on older versions of VMWare, but I would prefer it to run on the latest version of VMWare ;)

Your response is too general. Do you mean:

Workstation 16.1.2 a) Native (without VMAudioBack) = Bad b) VMAudioBack + "SET_TIMER_RES_INSTEADD" = OK c) VMAudioBack + "SET_TIMER_RES_INSTEAD" = OK

Workstation 16.2.3 a) Native (without VMAudioBack) = Bad b) VMAudioBack + "SET_TIMER_RES_INSTEADD" = Bad c) VMAudioBack + "SET_TIMER_RES_INSTEAD" = Bad

If any of these "Bad" are different in any way, please do state.

MrPepka commented 2 years ago

Yes, in the older version of VMWare VMAudioBack correctly restores sound in XP, no matter if with SET_TIMER_RES_INSTEADD or with SET_TIMER_RES_INSTEAD

MrPepka commented 2 years ago

OK so VMWare got it updated today and found the sound in XP broken on both VMWare versions (16.1.2 and 16.2.3). No matter if I set SET_TIMER_RES_INSTEADD or SET_TIMER_RES_INSTEAD

Raymai97 commented 2 years ago

Hi everyone,

I clean-installed my Win10 and install VMware Workstation 16.2.3 straight after installed essential drivers, and I do not hit any sound issue in Windows 2000/XP guest OS without running VMAudioBack. I think that after 16.2, there are some internal changes that affect this issue. It seems to me that:

Not really sure what's going on here.

Raymai97 commented 2 years ago

Hi @MrPepka

When your XP guest OS sound is distorted again, could you run "dxdiag" in XP guest OS and check again the sound?

MrPepka commented 2 years ago

Same. Well, I will have to get over this sound somehow :(

Raymai97 commented 2 years ago

Hi @MrPepka

I started to suspect maybe your XP guest is messed up somehow... In earlier post, I noticed you mentioned about SB PCI 128. Did you changed something at your side before? FYI, I'm using the default sound driver: image

Could you create new VM, perform a clean installation of Windows XP SP3 Pro? Let's say the sound is still distorted, try grab a copy of Windows ME ISO, create a new VM of it, finish the installation until it reaches the Desktop. Then let WinME run in background, and check the sound of your newly-created XP SP3. I know this sounds a bit bizarre, but this was the alternative I used to use back then.

mina354 commented 2 years ago

I have the same issue. I tried everything to make it work, but it always fails. The sound driver is left default. It doesn't work in Windows 2000 either. I use VMware Workstation 16.2.3 here.

matti157 commented 2 years ago

Same issue for me, fresh install of XP Mediacenter

hifinerd commented 2 years ago

Same, running an install of XP Pro upgraded from 2000.

nguyenthienminh commented 2 years ago

Same with XP x64 right now.

Annunaki commented 2 years ago

Not working here host win 11 and vmw 16 player guest win 2k server.

Smart123s commented 2 years ago

Same here, but issue disappears if I disable Hyper-V / Virtual Machine Platform on host.

Annunaki commented 2 years ago

I gave up with running vmware on my AMD Ryzen system as I didn't have just audio issues but also gfx issues too the performance was shocking. I'm now using vmware with my Intel i7 system with no issues and great performance and don't even need any 3rd party software.

Smart123s commented 2 years ago

I've had the same issues with a Ryzen 5 5500U and an Intel i5 4440.

nguyenthienminh commented 2 years ago

Same here, but issue disappears if I disable Hyper-V / Virtual Machine Platform on host.

Interesting... I tried disabling both of them, but that doesn't help with the sound issues. Plus, Virtual Machine Platform is required for some Windows features, so I'm not risking it either.

mina354 commented 2 years ago

The only workaround to keep the sound working in VMware VM is opening a VirtualBox VM running in the background. Otherwise, the sound would distort automatically and immediately.

Raymai97 commented 2 years ago

Hi everyone,

I'm sorry for not updating for a while on this issue. I was not able to reproduce this issue anymore. I can only say that, since VMware Workstation 16.2, things started to get unpredictable somehow.

For those who are having issue, could you try to install Windows ME on your VMware Workstation? Try to see what happen if Windows ME is running in background while your Windows 2000/XP is running. Would it help resolving the sound issue?

PS: While Windows ME could be terrible on some physical PC, it is one of the rare OS that runs very well on VMware Workstation right after clean installation, with display driver and sound driver working just fine out-of-the-box. Also it's abandonware and easy to find ISO online.

Smart123s commented 2 years ago

I've started a win95 vm (which on it's own has the same sound problems), then statred xp (while 95 was still running), but the issue persisted.

Raymai97 commented 2 years ago

@Smart123s Could you share your "Windows Features" list? This is mine. image

Smart123s commented 2 years ago

@Raymai97 here you go:

EDIT: also, sound is fixrd, if I turn off Virtual Machine Platform, but I need it for wsl

image
Raymai97 commented 2 years ago

@Smart123s Thanks, I think this could be one of popular causes for VMware sound issue. As soon as I enabled Virtual Machine Platform and WSL, the sound issue would consistently happen for all WinME, WinXP and Vista guest OS.

image

@mina354 Do you have same Windows Features enabled?

nguyenthienminh commented 2 years ago

I certainly had the same set of features, and the sound issue happens on the XP VM every single time. Still, I need VM platform for the Android Subsystem and the Linux Subsystem on Windows to work.

nikos1988 commented 2 years ago

I just installed 16.2.4. The issue is still present on Windows 11 host with VM platform enabled. My workaround is also to run a small Debian VM in VirtualBox. Then the audio in VMware is fine.

Raymai97 commented 2 years ago

With "Virtual Machine Platform" enabled, I can confirm that starting any machine in latest VirtualBox would resolve sound issue in VMware. If I could find out and simplify the critical ingredient on this, maybe I can develop VMAudioBack for Windows host machine.

https://user-images.githubusercontent.com/3296077/180454324-69f63fa7-3603-4354-a084-5b29a005a6d8.mp4

mina354 commented 2 years ago

@mina354 Do you have same Windows Features enabled?

No. image

Raymai97 commented 2 years ago

Hi everyone,

For those who enabled anything related to

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:

https://user-images.githubusercontent.com/3296077/180589411-73f655ae-8bfa-447a-8d7f-ef65f0eb953e.mp4

Raymai97 commented 2 years ago

Hi @MrPepka @mina354 @matti157 @hifinerd @nguyenthienminh @Smart123s @Annunaki,

Any feedback?

Smart123s commented 2 years ago

Works perfectly. The xp boot sound was crystal clear. I didn't even have VMAudioBack or anything installed other than VMware tools.

EDIT: more info: Sound becomes buggy when I stop the virtualbox vm but return to nomral when (the virtualbox vm) starts booting again. Xp was playing music in vmware without any interaction. So I had the same results as shown in the video.

mina354 commented 2 years ago

Hi @MrPepka @mina354 @matti157 @hifinerd @nguyenthienminh @Smart123s @Annunaki,

Any feedback?

I get these errors when I try to run VMAB.cmd. I have VirtualBox 6.1.36 installed. image

nikos1988 commented 2 years ago

Hi @MrPepka @mina354 @matti157 @hifinerd @nguyenthienminh @Smart123s @Annunaki,

Any feedback?

Hi, works flawless for me

nguyenthienminh commented 2 years ago

Hi @MrPepka @mina354 @matti157 @hifinerd @nguyenthienminh @Smart123s @Annunaki,

Any feedback?

Well, the sound worked flawlessly on the XP VM when running a VBox VM in the background. I set my own script (that runs the VBox VM in headless mode) to always run at startup, and that fixes the sound entirely.

Raymai97 commented 2 years ago

Hi @mina354

I get these errors when I try to run VMAB.cmd. I have VirtualBox 6.1.36 installed. image

This is weird.

1) Have you tried starting a VirtualBox VM in normal mode manually?

2) Have you tried starting a VirtualBox VM in headless mode manually?

image

3) Have you tried reinstalling VirtualBox as per the message?

mina354 commented 2 years ago

Hi @mina354

I get these errors when I try to run VMAB.cmd. I have VirtualBox 6.1.36 installed. image

This is weird.

  1. Have you tried starting a VirtualBox VM in normal mode manually?
  2. Have you tried starting a VirtualBox VM in headless mode manually?

image

  1. Have you tried reinstalling VirtualBox as per the message?

Sorry for late reply.

  1. Yes, it works.
  2. Yes, but I get an error: image
  3. Not yet, but will do. Edit: Yes, but it changed nothing.
SmilerRyan 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:

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

https://user-images.githubusercontent.com/14893385/196598025-ad216828-84a2-4f73-8e20-70664ab11fb1.mp4

cyrusirandoust 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](https://github.com/Raymai97/VMAudioBack/files/9173029/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: Untitled.mp4

Everyone, I can confirm this works for Win98 SE as Guest on VMWare 16.2.4 build-20089737 installed on Win11 22H2 22621.755. It seems all old Windows on VMWare after 16.1 have this issue.

Note: I have never installed the patch from this repo. Just saw this issue thread and randomly tried this solution and it worked. Maybe that's an idea for a future patch? Root cause is unknown. Maybe a good start will be to check VMWare 16.2 change-log?

Raymai97 commented 1 year ago

Summary Update

Now, if anyone is capable and willing to find out how starting up VirtualBox VM could fix VMware ES1371 sound, it would be highly appreciated.

jed84 commented 1 year ago

Today I faced the exact issues. I spent a few hours and I randomly found out that running VM in oracle fixes the problem, so the solution provided above is working. But is there any better way to fix the issue?

Uninstalling the following didn't fix my problem:

Raymai97 commented 1 year ago

Hi @jed84

Maybe the hypervisor is enabled in BCD boot config? Could you try execute below command to turn off hypervisor? bcdedit /set {current} hypervisorlaunchtype off

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