ginkgo / pink-pony

Pink Pony is a 3D racing game with ponies!
https://ginkgo.github.io/pink-pony/
37 stars 5 forks source link

no sound in slackware #4

Closed dinobot closed 10 years ago

dinobot commented 10 years ago

Looks like program uses correct sound device, but no any sound in my loudspeakers.

What's the problem could be / how to fix it?

bash-4.2$ lsof | grep /dev/snd/ kded4 3042 dinobot 35u CHR 116,11 0t0 8104 /dev/snd/controlC0 amarok 3252 dinobot mem CHR 116,9 8102 /dev/snd/pcmC0D0p amarok 3252 dinobot 13r CHR 116,33 0t0 2106 /dev/snd/timer amarok 3252 dinobot 14u CHR 116,9 0t0 8102 /dev/snd/pcmC0D0p kmix 3262 dinobot 11u CHR 116,11 0t0 8104 /dev/snd/controlC0 Pony 21182 dinobot mem CHR 116,9 8102 /dev/snd/pcmC0D0p Pony 21182 dinobot 12u CHR 116,9 0t0 8102 /dev/snd/pcmC0D0p

bash-4.2$ ldd Pony | grep SDL libSDL_mixer-1.2.so.0 => /usr/lib64/libSDL_mixer-1.2.so.0 (0x00007ff4623aa000) libSDL-1.2.so.0 => /usr/lib64/libSDL-1.2.so.0 (0x00007ff4620f3000)

ginkgo commented 10 years ago

The default sound output volume is set to 0 in HEAD. Have you tried pressing F1 for changing the volume or changing it in pony.options(under music_volume)?

Apart from that:

Are you using ALSA or OSS for sound output on Slackware? Maybe SDL_mixer is picking the wrong output method.

You could try overriding that with

$ export SDL_AUDIODRIVER=alsa

or

$ export SDL_AUDIODRIVER=oss
ginkgo commented 10 years ago

Hi Daniel, did any of my suggestions help with your sound problems?

dinobot commented 10 years ago

Hi, Thomas! No yet. I still have no sound in the game (but it still so much fun to play it with friends together). As I have to understand, there is a tool to generate sound with SDL (/usr/bin/playsound and /usr/bin/playsound-simple that comes with libsdl-sound1.2 package in debian/ubuntu and SDL_sound package in slackware). I have sound with nor playsound neither pink-pony, so I suppose that SDL in my current installation of slackware is broken or misconfigured.

dinobot@u65:~/clone/pink-pony$ ldd Pony | grep SDL libSDL_mixer-1.2.so.0 => /usr/lib64/libSDL_mixer-1.2.so.0 (0x00007fa1cfcac000) libSDL-1.2.so.0 => /usr/lib64/libSDL-1.2.so.0 (0x00007fa1cf9f5000) dinobot@u65:~/clone/pink-pony$ which playsound | xargs ldd | grep SDL libSDL_sound-1.0.so.1 => /usr/lib64/libSDL_sound-1.0.so.1 (0x00007f9563434000) libSDL-1.2.so.0 => /usr/lib64/libSDL-1.2.so.0 (0x00007f956317d000)

dinobot commented 10 years ago

my problem was solved after installing smpeg and rebuilding SDL.

Thank you very much, Thomas!