SDL2 Game Windows EXE On Linux WINE - "Audio target 'pulse' not available"?

Hi,

Running openSUSE Tumbleweed KDE 64Bit Linux.

Tried running one of our SDL2 games but ran into an issue:
When running SDL2 game Windows EXE on Linux WINE,
it crashes with: “Unable to initialize SDL2: Audio target ‘pulse’ not available”?

Any ideas?
Thanks!

Jesse

Hi…

Did more research:

I found below information about running SDL games in Linux WINE:
https://wiki.winehq.org/Sound#SDL_applications

I tried to follow the suggestion to make audio work on SDL game using Linux WINE.
Get below error message when ran from terminal:

jlp@SortaFastDesktop:~/Desktop/VM-SHARE/4OLD_12-30-2018/4OLD_02-27-2018/OLDWebsitesOLD/16bitsoft.com/files/offline/TC4T-WinLinux-Retail1> wine TC4T-WinLinux-Retail1.exe
JeZxLee’s ‘‘GT-R Twin TurboCharged’’ game engine started!
Unable to initialize SDL2: Audio target ‘""’ not available
jlp@SortaFastDesktop:~/Desktop/VM-SHARE/4OLD_12-30-2018/4OLD_02-27-2018/OLDWebsitesOLD/16bitsoft.com/files/offline/TC4T-WinLinux-Retail1>

Little lost, any help would be appreciated, thanks!

Jesse

Try setting the SDL_AUDIODRIVER environment variable to directsound.

That worked!
Thank you…

Jesse

1 Like