LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 07-02-2005, 04:20 AM   #1
Ojustaboo
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Rep: Reputation: 0
Doom3 sound keeps stopping


Hi all

I've spent hours (literally) getting 5.1 sound to work with Doom3.

I finally got it working by issueing the following command

doom3 +set s_alsa_pcm surround51 +set s_numberOfSpeakers 6

I now have doom3 & ROE working beautifully with perfect sound and perfect graphics.

The only problem is, after about 3 - 4 mins the sound simply stops. This happens on both Doom3 and ROE. When the sound stops, if I get the options screen up and cycle the sound (eg click on ALSA and change to BEST, or if it's on BEST, Click on BEST, cycle through OSS and back onto ALSA) the sound springs back into life. Then 3 - 4 mins later, it stops again.

I've run various tests and it doesn't appear to be triggered by any particular point in the game, just after a certain time. If I start ROE and watch all the intro, it happens 10 secs after I have control. But if I skip the intros, it happens further on (but after roughly the same amount of time).

The terminal I run it on is showing the following

-----------------------------------------------------------------------------------------------------------

snd_pcm_writei failed: Broken pipe

idAudioHardwareALSA::Write: 4096 frames overflowed and dropped (LOADS OF THESE)

Shutting down sound hardware
----------- Alsa Shutdown ------------
close pcm
dlclose
--------------------------------------
dlopen(libasound.so.2)
asoundlib version: 1.0.8
Alsa is available
------ Alsa Sound Initialization -----
opened Alsa PCM device surround51 for playback
device buffer size: 5461 frames ( 65532 bytes )
allocated a mix buffer of 49152 bytes
----------------------------------------------------------------------------------------------------------

I presume the last bit is showing where the sound gets re-initalise when I go into options.

This iis driving me nuts. Any help or suggestions greatly appreciated (don't want to use OSS, I want the 5.1 sound)

SBlive 5.1 sound card
AMD 64 3400+
1GB RAM
Geforce 6800 GT 256MB
Asus k8v MB
Gentoo 2.6.11

Thanks

Phil

Last edited by Ojustaboo; 07-02-2005 at 04:21 AM.
 
Old 07-03-2005, 12:05 AM   #2
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
The exact same thing happened to me, I did find somewhere the following mod to the id startup script that made it work again.
exec ./doom.x86 +set s_alsa_pcm plughw:0
 
Old 07-03-2005, 07:51 AM   #3
Ojustaboo
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by randyding
The exact same thing happened to me, I did find somewhere the following mod to the id startup script that made it work again.
exec ./doom.x86 +set s_alsa_pcm plughw:0
Thanks for the tip but unfortunately, while this does stop the problem, it also stops me having surround sound
I've even tried using the +set s_numberOfSpeakers 6 opion with it, but still no surround sound

Looks like I will have to boot windows to pay

best

Phil
 
Old 07-03-2005, 12:08 PM   #4
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
Ok, well that kind of sucks, maybe switching to OSS emulation will work. I have found that OSS emulation works great for all the other games but haven't looked up how to set that up on D3 since Alsa was working fine.

One thing about Alsa's OSS emulation, you'll need to enable it in the game of course (I don't know how right now) but also tell the Alsa driver about the executable program's name with this statement (as root)...
Code:
echo "doom.x86 0 0 direct" >/proc/asound/card0/pcm0p/oss
See this link for an explanation of why this works.
http://www.alsa-project.org/~iwai/OSS-Emulation.html
Good luck and please post back if you get OSS emulation working and tell us how.
Thanks.

Edit...
P.S. How well do you like surround sound with D3, I'm asking because I just got ROE yesturday and I'm still using cheap stereo speakers and no subwoofer. If its a "big wow" to upgrade I'll make the investment and look for a good speaker system. What hardware do you recommend? Just wondering.

Last edited by randyding; 07-03-2005 at 12:21 PM.
 
Old 07-03-2005, 04:05 PM   #5
Ojustaboo
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by randyding
P.S. How well do you like surround sound with D3, I'm asking because I just got ROE yesturday and I'm still using cheap stereo speakers and no subwoofer. If its a "big wow" to upgrade I'll make the investment and look for a good speaker system. What hardware do you recommend? Just wondering. [/B]
Thanks, will have a play. According to http://zerowing.idsoftware.com/linux/doom/

`sound card, OSS or Alsa, stereo sound and 5.1 are supported with both APIs`

so it looks like I should be able to get OSS working in 5.1.

Having played Doom 3 under windows with 5.1 sound, having 5.1 for ROE is a necessity. It's a big wow for me. I have my 2 rear speakers on stands behind me and just doing something like turning round so the person who's talking is behind you, and actually hearing them behind you, is amazing. Might not sound that amazing to some, but once you've played like that, going back to stereo is a major downgrade. The over all atmosphere with doom 3 and surround is amazing compared to stereo, I cant recomend it enough.

As for what hardware, I'm no expert.

An sb live 5.1 was included in my PC package along with a Trust 4000P 5.1 home theatre system.

There's a review here

http://www.pcreview.co.uk/reviews/Au...peaker_System/

They didn't give it a top mark review, then again it is cheap. Personally I'm more than happy with the sound quality.

best

Phil
 
Old 07-05-2005, 01:12 AM   #6
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
I just found where I got the info from, here it describes how to setup multichanel sound with Alsa, might help with your issue.

http://zerowing.idsoftware.com/linux...323d0e52ab126f
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Quake3 and Doom3 - no sound on Fedora Core 3 vanquisher Linux - Games 21 04-22-2006 05:52 AM
No sound in doom3 corbintechboy Linux - Games 2 08-05-2005 03:44 AM
doom3 berrance Linux - Games 3 11-30-2004 04:12 PM
I play doom3 in linux but no sound. ayiiq180 Linux - Software 1 10-26-2004 12:22 AM
Doom3 nrunge Linux - Games 38 08-26-2004 01:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 01:09 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