Digital Paint Discussion Board

Paintball 2: The Game => Help and Support => Resolved Help & Support => Topic started by: Nate-n-Nator on July 25, 2006, 10:55:23 AM

Title: Sound problems in Linux
Post by: Nate-n-Nator on July 25, 2006, 10:55:23 AM
Hello. I have a bit of a problem with the sound. When I first extracted paintball, I didn't get any sound. I looked at the terminal and saw this:
Code: [Select]
bassmannate@bassmannate-laptop:~/paintball2$ ./paintball2
Paintball 2 -- Version 3.21+r0.16
execing configs/config.cfg
Console initialized.

------- sound initialization -------
Initializing Linux sound.
/dev/dsp: Device or resource busy
SNDDMA_Init: Could not open /dev/dsp.

Obviously /dev/dsp is being used by something else, right? I read somewhere to kill esd so I did. When I run it, I get this:
Code: [Select]
Console initialized.

------- sound initialization -------
Initializing Linux sound.
sound sampling rate: 11025
------------------------------------
And I get sound but it's EXREMELY choppy. I get about 1/3 sec. every second. If I try to restart the sound when esd isn't running, then it just crashes paintball.

Edit: I should also say that when paintball crashes, it crashes with a seg. fault.
Title: Re: Sound problems in Linux
Post by: jitspoe on July 25, 2006, 01:06:56 PM
I've had the same problem ever since I updated my sound drivers.  I didn't have to kill esd, though.  OSS used to work OK, but I had problems with ALSA, then they went and deprecated OSS and made it wrap through ALSA, so now nothing works well.  Apparently the drivers for my sound card just suck, though.
Title: Re: Sound problems in Linux
Post by: XtremeBain on July 25, 2006, 01:09:53 PM
You need to have OSS emulation working in ALSA setup.

I didn't have too many sounds problems with 6.06 LTS, but there were some issues.  When I get home I'll find the post on linux-gamers that will allow you to setup OSS emulation.
Title: Re: Sound problems in Linux
Post by: Nate-n-Nator on July 26, 2006, 10:36:49 AM
Ok. I installed alsa-oss and wrapped paintball2 with aoss and I at least get something different. It's just lots of noise...Kinda weird.
Title: Re: Sound problems in Linux
Post by: KnacK on July 26, 2006, 01:22:44 PM
That's normal DP sounds!!

Looks like you got it fixed!!

Title: Re: Sound problems in Linux
Post by: TinMan on July 26, 2006, 03:40:24 PM
rofl. KnacK is right there...
Title: Re: Sound problems in Linux
Post by: ToAsTeDd on July 27, 2006, 06:55:19 AM
Ok. I installed alsa-oss and wrapped paintball2 with aoss and I at least get something different. It's just lots of noise...Kinda weird.

Same here! I have the exact same problem with choppy sound every 1sec or half sec or so.

I also tried alsa-oss, and ran "aoss ./paintball2", and I get quick and close-together beeping-static weird noises that sound annoying, they are the same and 100% repeititive.

So any other ideas on how to get sound working?
Title: Re: Sound problems in Linux
Post by: jitspoe on July 27, 2006, 01:25:41 PM
Use Windows. ;D
Title: Re: Sound problems in Linux
Post by: Sprinkle on July 27, 2006, 01:47:32 PM
I'm very disappointed in you jitspoe.

:*(
Title: Re: Sound problems in Linux
Post by: TinMan on July 27, 2006, 01:51:26 PM
Jitspoe, sometimes Windows tempts me, but after running 64-bit Ubuntu with an SMP kernel on my dual-core AMD, I installed Windows on an extra harddrive I had, gave up on it by the end of the day because it took so much longer to install things than it did in linux, and then running a game like Quake 4 would take forever to load. Never realized how amazingly slow windows was till I ran it after 64-bit and SMP in linux man...
Title: Re: Sound problems in Linux
Post by: Eiii on July 27, 2006, 02:12:22 PM
Use Windows. ;D

See toasted? I told you.

...or was that someone else? darn.
Title: Re: Sound problems in Linux
Post by: Nate-n-Nator on July 28, 2006, 10:39:21 AM
Yeah. It's just a bunch of static noise. I thought just to see what would happen, I would start a game with that setting. just get the same beepy static. Now, I got quake2 installed today and got it running. Had the choppy sound issue. I ran quake2 with the option +set snddriver ao and it worked fine.  Guessing we don't have that option with paintball.
Title: Re: Sound problems in Linux
Post by: QuDos on July 28, 2006, 11:30:49 AM
Is someone testing the installer i'd created, give a try http://qudos.quakedev.com/tmp

The CVS version features the snd_driver from quake2forge, also oss sound driver is fixed too, here running alsa with an integrated i810 chip works perfectly, oss, sdl and alsa.

Once installed, modify the start script in /usr/local/games/paintball2 to set your preferences.
Title: Re: Sound problems in Linux
Post by: Nate-n-Nator on July 28, 2006, 03:19:24 PM
Works beautifully. Fixed sound problems and all. Had to make a sym link though because I wanted it installed elsewhere.
Title: Re: Sound problems in Linux
Post by: jitspoe on July 28, 2006, 04:14:02 PM
Where did you want it installed?
Title: Re: Sound problems in Linux
Post by: Nate-n-Nator on July 28, 2006, 04:36:46 PM
/usr/share/games/paintball2 That's where all the games installed from the repositories on Ubuntu are installed. I'm just anal about things like that.

I think I spoke too soon. I get the game running but after I get a game started, it goes for about 10-20 seconds and then freezes. I have to do a hard reset of my computer. I think it's my computer though because I had that problem with the extracted binary on the web site.
Title: Re: Sound problems in Linux
Post by: QuDos on July 29, 2006, 02:35:30 AM
Personally, when i can i put all games in my home dir.

Nate-n-Nator
Are you running SSE binaries or basic?
Run the installer again and install the another ones binaries.

It's freezing the whole system or just paintball2? you can always to try debug or switch a virtual console and kill pb2 process.
Title: Re: Sound problems in Linux
Post by: TinMan on July 29, 2006, 04:53:55 AM
/usr/share/games/ is where all the games that come out of .deb's go, all the commercial/loki installer games go to /usr/local/games/, Nate, you need to check out some of the awesome games you're missing out on if you didn't know that  :P
Title: Re: Sound problems in Linux
Post by: Nate-n-Nator on July 31, 2006, 09:59:48 AM
It's locking the whole system because I tried to bring up a console to kill pb2. I'm using the regular binaries. Should I try the SSE binaries instead?
Title: Re: Sound problems in Linux
Post by: TinMan on July 31, 2006, 06:13:42 PM
its locking because you killed your sound server
Title: Re: Sound problems in Linux
Post by: Nate-n-Nator on August 01, 2006, 07:37:36 AM
So it's either no sound or sound with locking up? I uninstalled and tried the install script again and just let it install where it wanted to. I'm getting no sound when I start it. However, when I kill esd, I get sound in the menu. It's all normal sound and not choppy or anything. However, I start a game and add bots so that the round will actually start. When the round actually starts it's freezing right away. And all I wanted to do was play a little paintball.

Edit: Is there any way that I can switch it to use alsa instead of oss? (I'm gonna try aoss real quick and see what happens.)
Edit again: Well, I tried aoss and saw that the sound server actually was able to start (before, it just said that /dev/dsp was busy) but then when the round starts, I get all this buzzing sound.
Title: Re: Sound problems in Linux
Post by: Nate-n-Nator on August 02, 2006, 11:05:27 AM
killall esd...works now. Don't know why it was weird before but it is fine. I have sound now. No freezing of the game either.
Title: Re: Sound problems in Linux
Post by: QuDos on August 04, 2006, 01:43:37 AM
killall esd...works now. Don't know why it was weird before but it is fine. I have sound now. No freezing of the game either.

Nice to hear you got it, btw, what distro, window manager are you running?
Title: Re: Sound problems in Linux
Post by: Nate-n-Nator on August 21, 2006, 10:05:38 AM
Sorry for the late reply.

I'm running Ubuntu 6.06 with Gnome.
Title: Re: Sound problems in Linux
Post by: TinMan on August 21, 2006, 04:58:56 PM
http://dpball.com/forums/index.php?topic=2734.0
http://qudos.quakedev.com/tmp

Try that installer.
Title: Re: Sound problems in Linux
Post by: Lil_Shank on September 07, 2006, 09:30:08 PM
whenever I run the game i get this Error:

Initializing Linux sound.
/dev/dsp: Input/output error
SNDDMA_Init: Could not mmap /dev/dsp.

Anyone know how to fix it?
Title: Re: Sound problems in Linux
Post by: TinMan on September 07, 2006, 09:35:42 PM
That problem occurs in the original b16 linux binary release, it is because q2 is old.
QuDos has worked out those audio problems in his build of it:
http://dpball.com/forums/index.php?topic=2734.0
http://qudos.quakedev.com/tmp

Try that installer.

If you experience the /dev/dsp error in his version, then I suggest making sure that /dev/dsp exhists, looking into it problems with it on your distro, making sure your system is up to date, and notifying QuDos about it in the thread for his installer.
Title: Re: Sound problems in Linux
Post by: Lil_Shank on September 07, 2006, 09:38:31 PM
When I got that installer and tried to use that to install the game wouldnt run for some reason....

EDIT: The game I mean...
EDIT2: I am on Dapper Drake Ubuntu
Title: Re: Sound problems in Linux
Post by: TinMan on September 07, 2006, 09:46:38 PM
Try this in a terminal:
Code: [Select]
cd ~/
wget -c http://qudos.quakedev.com/tmp/Paintball2_build017_full_linux.run
chmod +x Paintball2_build017_full_linux.run
sudo sh Paintball2_build017_full_linux.run

When the installer is done, if it asks you if you'd like to run the game, select no. (Most loki installers ask this, I'm not sure if this one has it set up like that, I forgot)

If you already ran it right after the installer, then it was run with sudo, so the permissions on your user's files are owned by root, which might explain it not running, I'm not sure.
To fix this do:
Code: [Select]
sudo chown -R <user> ~/.paintbalwhere "<user>" is your username.

Then try running paintball2 from a terminal, if it gives you an error, post it back here.
Title: Re: Sound problems in Linux
Post by: Lil_Shank on September 07, 2006, 10:10:05 PM
Ok, I installed using the build 17 installer and it worked once, but now it gives me this error

------- sound initialization -------

load /usr/local/games/paintball2/snd_oss.so failed: No such file or directory
------- Loading ref_pbgl.so -------
LoadLibrary("ref_pbgl.so") failed: No such file or directory
recursive shutdown
Error: Couldn't load gl refresh!

EDIT: I found snd_oss.so in the paintball2 folder, so i dont know why it says its not there...
Title: Re: Sound problems in Linux
Post by: QuDos on September 08, 2006, 10:51:02 AM
Ok, I installed using the build 17 installer and it worked once, but now it gives me this error

------- sound initialization -------

load /usr/local/games/paintball2/snd_oss.so failed: No such file or directory
------- Loading ref_pbgl.so -------
LoadLibrary("ref_pbgl.so") failed: No such file or directory
recursive shutdown
Error: Couldn't load gl refresh!

EDIT: I found snd_oss.so in the paintball2 folder, so i dont know why it says its not there...

How did you to run pb2, script or binary?

Also, be sure the game it's installed under /usr/local/games/paintball2, by default will create a start script under /usr/local/bin/paintball2
 
Maybe there is something wrong in the installer, sometimes i'm forgotting do changes to the files because i'm testing in 6/7 distros and two FreeBSD releases.

Get the last installer in my tmp dir, if this installer works fine the next only will be component updates.

Btw, works with some crashes with compiz enabled but i can't get fullscreen at all, any suggestion?  I'm new about compiz.

Title: Re: Sound problems in Linux
Post by: TinMan on September 08, 2006, 02:36:08 PM
Fullscreen doesn't work in almost anything with XGL/Compiz...I read the reson why...but forgot. I run anything that I want fullscreen (games) using this nonXgl script: http://ubuntuforums.org/showthread.php?t=176636&highlight=nonXgl
It works fine for me. Without it, water looks rainbow-like in paintball2 too.
Title: Re: Sound problems in Linux
Post by: Lil_Shank on September 08, 2006, 06:54:37 PM
Ok, I installed using the build 17 installer and it worked once, but now it gives me this error

------- sound initialization -------

load /usr/local/games/paintball2/snd_oss.so failed: No such file or directory
------- Loading ref_pbgl.so -------
LoadLibrary("ref_pbgl.so") failed: No such file or directory
recursive shutdown
Error: Couldn't load gl refresh!

EDIT: I found snd_oss.so in the paintball2 folder, so i dont know why it says its not there...

How did you to run pb2, script or binary?

Also, be sure the game it's installed under /usr/local/games/paintball2, by default will create a start script under /usr/local/bin/paintball2
 
Maybe there is something wrong in the installer, sometimes i'm forgotting do changes to the files because i'm testing in 6/7 distros and two FreeBSD releases.

Get the last installer in my tmp dir, if this installer works fine the next only will be component updates.

Btw, works with some crashes with compiz enabled but i can't get fullscreen at all, any suggestion?  I'm new about compiz.



I'm running wtih script, i cant run it any other way for some reason.  There isnt a paintball2 folder in /usr/local/games, how can i make one there?
Title: Re: Sound problems in Linux
Post by: TinMan on September 08, 2006, 08:44:26 PM
You didn't install it as root. Make sure that you run the installer with "sudo sh xxx.run"
Title: Re: Sound problems in Linux
Post by: Lil_Shank on September 08, 2006, 10:26:46 PM
Ok I installed it as root, now it cant open with the libGO.so, so how do i reconfigure it?
Title: Re: Sound problems in Linux
Post by: TinMan on September 08, 2006, 10:28:41 PM
libGL.so?
Code: [Select]
cd ~/.paintball2
ln -s /usr/lib/libGL.so.1 libGL.so
should work, if not, do
Code: [Select]
locate libGL.soand post back the results.
Title: Re: Sound problems in Linux
Post by: Lil_Shank on September 08, 2006, 10:32:32 PM
Thanks, got it all fixed, it runs now, and with sound! Thanks again for the help!  ;D
Title: Re: Sound problems in Linux
Post by: TinMan on September 08, 2006, 10:57:48 PM
No prob.