SimpleDirectMediaLayer.jl icon indicating copy to clipboard operation
SimpleDirectMediaLayer.jl copied to clipboard

Audio device not detected on Linux

Open dalum opened this issue 3 years ago • 3 comments

Just noticed that after upgrading to v0.2.* (so, using the JLLs), audio no longer works on Linux (I haven't tested on other OSs). The tests are passing fine, since the tests for audio contains a check if device == 0 that skips the tests if the audio device isn't found. I'm not entirely sure how to fix it, but since it works pre-JLL, I guess there is an issue with the provided binaries.

dalum avatar Aug 07 '20 23:08 dalum

I've spent some time debugging it. It turns out that if I replace libSDL2-2.0.so.0.12.0 in the artifact with my system libSDL2-2.0.so.0.12.0, then audio works fine again. So there must be something wrong with the .so file in the JLL. The one in the JLL is also 7.8M, whereas my system one is only 1.4M.

dalum avatar Aug 08 '20 19:08 dalum

I just wanted to report that I use the latest SDL jll on windows 10, and audio does play successfully.

aviks avatar Aug 08 '20 22:08 aviks

Duplicate of #52. Further discussion there.

aviks avatar Sep 24 '22 14:09 aviks