Music in main menu but no sounds in game.

10 replies [Last post]
erikderzweite
User offline. Last seen 15 years 12 hours ago. Offline
Joined: 2009-02-17
Posts: 4

If I start hedgewars-0.9.9 compiled from gentoo ebuild on amd64 I can hear music in the main menu, but if I start the game, I hear no sounds. Beck to the menu I can hear music again. I use ALSA as my sound system (tried to use pulse to no avail). Sound card in question is snd-hda-intel. Couldn't find anything related on the forum, so I decided to post.
Did anyone expreienced the same?

Adler
User offline. Last seen 14 years 48 weeks ago. Offline
Joined: 2009-02-20
Posts: 3

I'm experiencing the EXACT same problem, is there a solution for it?

-EDIT-
I'm on Slackware.
-EDIT2-
Got it, problem with dependencies (SDL, SDL_mixer)

erikderzweite
User offline. Last seen 15 years 12 hours ago. Offline
Joined: 2009-02-17
Posts: 4

Can you get more specific on this? What versions do you have installed now?

nemo
nemo's picture
User offline. Last seen 1 week 4 days ago. Offline
Joined: 2009-01-28
Posts: 1861

sound in game requires SDL mixer with ogg support.
If you're using gentoo:

USE="vorbis" emerge media-libs/sdl-mixer

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Mr.Sinister
User offline. Last seen 14 years 4 weeks ago. Offline
Joined: 2009-02-28
Posts: 1

I have the same issue. But, recently I've noticed something.
When I launch any media player (e.g 'mocp', 'audacious') and play sound file then start Hedgewars and the game initializes sound successfuly. In this stage I can close media player and play hedgewars with sound in game. ~/.hedgewars/debug0.txt contains following:

Quote:
0: Console write: Init sound...
0: Console write: ok

Since, I launch hedgewars with a script:
Quote:
#!/bin/bash
mocp --play && sleep 2 && hedgewars &
sleep 4 && killall mocp

In other cases there is no sound in game, only in menu.
Quote:
0: Console write: Init sound...
0: Console write: failed

I think when the game is initializing sound, it just does not find the device working (or busy).

P.S.: Arch Linux, ALSA 1.0.19, SDL_mixer 1.2.8, libvorbis 1.2.1

spacebison
User offline. Last seen 1 year 16 weeks ago. Offline
Joined: 2008-12-22
Posts: 34

Mr.Sinister allegedly wrote:

I have the same issue. But, recently I've noticed something.
When I launch any media player (e.g 'mocp', 'audacious') and play sound file then start Hedgewars and the game initializes sound successfuly. In this stage I can close media player and play hedgewars with sound in game. ~/.hedgewars/debug0.txt contains following:
Quote:
0: Console write: Init sound...
0: Console write: ok

Since, I launch hedgewars with a script:
Quote:
#!/bin/bash
mocp --play && sleep 2 && hedgewars &
sleep 4 && killall mocp

In other cases there is no sound in game, only in menu.
Quote:
0: Console write: Init sound...
0: Console write: failed

I think when the game is initializing sound, it just does not find the device working (or busy).

P.S.: Arch Linux, ALSA 1.0.19, SDL_mixer 1.2.8, libvorbis 1.2.1


Thats weird, I have sort of the opposite problem on my Ubuntu 8.04 install of hedgewars. If I want to play the game with sound I have to exit any tabs or programs (youtube, amarok, vlc, etc.) that use sound before I start the game.

Quote:
matt@spacebison:~$ hedgewars
ALSA lib pcm_dmix.c:874:(snd_pcm_dmix_open) unable to open slave
Floating point exception

Adler
User offline. Last seen 14 years 48 weeks ago. Offline
Joined: 2009-02-20
Posts: 3

I'm using Arch Linux now.
Sound works when I'm playing a music in Amarok.
Otherwise, it doesn't.

SDL_sound, SDL_mixer and all other SDL dependencies are installed.

erikderzweite
User offline. Last seen 15 years 12 hours ago. Offline
Joined: 2009-02-17
Posts: 4

The issue is still there with 0.9.10, starting amarok helps though.

Adler
User offline. Last seen 14 years 48 weeks ago. Offline
Joined: 2009-02-20
Posts: 3

It only happens using ALSA.
I use OSS now and that problem is gone for me.

Please fix this!

Gallaecio
User offline. Last seen 11 years 18 weeks ago. Offline
Joined: 2009-03-27
Posts: 5

Adler allegedly wrote:

I'm using Arch Linux now.
Sound works when I'm playing a music in Amarok.
Otherwise, it doesn't.

SDL_sound, SDL_mixer and all other SDL dependencies are installed.

I'm experiencing same problem in Arch Linux too (x86_64, KDE4 with phonon to manage sound and ALSA).

ivan866
ivan866's picture
User offline. Last seen 1 year 47 weeks ago. Offline
Joined: 2016-02-23
Posts: 50

Sounds familiar?

Have a melon.

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]