LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-03-2004, 02:53 PM   #1
e1000
Member
 
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582

Rep: Reputation: 30
game sound


Im running the standard slackware kernel with the standard sound system. and I installed bzflag from source and I dont get sound.
I also installed quake 3 from the binary package you can get at the ID software FTP site, and It has no sound either.

When I "cat ~/test.wav > /dev/dsp" as an unprivelaged user it makes the sound of the wav file. so I dont think its the permitions of /dev/dsp. also, i do get sound with XMMS, and even my linmodem driver (linuxant). does anyone know what else that these two games have in common that makes it so they dont have sound? and yes; I do have the volume on.
 
Old 01-03-2004, 03:25 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
uh, yea. I read a thread earlier that XMMS uses /dev/dsp and Quake3 used /dev/dsp1 ........this guy had the same prob ---no sound......I suggested that he make a symlink for quake to use and point it to /dev/dsp..........not sure if it worked, gotta look for the thread.......
 
Old 01-03-2004, 03:56 PM   #3
e1000
Member
 
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582

Original Poster
Rep: Reputation: 30
so ur saying that since /dev/dsp1 doesnt work, i should delete it and link /dev/dsp1 to /dev/dsp0 ?
 
Old 01-03-2004, 04:25 PM   #4
e1000
Member
 
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582

Original Poster
Rep: Reputation: 30
well, i did that, still dont have sound with either of the games.

any other suggestions?
 
Old 01-03-2004, 04:33 PM   #5
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
I have a solution to the quake3 issue (it solved my issue)... I will post it up later.. you have to add a line to your startup script..

but before i do.. do you get any sound at all?
 
Old 01-03-2004, 04:35 PM   #6
minio
Member
 
Registered: Sep 2003
Location: Czech Republic - Prague
Distribution: Slackware 9.1
Posts: 61

Rep: Reputation: 15
Did you try to run them from terminal? I have got this problem with some games when i tried to run them directly from GUI but when i open terminal and run them from it they worked OK.
 
Old 01-03-2004, 04:43 PM   #7
e1000
Member
 
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582

Original Poster
Rep: Reputation: 30
yes I have sound, xmms gives me sound and my winmodem driver from linuxant gives sound output through my speakers. plz post that solution you said worked for you.

yes, I ran it from the terminal, mostly cause i wanted to see if it gave any error messages; I didnt see any nor did I get sound. I also tried baflag from terminal, no sound.
 
Old 01-03-2004, 05:29 PM   #8
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
ok.. when runnign ET (i dont have quake 3 installed but the fix i used was for quake3) i got an error in the terminal... "could not map /dev/dsp nmap /dev/dsp" the message was something along those lines. The fix for my situatuation (and other from what i have read)

was this

my install directory is the following
/usr/local/games/enemy-territory/
in that directory i editied the "et" script (in your caseu the script should be quake3) and added the following line right after "cd "/usr/local/games/enemyterritory""

Quote:
echo "et.x86 0 0 direct" >/proc/asound/card0/pcm0p/oss
in your case replace et.x86 w/ quake3.x86

next I ran this command as root
chmod -R 775 /proc/asound/card0/pcm0p/

do not ask me about the secuity of the above command... may not be safe.. but i could care less if it was or wasnt

next recreate your symlink

ln -s et /bin

remember i was using ET.. but the game engines are the same.. and the fix applies to both.. so replace any ET stuff i have listed.. with the appropriate quake3 file.

thanks
trey
 
Old 01-03-2004, 08:01 PM   #9
e1000
Member
 
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582

Original Poster
Rep: Reputation: 30
I restarted quake 3 and you were right about that mmap error, so I did what you said and it gave me a new error, but i tried quake 3 again and it gave me the same old error. now I cant get anything but the old error.

so where did get that info, mabee a link can help me find what else i did wrong. (unless u figured it out all ur self, then i give u credit)
 
Old 01-03-2004, 08:57 PM   #10
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
i found it on happypenguin.org...

what is the new error?? post up the script file.. and post up the new error.
 
Old 01-03-2004, 09:41 PM   #11
e1000
Member
 
Registered: Oct 2003
Location: California
Distribution: Ubuntu
Posts: 582

Original Poster
Rep: Reputation: 30
ok, i did what you said and i still get this error message

------- sound initialization -------
Could not mmap dma buffer PROT_WRITE|PROT_READ
trying mmap PROT_WRITE (with associated better compatibility / less performance code)
/dev/dsp: Input/output error
Could not mmap /dev/dsp
------------------------------------

heres my quake3 script
-------------------------
#!/bin/sh
# Needed to make symlinks/shortcuts work.
# Run Quake III with some default arguments

cd "/usr/local/games/quake3"
echo "quake3.x86 0 0 direct" >/proc/asound/card0/pcm0p/oss
./quake3.x86 $*
exit $?
-------------------------
 
Old 01-03-2004, 10:54 PM   #12
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
check this thread out... http://www.linuxquestions.org/questi...map+dma+buffer
 
Old 02-01-2004, 07:50 AM   #13
Rodrin
Member
 
Registered: May 2003
Location: Upstate NY, U.S.
Distribution: Slackware
Posts: 248

Rep: Reputation: 31
Do you happen to have a cs46xx based sound card (like a Turtle Beach Santa Cruz or a Hercules Game Theatre)? If so, try this thread:

http://www.linuxquestions.org/questi...threadid=43847

Incidentally, if you are relying on hotplug to load this module, you will need to blacklist it in hotplug and load it using one of your startup scripts with the correct options.

Last edited by Rodrin; 02-01-2004 at 08:03 AM.
 
Old 02-02-2004, 10:57 PM   #14
Orion
LQ Newbie
 
Registered: Feb 2004
Location: Arlington, TX
Posts: 19

Rep: Reputation: 0
cant you just chmod -R 775 /dev/dsp ?
im having the same prob, and would like to not have to fix every game i install, but rather set the permisions to the soundcard to all users

Last edited by Orion; 02-02-2004 at 11:01 PM.
 
Old 02-03-2004, 02:02 AM   #15
CryptDragoon
Member
 
Registered: Oct 2003
Location: $RANDOM
Posts: 122

Rep: Reputation: 15
I have almost the same problem I either get Quake 3 running with no sound and look in the console and it says /dev/dsp permission denied... or if I put ALSA in Arts the game locks up at the sound init part right at the start and I just get a back screen, I usally have to hit ALT + CTRL + Backspace to get out of it...


I don't see how I get a sound issue because I chmoded my amixer*, adsp*, mixer* and dsp* to 755 and it still wont work. Any sigustions?

Last edited by CryptDragoon; 02-03-2004 at 02:03 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Game sound issues bizzarem1ke Linux - Games 16 09-07-2005 12:47 AM
terrible sound while playing game vegetassj2 Linux - Games 1 04-24-2005 05:50 AM
Quake3: No sound or no game theonebeyond Linux - Games 6 03-17-2005 07:58 AM
Game website messed up sound? NickC Mandriva 3 12-21-2004 08:34 AM
Utter Newbie needs game/sound help Splunge Linux - Hardware 6 12-07-2004 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration