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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-11-2006, 07:43 AM
|
#1
|
Member
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67
Rep:
|
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
|
|
|
04-12-2006, 07:36 PM
|
#2
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534
Rep:
|
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.
|
|
|
04-12-2006, 08:38 PM
|
#3
|
Member
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67
Original Poster
Rep:
|
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??
|
|
|
04-12-2006, 10:45 PM
|
#4
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534
Rep:
|
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
|
|
|
04-12-2006, 10:52 PM
|
#5
|
Member
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67
Original Poster
Rep:
|
Still no luck
|
|
|
04-13-2006, 07:23 AM
|
#6
|
Member
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67
Original Poster
Rep:
|
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?
|
|
|
04-13-2006, 04:59 PM
|
#7
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534
Rep:
|
artsdsp -m et
|
|
|
04-13-2006, 09:57 PM
|
#8
|
Member
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67
Original Poster
Rep:
|
Nope, i'm not using arts.
|
|
|
04-14-2006, 09:00 AM
|
#9
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534
Rep:
|
That's exactly why you should launch et with this command:
artsdsp -m et
|
|
|
04-14-2006, 07:37 PM
|
#10
|
Member
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67
Original Poster
Rep:
|
When i do that, it gives, 'Could not open /dev/dsp'.
I can get further with aoss :S
|
|
|
04-14-2006, 09:15 PM
|
#11
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534
Rep:
|
Strange. Before do this, launch artsd in another terminal and leave it open.
|
|
|
04-15-2006, 05:30 AM
|
#12
|
Member
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67
Original Poster
Rep:
|
Ahh yes finally it worked. So I take it, I need the arts daemon running?
Thanks
|
|
|
04-15-2006, 06:56 AM
|
#13
|
Senior Member
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534
Rep:
|
Good! Yes you need artsd running, which is the default in KDE (bad idea).
Hope to see you soon on true combat.
|
|
|
04-15-2006, 07:07 AM
|
#14
|
Member
Registered: Oct 2004
Location: Queensland, Australia
Distribution: Fedora Core 4
Posts: 67
Original Poster
Rep:
|
I'm getting a 1-2 second audio delay in et.
Last edited by hitman_et; 04-15-2006 at 07:09 AM.
|
|
|
All times are GMT -5. The time now is 10:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|