Games in Progress: 3 | Players logged in: 5 | Players Registered: 37413 | Games Played Total: 68649
   Home   Help Search Login Register  
Pages: [1] 2
  Print  
Author Topic: Sound issues in linux version  (Read 2899 times)
DMXRoid
Mule Forum Newbie
*
Posts: 3


View Profile
« 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.
Logged
solsTiCe
Jr. Planeteer
**
Posts: 16



View Profile
« Reply #1 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.
« Last Edit: January 22, 2010, 11:18 by solsTiCe » Logged
DMXRoid
Mule Forum Newbie
*
Posts: 3


View Profile
« Reply #2 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.
Logged
solsTiCe
Jr. Planeteer
**
Posts: 16



View Profile
« Reply #3 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 Huh

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"
« Last Edit: January 22, 2010, 12:50 by solsTiCe » Logged
DMXRoid
Mule Forum Newbie
*
Posts: 3


View Profile
« Reply #4 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.
Logged
solsTiCe
Jr. Planeteer
**
Posts: 16



View Profile
« Reply #5 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
« Last Edit: January 22, 2010, 14:13 by solsTiCe » Logged
elblat
Mule Forum Newbie
*
Posts: 5


View Profile
« Reply #6 on: January 22, 2010, 14:49 »

No probs yet with Fedora 11 (gnome and native java), if that helps any.
Logged
solsTiCe
Jr. Planeteer
**
Posts: 16



View Profile
« Reply #7 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 ?
« Last Edit: January 22, 2010, 15:57 by solsTiCe » Logged
elblat
Mule Forum Newbie
*
Posts: 5


View Profile
« Reply #8 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
Logged
solsTiCe
Jr. Planeteer
**
Posts: 16



View Profile
« Reply #9 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 !
« Last Edit: January 22, 2010, 18:34 by solsTiCe » Logged
solsTiCe
Jr. Planeteer
**
Posts: 16



View Profile
« Reply #10 on: January 26, 2010, 13:07 »

any answer from the dev on this ?

it would be nice if it is fixed.
Logged
Peter
Turborilla
Administrator
Mule Expert
*****
Posts: 379


Planet M.U.L.E. Team


View Profile WWW
« Reply #11 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.
Logged

solsTiCe
Jr. Planeteer
**
Posts: 16



View Profile
« Reply #12 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
Logged
dRewsus
Mule Forum Newbie
*
Posts: 1


View Profile
« Reply #13 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
Logged
JamesGecko
Mule Forum Newbie
*
Posts: 3


View Profile
« Reply #14 on: February 17, 2010, 01:33 »

Using Sun Java does not produce sound for me on Ubuntu 9.10.
Logged
Pages: [1] 2
  Print  
 
Jump to: