xemu-project / xemu

Original Xbox Emulator for Windows, macOS, and Linux (Active Development)
https://xemu.app
Other
2.72k stars 271 forks source link

SDL_OpenAudioDevice fails with ASUS external soundcard #1217

Open krank opened 2 years ago

krank commented 2 years ago

Bug Description

Xemu silently crashes on startup if Asus Xonar U5 is the primary sound card in Windows. Soundblaster X-Fi Surround Pro (sb1095) worked fine, issue appeared after I switched to the new soundcard. I've tried various settings for the card (bit, hz etc), no change. Xemu launches fine if I set the windows primary sound card to my laptop's internal card.

Steps to reproduce:

Expected Behavior

Xemu should either launch with no sound or, ideally, Just Work™ with the external sound card.

xemu Version

Version: 0.7.66 Branch: master Commit: c2031108c5990d10173cd4d71b23b06b395d682a

System Information

OS: Windows 11 CPU: AMD Ryzen 9 5980HS 3.30 GHz GPU: Nvidia Geforce RTX 3080 Laptop GPU GPU Driver: 4.0.0 NVIDIA 516.59

Additional Context

Created QEMU launch parameters: C:[...]\Emulators\Xemu\Xemu\xemu.exe -machine xbox,bootrom=..\Common\Xbox BIOS\mcpx_1.0.bin,kernel-irqchip=off,avpack=hdtv -device smbus-storage,file=.\eeprom.bin -bios ..\Common\Xbox BIOS\Complex_4627v1.03.bin -m 64 -drive index=0,media=disk,file=..\Common\xbox_hdd.qcow2\xbox_hdd.qcow2,locked=on -drive index=1,media=cdrom,file=XXX.iso -display xemu -audiodev none,id=snd0 xemu_version: 0.7.66 xemu_branch: master xemu_commit: c2031108c5990d10173cd4d71b23b06b395d682a xemu_date: Mon Jul 25 17:47:29 UTC 2022 xemu_settings_get_path: config path: C:[...]\Emulators\Xemu\Xemu\xemu.toml CPU: AMD Ryzen 9 5980HS with Radeon Graphics
OS_Version: Windows GL_VENDOR: NVIDIA Corporation GL_RENDERER: NVIDIA GeForce RTX 3080 Laptop GPU/PCIe/SSE2 GL_VERSION: 4.0.0 NVIDIA 516.59 GL_SHADING_LANGUAGE_VERSION: 4.00 NVIDIA via Cg compiler SDL_OpenAudioDevice failed: WASAPI can't initialize audio client: ** ERROR:../hw/xbox/mcpx/apu.c:2642:mcpx_apu_init: assertion failed: (!"SDL_OpenAudioDevice failed") Bail out! ERROR:../hw/xbox/mcpx/apu.c:2642:mcpx_apu_init: assertion failed: (!"SDL_OpenAudioDevice failed")

mikael-bergstrom-ntisthlm commented 2 years ago

Just found out: Simple workaround is to not use official drivers from Asus website. The built-in Windows 11 drivers work better in general, it seems – though using them means not having access to the more advanced options of Asus' control panel.