SuperTux / supertux

SuperTux source code
https://supertux.org
GNU General Public License v3.0
2.49k stars 470 forks source link

Audio is permanently disabled...? #3012

Open weluvgoatz opened 1 month ago

weluvgoatz commented 1 month ago

In the latest nightly, on Windows 10, using x64 and RelWithDebInfo, the audio in the game seems to be permanently disabled. I can't hear anything. I confirmed this wasn't an issue with my machine. So I went to the settings, and it just says this, all the time: image I also checked in my config file, and the settings there are normal (ie the sound should be playing), but just in-game all the audio seems to be turned off for me.

If anyone could help with this, it would be greatly appreciated. Thank you.

komaros1 commented 1 month ago

I remember playing 0.6.0 and this would happen randomly

tobbi commented 1 month ago

This happens when either

  m_device(alcOpenDevice(nullptr)),

OR

  m_context(alcCreateContext(m_device, nullptr)),

fail.

tobbi commented 1 month ago

Can you open SuperTux using the command line and check if you see any of those errors:

Couldn't create audio context: ...
Couldn't open audio device.
pazkero commented 1 month ago

IRC/Discord Transcript (partial) for sake of this not getting lost randomly. Unrelated discussion was ommitted. this is definitely not because I was bored

matusguy — Yesterday at 14:20

weluvgoatz: can you review #3023 by copying the batch file into your portable build

weluvgoatz — Yesterday at 14:36

THE MUSIC IS BACK

matusguy — Yesterday at 14:36

WHY

weluvgoatz — Yesterday at 14:37

i don't know how, but using the portable builds....fixed the music?

weluvgoatz — Yesterday at 14:37

ok, so it's just the installer then....hmm....

matusguy — Yesterday at 14:37

Daniel go to the installation directory and look for openal in bin/

weluvgoatz — Yesterday at 14:38

ok !Image interesting... [openal] not edited since 2016

matusguy — Yesterday at 14:39

THAT'S INDEED QUITE INTERESTING.

weluvgoatz — Yesterday at 14:39

and it's presumably 32 bit even though this is a 64 bit build

matusguy — Yesterday at 14:39

weluvgoatz have you tried downloading other builds ever since the audio issue has happened to you?

weluvgoatz — Yesterday at 14:44

yes and all the x64 installers relwithdebinfo all had the same issue

matusguy — Today at 04:53

Can you compare this to the openal dll in the portable build

weluvgoatz commented 1 month ago

Ok, by moving the dll in the portable build, the issue is fixed.

tobbi commented 1 month ago

So then the question remains why it packages wrong DLLs