LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-11-2006, 07:43 AM   #1
hitman_et
Member
 
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67

Rep: Reputation: 15
Sound Issues (Crackle) with Enemy Territory, Alsa-OSS and DMIX


Hi,
I have a onboard intel8x0, and alsa version 1.0.10. Everything is set up including dmix, i can run multiple xmms instances and everything works fine, both using alsa and aoss xmms(oss output).

The problem arises when i try to use Enemy Territory (any quake3 game for that matter), i can only hear glimpses of sound and that crackles pretty bad.
ET startup stuff:
Code:
------- sound initialization -------
------------------------------------
----- Sound Info -----
sound system is muted
    1 stereo
32768 samples
   16 samplebits
    1 submission_chunk
44100 speed
0x0x9716cd0 dma buffer
No background file.
----------------------
Sound memory manager started
Available Sound Options in ET:
Code:
s_stop
  s_info
  s_list
  s_initsound = 1
  s_nocompressed = 0
  s_testsound = 0
  s_show = 0
  s_debugMusic = 0
  s_currentMusic = sound/music/menu_server.wav
  s_mute = 0
  s_channels = 2
  s_bits = 16
  s_wavonly = 0
  s_defaultsound = 0
  s_mixPreStep = 0.05
  s_mixahead = 0.2
  s_khz = 44
  s_doppler = 1
  s_separation = 0.5
  s_musicvolume = 0.5
  s_volume = 0.8
.asoundrc
Code:
# cat ~/.asoundrc
        pcm.intel8x0 {
           type hw
           card 0
        }

        ctl.intel8x0 {
           type hw
           card 0
        }


pcm.dsp {
    type plug
    ipc_gid	501
    ipc_key_add_uid false
    ipc_perm 0777
    slave.pcm "dmix"
}
# mixer0 can stay unchanged, because
# it isn't used anyway, I guess ;)
ctl.mixer0 {
    type hw
    card 0
}
cat /proc/asound/card0/pcm0p/sub0/hw_params
Code:
access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 1024
buffer_size: 16384
tick_time: 4000
Any help is appreciated.
Thanks
 
Old 04-12-2006, 07:36 PM   #2
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Try to change s_mixahead.
I also notice that /proc/asound/card0/pcm0p/sub0/hw_params have a 48000 rate, and Available Sound Options in ET have 44000. Maybe you can unlock rate in alsamixer.
And maybe you have to manually start artsd with tweaked options.
 
Old 04-12-2006, 08:38 PM   #3
hitman_et
Member
 
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67

Original Poster
Rep: Reputation: 15
No luck, i tried different speeds in ET, however i can only set 11000, 22000 and 44000.
Couldn't find any difference when changing s_mixahead.

I should be able to change the rate in the .asoundrc file, would this help??
 
Old 04-12-2006, 10:45 PM   #4
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Dunno. Try to remove your .asoundrc. Just rename it.
Did you tried to launch your game as root?
Btw, just a link, just in case you don't know this ET mod:
http://truecombat.com/intro.php
 
Old 04-12-2006, 10:52 PM   #5
hitman_et
Member
 
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67

Original Poster
Rep: Reputation: 15
Still no luck
 
Old 04-13-2006, 07:23 AM   #6
hitman_et
Member
 
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67

Original Poster
Rep: Reputation: 15
After some more research I believe the problem lies in the fact that ET uses mmap'ing to access the OSS device files.
Any Ideas?
 
Old 04-13-2006, 04:59 PM   #7
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
artsdsp -m et
 
Old 04-13-2006, 09:57 PM   #8
hitman_et
Member
 
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67

Original Poster
Rep: Reputation: 15
Nope, i'm not using arts.
 
Old 04-14-2006, 09:00 AM   #9
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
That's exactly why you should launch et with this command:
artsdsp -m et
 
Old 04-14-2006, 07:37 PM   #10
hitman_et
Member
 
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67

Original Poster
Rep: Reputation: 15
When i do that, it gives, 'Could not open /dev/dsp'.
I can get further with aoss :S
 
Old 04-14-2006, 09:15 PM   #11
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Strange. Before do this, launch artsd in another terminal and leave it open.
 
Old 04-15-2006, 05:30 AM   #12
hitman_et
Member
 
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67

Original Poster
Rep: Reputation: 15
Ahh yes finally it worked. So I take it, I need the arts daemon running?

Thanks
 
Old 04-15-2006, 06:56 AM   #13
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
Good! Yes you need artsd running, which is the default in KDE (bad idea).
Hope to see you soon on true combat.
 
Old 04-15-2006, 07:07 AM   #14
hitman_et
Member
 
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67

Original Poster
Rep: Reputation: 15
I'm getting a 1-2 second audio delay in et.

Last edited by hitman_et; 04-15-2006 at 07:09 AM.
 
  


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
Sound crackle with RealPlayer and alsa-oss jrbiochem Linux - General 1 11-18-2005 10:05 AM
Enemy territory no sound with alsa drivers richikiki Linux - Games 3 04-24-2005 09:17 AM
Enemy Territory Sound Issues manlief Linux - Games 3 06-08-2004 09:22 PM
Enemy Territory Sound Issues mfarley Linux - Games 9 11-16-2003 03:35 AM
Enemy Territory Mesa issues craigienz Linux - Software 4 08-03-2003 06:20 PM

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

All times are GMT -5. The time now is 10:35 AM.

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