Games in Progress: 3 | Players logged in: 5 | Players Registered: 37413 | Games Played Total: 68651
Print Page - Sound issues in linux version

Planet M.U.L.E.

Planet Mule 1 => Bugs 1.2.1-3 => Topic started by: DMXRoid on January 21, 2010, 10:22



Title: Sound issues in linux version
Post by: DMXRoid on January 21, 2010, 10:22
Since upgrading to 1.2.1, in-game sound has stopped working.  Lobby sounds work just fine, but nothing in the game produces any sound output.  I can reproduce this in every game, both local and online.  There doesn't seem to be any audio-related data in any of the logfiles, but if those would still be useful, I can attach them.


Title: Re: Sound issues in linux version
Post by: solsTiCe on January 21, 2010, 17:56
no problem here: with archlinux, alsa-lib 1.0.22 and kernel 2.6.32-4

at least specify your distro, the sound system you're using and the version of it.


Title: Re: Sound issues in linux version
Post by: DMXRoid on January 22, 2010, 11:13
Distro: Debian Squeeze
Sound system: arts - 1.5.9

All other sound works fine, and sound in the game works in the lobby.  It's just while in the Game tab that it doesn't.


Title: Re: Sound issues in linux version
Post by: solsTiCe on January 22, 2010, 11:29
i have just realised i have the mirrored problem of you. i.e. i have no sound in the login screen (and in the lobby) but i have sound in the game tab !!

i have found that i have the same behavior in 1.2.0 and 1.2.1. in fact, it's if i have another application using sound when i launch mule.sh, it gives no sound. as soon as i quit that other application i have sound in the login screen. also it uses 100% cpu usage until i quit the other app using sound.

either it's a bug in openal or it's a serious misconfiguration of openal in planetmule. because it seems to use 2 different output system (oss and alsa) at the same tiime ???

this will explain how you can have sound in the login screen and not in tab game whereas i have no sound in the login screen but some in the tab game.

try closing any software using sound when you launch mule. and report what happen, please ?

you could try this. but i doubt it will change anything

if you're using arts, it's that you're still using kde 3 ? which output do you use for arts ? oss or alsa ? if oss try alsa

Also try using directly alsa (or oss ,) by skipping the use of arts. it will work better. i remember i began to hate arts for its crashes and uninstalled it to use only alsa. (this could be configured in kde config panel sound). also arts is quite "old"


Title: Re: Sound issues in linux version
Post by: DMXRoid on January 22, 2010, 13:55
Re: KDE3, I was using it, and then switched to XFCE.  I've really had no problem with ARTS myself, although I know that lots of people have.  It's worked pretty seamlessly for me the entire time I've used it, no problems with multiple applications outputting sound at the same time, no crashes, etc...

RE: other sound-using apps, other than system-level stuff, there are no running applications that are using the sound devices.  Furthermore, once I have MULE running, if I open other apps, I can get sound out of them using either ALSA or OSS.

I'm not familiar with the Java openal implementation, but you may be right that it's a bug in the game.


Title: Re: Sound issues in linux version
Post by: solsTiCe on January 22, 2010, 14:03
ok. i sum it up

if i run mule.sh only at the login screen without any other apps using sound then the login screen plays sound. but later in the game (game tab) i got no sound !) and  i can't play any sound with any other apps: the sound device is blocked by the login screen using it so no apps could use it not even the game tab in planetmule !

if i play sound with some other apps (using alsa), the login screen is quiet, but i have sound later in the game (in the tab game) !

so this is really an issue of using 2 output sound system at the same time. at the login screen oss, and then alsa!!!

i have tried to configure openal with ./alsoftrc but it changed nothing. the documentation is hard to find on google for that


Title: Re: Sound issues in linux version
Post by: elblat on January 22, 2010, 14:49
No probs yet with Fedora 11 (gnome and native java), if that helps any.


Title: Re: Sound issues in linux version
Post by: solsTiCe on January 22, 2010, 15:53
i use gnome and the jre from sun. it's not that matter. it's the sound system. fedora 11 use pulseaudio ?

what's "native java" for you ?


Title: Re: Sound issues in linux version
Post by: elblat on January 22, 2010, 16:19
i use gnome and the jre from sun. it's not that matter. it's the sound system. fedora 11 use pulseaudio ?

Yes, you are correct.  pulseaudio

Quote
what's "native java" for you ?

Good question, java -version returns:
Code:
java version "1.6.0"
Java(TM) SE Runtime Environment


Title: javasound and openal
Post by: solsTiCe on January 22, 2010, 18:17
it seems planetmule uses javasound and openal (my guess)
javasound use oss while openal use alsa.
so once /dev/dsp is blocked by javasound, no sound could me made with openal through alsa.

use either openal or javasound but do NOT mix the 2 please
!
it's the fault of sun still using oss while alsa is the default for years !


Title: Re: Sound issues in linux version
Post by: solsTiCe on January 26, 2010, 13:07
any answer from the dev on this ?

it would be nice if it is fixed.


Title: Re: Sound issues in linux version
Post by: Peter on January 26, 2010, 13:34
Unfortunately this will not be fixed in the next version, but we have noted it and may fix it in future versions. More specifically we plan to ditch java sound.


Title: Re: Sound issues in linux version
Post by: solsTiCe on January 26, 2010, 18:28
in fact it's not really SUN's fault. it's that the oss emulation layer within alsa does not support mixing. So when you use it, it b/locks the sound device, and nothing else can use. shame on alsa ;-)

[source] http://insanecoding.blogspot.com/2007/05/sorry-state-of-sound-in-linux.html (http://insanecoding.blogspot.com/2007/05/sorry-state-of-sound-in-linux.html)


Title: Re: Sound issues in linux version
Post by: dRewsus on February 11, 2010, 04:04
Yeah switching from Open Java to Sun and then restarting got sound working for me
Ubuntu 9.10 on Acer Aspire One


Title: Re: Sound issues in linux version
Post by: JamesGecko on February 17, 2010, 01:33
Using Sun Java does not produce sound for me on Ubuntu 9.10.


Title: Re: Sound issues in linux version
Post by: Peter on February 19, 2010, 07:20
We're improving the sound for the next version by moving everything to OpenAL. This will make it work on some Linux machines without having to get dirty and configure your sound system.


Title: Re: Sound issues in linux version
Post by: Govt Mule on February 19, 2010, 16:08
We're improving the sound for the next version by moving everything to OpenAL.

Yay!  Has a date for the next release been announced yet?


Title: Re: Sound issues in linux version
Post by: piete on February 19, 2010, 16:13
I was boasting on another thread that I had Planetmule running perfectly on my Debian Lenny, but now that I remember more accurately, I think the sound stopped at some point of the game. Didn't remember that in the first place, since I normally play without sound (because I can (=may) play only when my kid's asleep...)


Title: Re: Sound issues in linux version
Post by: Peter on February 23, 2010, 12:19
We're improving the sound for the next version by moving everything to OpenAL.

Yay!  Has a date for the next release been announced yet?

Not yet but we will announce it together with the new features when we know.


Title: Re: Sound issues in linux version
Post by: solsTiCe on April 30, 2010, 08:09
it's fixed in 1.2.4 for me