I use a third party program that plays a sound using winmm.dll. The program no longer plays the sounds.
So, I wrote a quick .net test program to validate the problem. It does work on my Win10 surface pro, but NOT on my Windows 11 Desktop! I tried downloading an older version (10.0.18362.1) but that did not help. I used a simple .wav file.