You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can't find the SDL2's dll and no sounds is produced. Also a crash when calling stop. This does not affect the release build.
The problem is, VCPKG changes the dll file name to SDL2d.dll when building a Debug project. SoLoud's dll detection code use the file name 'SDL2.dll' to get the dll handle. Since there's no such file it returns in error.
It should detect the SDL2 dll properly.
It can't find the SDL2's dll and no sounds is produced. Also a crash when calling stop. This does not affect the release build.
The problem is, VCPKG changes the dll file name to
SDL2d.dll
when building a Debug project. SoLoud's dll detection code use the file name 'SDL2.dll' to get the dll handle. Since there's no such file it returns in error.soloud_sdl2_dll.c :
A possible fix would be to try loading the
SDL2d.dll
whenLoadLibraryA()
fails.Here's my test project to reproduce the issue. You can clone the project and open the folder in Visual Studio
https://github.com/wutipong/soloud-sdl
SoLoud Git latest.
Windows 11.
Visual Studio 2022 (17.4.4)
SDL2 from VCPKG (usually latest version).
The text was updated successfully, but these errors were encountered: