Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: No music or sound on Linux Debian #9571

Closed
PepsiDoggo opened this issue Sep 22, 2021 · 6 comments
Closed

[Bug]: No music or sound on Linux Debian #9571

PepsiDoggo opened this issue Sep 22, 2021 · 6 comments
Labels
needs triage This issue needs further investigation before it becomes actionable OS: Linux Issues specific to Linux builds

Comments

@PepsiDoggo
Copy link

Version of OpenTTD

1.11.2, Linux Debian

Expected result

When I installed and booted up the game, I expected the usual vanilla sounds and music to be playing on the title screen.

Actual result

The game was silent, and for some reason OpenSFX wasn't installed. Even after installing OpenSFX and having music and sound files selected, there was nothing coming from the game.

Steps to reproduce

It isn't really an issue I think could be reproduced on other computers, as I am using a Chromebook that has Linux Debian support.

@nielsmh
Copy link
Contributor

nielsmh commented Sep 23, 2021

Can you start the game with driver debugging output on?

Run from a terminal:
openttd -ddriver=1

It should print a bunch of messages about which audio devices and output drivers are chosen.

@PepsiDoggo
Copy link
Author

Can you start the game with driver debugging output on?

Run from a terminal:
openttd -ddriver=1

It should print a bunch of messages about which audio devices and output drivers are chosen.

I did this and it says at the end "Could not set volume"
Is this the potential root of my issues?

@nielsmh
Copy link
Contributor

nielsmh commented Sep 24, 2021

Right now the most likely cause would be that SDL chooses the wrong output.

You can try setting the SDL_AUDIODRIVER environment to force a different output, but it depends on what your system is configured for and whether OpenTTD is built for SDL 1.2 or SDL 2.0. (See SDL FAQ.)

@LordAro
Copy link
Member

LordAro commented Sep 24, 2021

(Unless you've built OTTD yourself to explicitly use SDL1.2, it will be using 2.0)

@Enyuma00
Copy link

All i can say is get the music and sound packs if you havent, select them at basic settings menu and make sure the volume slider is not on 0

@2TallTyler 2TallTyler added the needs triage This issue needs further investigation before it becomes actionable label Oct 19, 2022
@2TallTyler 2TallTyler added the OS: Linux Issues specific to Linux builds label Feb 18, 2023
@TrueBrain
Copy link
Member

No reply in over 2 years from the reporter, and a lot has changed in how we build binaries. I am going to assume this has been fixed, as we haven't received any other reports about it.

If this changes, feel free to reopen!

@TrueBrain TrueBrain closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue needs further investigation before it becomes actionable OS: Linux Issues specific to Linux builds
Projects
None yet
Development

No branches or pull requests

6 participants