aneury1 / DOEngine

Another Game Engine, by now only use SDL2 and its dependent family library but we planning to use other librarys like SFML or allegro5 to create Drawing Context (opengl ,Vulkan or metal).
0 stars 2 forks source link

Audio Issue - SDL Mixer Self Compiling issue #29

Closed aneury1 closed 6 months ago

aneury1 commented 6 months ago

there is one issue when try to compile, pulled version of SDL_Mixer, it seems that we can Find LibAlsa or LibSound. we need to take action on this because some system does not provide those by default, we need to create variables to allows developer who compiles the library to adapt to theirs by leave them choice between own installed SDLX version or Self compile Version, what I propose is create a flag on CMake so they can turn On or Off depending on their wished.

here is the relevant trace to the error.

INFO: SDL_Init Error: dsp: No such audio device
[1]    18311 segmentation fault (core dumped)  ./DOENGINE-sample

here is a topic regarding to the error

my propose Variable name: set(SDL2_SELF_COMPILING TRUE)

if accepted I could put on my own and push to the repo.

victordmontero commented 6 months ago

You could try that solution. However, I think that will not solve the underlying problem with the audio

victordmontero commented 6 months ago

Can you try setting this option to ON: SDL_ALSA on CMake?

aneury1 commented 6 months ago

it worked