libretro / RetroArch

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

EasyRPG core: Init of XAudio2 fails when launched from command line, but works when launched via content loading #8815

Open Ghabry opened 5 years ago

Ghabry commented 5 years ago

Only RetroArch bugs should be filed here. Not core bugs or game bugs

I don't consider this a core bug because the core is not responsible for audio initialisation.

Description

See this comment: https://github.com/libretro/easyrpg-libretro/issues/39#issuecomment-493718829

Basicly XAudio2 init fails when the core is launched via "-L core.dll path_to_game" but XAudio init succeeds when the game is launched normally through the RetroArch GUI.

Version/Commit

I think this affects all versions since months. Got multiple bug reports about this issue.

Environment information

hizzlekizzle commented 5 years ago

You said this happens with WASAPI, too, right?

Ghabry commented 5 years ago

Wasapi is broken in general for this core so this is something else.

Could be related to the usage of these audio callbacks for threaded audio. Only 3 cores use this: Easyrpg, dinothawr and the 3rd I forgot.

orbea commented 5 years ago

Is dinothawr also affected?

Altomb commented 4 years ago

ChaiLove and Dinothawr are also affected. Fails on XAudio2 from commandline, launches ok from GUI

RetroArch 1.8.4 on Windows 10/1909

Verbose Error: [ERROR] Failed to init XAudio2. [ERROR] Cannot open threaded audio driver ... Exiting ... [ERROR] Erreur fatale reçue dans: "audio_driver_init_internal()"

ghost commented 3 years ago

I've opened this PR which fixes ChaiLove for me. https://github.com/libretro/RetroArch/pull/11822

SimpleTease commented 3 years ago

Reporting that Dinothawr XA2 is working with #11822.