libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.16k stars 1.82k forks source link

[Windows] Default audio driver (xaudio) requires directx 9.0c #12336

Open hizzlekizzle opened 3 years ago

hizzlekizzle commented 3 years ago

Description

Since directx 9.0c is getting older all the time, and fewer modern games require it, it's becoming increasingly less likely that users have it installed on their system. So, when they first start RetroArch, the games run too fast and without any sound, and the first thing we have to tell them to do is go mess around with their drivers, which is very "dangerous" (that is, prone to n00b errors, and those errors can be a "game over" situation that leads to a broken installation that requires manually editing the config file in a text editor, etc. etc.).

Expected behavior

The default settings should put safety and compatibility ahead of performance and should at least work on as many setups as possible.

Actual behavior

Many new users' first experience is a semi-broken one that requires immediate support to resolve.

Steps to reproduce the bug

  1. Install Windows 10
  2. Launch RetroArch
  3. Load a game -> it runs too fast and you have no sound

Bisect Results

always

Version/Commit

You can find this information under Information/System Information

Environment information

@twinaphex

hizzlekizzle commented 3 years ago

This longstanding issue is not exactly related, but having such a common occurrence (e.g., un/plugging headphones) cause a crash on default settings is probably not great, either: https://github.com/libretro/RetroArch/issues/10571

Invictaz commented 3 years ago

But not everyone runs Windows 10. Exactly my use case is that some games do not run on Windows 10 perfectly fine and 9.0c is used together with my GPU. So removing directx 9.0c support would mean that I cannot use my videocard anymore?

Or is this something different?

hizzlekizzle commented 3 years ago

This wouldn't mean removing support for dx9, just changing the default audio driver to something that doesn't require it, since it's becoming less common for users to have it installed already. It will not affect your video driver/card.

AaronMT commented 1 year ago

From a personal general user perspective, I had to search around online for what the problem was. I migrated my installation to a fresh Windows 11 install and experienced this problem. As there is no documentation of this issue or workaround, I had to rely on a post from Reddit. Only later did I do some digging into the issue list here.

https://www.reddit.com/r/RetroArch/comments/volfmd/windows_11_no_sound_at_all/

Vinfall commented 1 year ago

Any plan to solve this? I thought DirectX 9.0c was released in 2004.🤔️ My current workaround is switching to wasapi exclusive mode (sadly shared mode does not work for me), but this would surely mutes all other programs.