Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Im using SDL too, and for the audio Im using SDL basic audio callback system. Its very raw but if you need code to load a WAV file and play it I can send it to you.

Btw, if instead of linking against the dynamic DLL you link against the static LIB you will reduce the EXE size. I also use this EXE compressor:

https://www.un4seen.com/petite/

and I managed to create my SDL/OpenGL app that weights less than 300KBs

Very interesting, thanks !

(1 edit)

Thanks for the tips ! After a lot of research, after having compiled a bunch of libraries, the best solution I found is to directly use the windows API (Direct sound) that is installed on all windows in system 32 (dsound.dll). Kinda old and obscure, but it works... I tried OpenAL and other audio libraries based on OpenAL but they are too large, DLL only (no stripping possible) and I don't want to use any exe compressor. So the win32 api was for me the only solution (#include <dsound.h>)

(1 edit)

Sounds interesting... Any chance it could be done in C#? I'm not completely familiar with the differences between C# and C++ other than abstraction and level differences, as well as much compatibility between the languages.