Home > BBS
User Password :: Sign Up :: [?]

pizzadude



 

Sound effects not working in ALSA (Linux)

I bought Voxatron Alpha in the Humble Voxatron Debut. I tried it out, and noticed the sound effects weren't working. The music was working, but not the sound effects. My friend tried it out too and it worked for him, but he is using PulseAudio. I prefer ALSA. I tried using the aoss wrapper to start the game, but no luck. Then I tried running the Windows version in WINE, and the sound effects worked. But some aspects are slower.
Any fix?

P#1634 Posted at 2011-10-31 15:49

NullNix



 

::

Does sound work in any other SDL game?

P#1654 Posted at 2011-10-31 16:19

pizzadude



 

::

I'm not sure what an SDL game is but I have a lot of other native linux games that the sound works on. But in this game, the music works for me but the sound effects don't. I have been playing the Windows version under WINE though.

P#1672 Posted at 2011-10-31 17:14

Henrik Holst



 

::

A SDL game is a game that uses the SDL library, it's library for making portable games for music and graphics. Voxatron however seams to be linked with libpulse so it might use pulse for the sound effects and only SDL for the music. Only Lexaloffle knows.

Are you one of these guys who uninstall pulse because you think that pulse is the reason you don't get sound in other games?

P#1679 Posted at 2011-10-31 17:34

pizzadude



 

::

I uninstalled Pulseaudio because of incompatibilities with some of my Windows-only games that I run in Wine.

P#1688 Posted at 2011-10-31 18:07

Henrik Holst



 

::

Ok, yeah Wine just rewrote their entire sound architecture and a pulse driver is currently lacking. I have however never had any problems with wine and pulse, even runs 1.3.31 fine. Could be that your distribution of choice doesn't have compatible versions of wine and pulse (I run Ubuntu myself).

P#1734 Posted at 2011-10-31 20:06

pizzadude



 

::

No I run Ubuntu also. I just prefer ALSA because of the annoyances I have with Wine and Pulse.

P#1761 Posted at 2011-10-31 21:11

zep



 

::

It's extremely weird that the sound should work but not the music. They're both mixed by Voxatron into the same output channel!

Could you do me a favour and email your log.txt and config.txt files? -> hey@lexaloffle.com

You can find them in ~/.lexaloffle/Voxatron

P#1764 Posted at 2011-10-31 21:21

pizzadude



 

::

I sent them. :)

P#1774 Posted at 2011-10-31 22:22

pizzadude



 

::

Edit: I fixed it by changing Sound from 0 to 1 in config.txt

P#1778 Posted at 2011-10-31 22:29

Henrik Holst



 

::

>Voxatron however seams to be linked with libpulse

Argh, that one was a big mistake on my part. I forgot that ldd also shows libraries brought in by the other libs and since my libSDL is linked with pulse, libpulse was shown in ldd output for vox...

Sorry for the confusion!

P#2017 Posted at 2011-11-01 14:45

NullNix



 

::

Henrik: in any case, even if libSDL is using PulseAudio, it never shows up as linked with it: it is loaded dynamically when needed, I think so that people can ship libSDLs that support every audio system going without requiring every user to have the libs for all of them.

The only way you can tell if a libSDL binary you've been given supports a given sound driver is to dig through its symbol table, find the appropriate symbols to manipulate that sound driver, and *compare addresses* to see if the functions are empty stubs or have content. This is quite irritating!

P#2080 Posted at 2011-11-01 17:22

Henrik Holst



 

::

Well libSDL links with something that brings libpulse in somehow :-)

henrik@ubuntu:~$ ldd /usr/lib32/libSDL-1.2.so.0
  ...
  libpulse-simple.so.0 => /usr/lib32/libpulse-simple.so.0 (0xf764e000)
  libpulse.so.0 => /usr/lib32/libpulse.so.0 (0xf7600000)
  libpulsecommon-1.0.so => /usr/lib32/libpulsecommon-1.0.so (0xf7406000)
  ...

And interestingly enough the libSDL bundled with Voxatron does not...

P#2108 Posted at 2011-11-01 18:28


Log in to post a comment

User: Password:
:: Not a Member? Sign Up Now!


Generated '13-05-18 13:57 / 0.008s / 1310k     About :: Contact :: Terms of Use / Privacy

© Copyright 2003-2012 Lexaloffle Games LLP. All Rights Reserved All trademarks are the property of their respective owners.

Join the Lexaloffle Newsletter:
Follow Lexaloffle:
More Indie Games: