Im runing ubuntu 7.10 gutsy I installed ut with the zip files and the install script. But in game i get even just loading up the main screen i get a sound lage of about 1/2 a second or so. Ive tried tweaking cl_mixahead but it dosent seam to help. Is there any cvrs or anything to tweak sound settings?. I also have alsa setup and runing to do mixing could something be screwy there? I dont seam to get sound lag in movies or music. I hope this can be fixed because im getting 90 fps in ubuntu and only 60 in win xp.
Bourbon
Advertisement
Page 1 of 1
sound lag
#4
Posted 18 December 2007 - 10:39 PM
Please provide us your cat /proc/asound/cards
Mouse input lag solution: http://forums.urbant...pic,8431.0.html and http://forums.urbant...pic,9214.0.html
Mouse input lag solution: http://forums.urbant...pic,8431.0.html and http://forums.urbant...pic,9214.0.html
#5
Posted 19 December 2007 - 05:14 AM
cat /proc/asound/cards spits out:
also to get sound to work threw my head set i had to create a asound.conf which reads as fallows:
some thing could be wrong in my config file as i am a come pleat noob to setting up mixing and the like. i have been trying a lot of diferent things to fix this issue but none have worked i recently tried s_useopenal but that didnt work. This is just weird as like i said before movies and music do not lag at all.
0 [CA0106 ]: CA0106 - CA0106
Live! 7.1 24bit [SB0413] at 0xd8e0 irq 21
1 [default ]: USB-Audio - Microsoft LifeChat LX-3000
Microsoft LifeChat LX-3000 at usb-0000:00:1d.1-2, full speed
also to get sound to work threw my head set i had to create a asound.conf which reads as fallows:
pcm.my_card {
type hw
card 1
#mmap_emulation true
}
pcm.dmixed {
type dmix
ipc_key 1024
# ipc_key_add_uid false # let multiple users share
# ipc_perm 0666 # IPC permissions for multi user sharing (octal, default 0600)
slave {
pcm "my_card"
# rate 48000
# period_size 512
}
}
pcm.dsnooped {
type dsnoop
ipc_key 2048
slave {
pcm "my_card"
# rate 48000
# period_size 128
}
}
pcm.asymed {
type asym
playback.pcm "dmixed"
capture.pcm "dsnooped"
}
pcm.pasymed {
type plug
slave.pcm "asymed"
}
pcm.dsp0 {
type plug
slave.pcm "dmixer"
}
pcm.!default {
type plug
slave.pcm "asymed"
}
some thing could be wrong in my config file as i am a come pleat noob to setting up mixing and the like. i have been trying a lot of diferent things to fix this issue but none have worked i recently tried s_useopenal but that didnt work. This is just weird as like i said before movies and music do not lag at all.
Advertisement
#6
Posted 19 December 2007 - 05:55 AM
My suggestion: Dont use dmix plugins with gaming. It adds horrible latency delays in the sound. Maybe unless you run real-time Linux kernel with jackd, but i dunno, i havent tried that .. yet. Might be funny to try that out on a cold rainy day...
But i'm guessing you are doing all that because your USB headset is on the secondary device (even tho it's set up as default for alsa). What you could try is to tell the ca0106 module NOT to take the primary index number. So the USB audio becomes the default OSS device.
Look in /etc/modprobe.d/alsa-base and add:
But i'm guessing you are doing all that because your USB headset is on the secondary device (even tho it's set up as default for alsa). What you could try is to tell the ca0106 module NOT to take the primary index number. So the USB audio becomes the default OSS device.
Look in /etc/modprobe.d/alsa-base and add:
options snd-ca0106 index=-2
#7
Posted 19 December 2007 - 09:24 PM
I added
i dont know if this helps but when i do a lsmod |grep snd i get:
shouldnt all these be pointing to 1? as that is my default sound device? also i dont know if this will help narrow down the problem but the intro scene music is chopy at best but all other game sounds are normal and fine just lag half a second behind.
options snd-ca0106 index=-2
to the /etc/modprobe.d/alsa-base rebotted and lost all sound threw my headset.i dont know if this helps but when i do a lsmod |grep snd i get:
snd_ca0106 34720 0
snd_ac97_codec 100644 1 snd_ca0106
snd_usb_audio 81024 1
snd_pcm_oss 44672 0
snd_mixer_oss 17664 1 snd_pcm_oss
snd_pcm 80388 4 snd_ca0106,snd_ac97_codec,snd_usb_audio,snd_pcm_oss
snd_seq_dummy 4740 0
snd_usb_lib 17920 1 snd_usb_audio
snd_seq_oss 33152 0
snd_seq_midi 9600 0
snd_hwdep 10244 1 snd_usb_audio
snd_rawmidi 25728 3 snd_ca0106,snd_usb_lib,snd_seq_midi
snd_seq_midi_event 8448 2 snd_seq_oss,snd_seq_midi
snd_seq 53232 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 24324 2 snd_pcm,snd_seq
snd_seq_device 9228 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd 54660 14 snd_ca0106,snd_ac97_codec,snd_usb_audio,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_hwdep,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore 8800 1 snd
ac97_bus 3200 1 snd_ac97_codec
snd_page_alloc 11400 2 snd_ca0106,snd_pcm
usbcore 138632 7 snd_usb_audio,snd_usb_lib,xpad,usbhid,ehci_hcd,uhci_hcd
shouldnt all these be pointing to 1? as that is my default sound device? also i dont know if this will help narrow down the problem but the intro scene music is chopy at best but all other game sounds are normal and fine just lag half a second behind.
#8
Posted 20 December 2007 - 03:10 AM
The index=-2 trick works for me on a system with onboard audio and a pci audio device (SB); but your is an usb so that might be different (did you booted with the USB device already attached?).
From your lsmod listing, the usb audio device module seems to be loaded. You should also check or the device is actually available by typing:
The delay you have is caused by having the audio stream that needs to be processed first through the ALSA dmix plugin.
From your lsmod listing, the usb audio device module seems to be loaded. You should also check or the device is actually available by typing:
cat /proc/asound/cards
The delay you have is caused by having the audio stream that needs to be processed first through the ALSA dmix plugin.
#9
Posted 21 December 2007 - 05:51 AM
cat /proc/asound/cards
says my usb headset is there and is default.I do boot with it attached so no hot pluging or any thing to break there.
I figured it was something with alsa would it be a good idea to try using arts or some outher audio mixer thingy?Is there a way to not use the dmixer plug and still achieve mixing(i assume that's where arts or jack comes in to play)?
Also would it be possible to use my sound card for hardware mixing and then some how clone it or slave it to my usb headset and do it that way?
Page 1 of 1
1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users
Advertisement