JuliaMultimedia / SimpleDirectMediaLayer.jl

SDL2
MIT License
79 stars 17 forks source link

Audio device not detected on Linux #51

Closed dalum closed 1 year ago

dalum commented 4 years ago

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 commented 4 years ago

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.

aviks commented 4 years ago

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

aviks commented 1 year ago

Duplicate of #52. Further discussion there.