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

Open
PepsiDoggo opened this issue Sep 22, 2021 · 5 comments
Open

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

PepsiDoggo opened this issue Sep 22, 2021 · 5 comments

Comments

@PepsiDoggo
Copy link

@PepsiDoggo PepsiDoggo commented Sep 22, 2021

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 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.

Loading

@PepsiDoggo
Copy link
Author

@PepsiDoggo PepsiDoggo commented Sep 24, 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.

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

Loading

@nielsmh
Copy link
Contributor

@nielsmh 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.)

Loading

@LordAro
Copy link
Member

@LordAro LordAro commented Sep 24, 2021

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

Loading

@Enyuma00
Copy link

@Enyuma00 Enyuma00 commented Oct 21, 2021

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

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants