Cool! That makes a lot of sense. I would really like to try to use it in my project!
However, I have run into an issue when building and including it my project in the last day or two. Everything seemed to go smoothly at first, I used genie to create a gmake folder.
I then use mingw32-make.exe to create a library file "libsoloud_static.a" , which I put into my mingw64 lib folders. Next, I linked the library with -lsoloud_static
and copied all the include files into my many project folder. I then included soloud.h and soloud_wav.h and tried to to run the code "SoLoud::Soloud s;". However when I tried to compile, I got some errors:
"
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/libsoloud_static.a(soloud_winmm.o): In function `winMMThread':
C:\Users\maxde\Downloads\sLoud\soloud20200207\build\gmake/../../src/backend/winmm/soloud_winmm.cpp:94: undefined reference to `__imp_waveOutWrite'
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/libsoloud_static.a(soloud_winmm.o): In function `winMMCleanup':
C:\Users\maxde\Downloads\sLoud\soloud20200207\build\gmake/../../src/backend/winmm/soloud_winmm.cpp:126: undefined reference to `__imp_waveOutReset'
C:\Users\maxde\Downloads\sLoud\soloud20200207\build\gmake/../../src/backend/winmm/soloud_winmm.cpp:130: undefined reference to `__imp_waveOutUnprepareHeader'
C:\Users\maxde\Downloads\sLoud\soloud20200207\build\gmake/../../src/backend/winmm/soloud_winmm.cpp:136: undefined reference to `__imp_waveOutClose'
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/lib/../lib/libsoloud_static.a(soloud_winmm.o): In function `SoLoud::winmm_init(SoLoud::Soloud*, unsigned int, unsigned int, unsigned int, unsigned int)':
C:\Users\maxde\Downloads\sLoud\soloud20200207\build\gmake/../../src/backend/winmm/soloud_winmm.cpp:177: undefined reference to `__imp_waveOutOpen'
C:\Users\maxde\Downloads\sLoud\soloud20200207\build\gmake/../../src/backend/winmm/soloud_winmm.cpp:190: undefined reference to `__imp_waveOutPrepareHeader'
collect2.exe: error: ld returned 1 exit status
"
I thought I had included the projected correctly. The error messages are a little confusing as they seem to mention the folder I download soloud in the first place.
Did I miss any steps?