Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
 
Thread Tools Display Modes
Old July 13th, 2005   #1
Ricapar
Just Give Me the Beans!
 
Ricapar's Avatar
 
Join Date: Jan 2005
Location: Old Bridge, New Jersey
Beans: 68
Send a message via AIM to Ricapar
Some sound lag problems

When I open some games, I will often get this message:
Code:
ALSA lib pcm_dmix.c:868:(snd_pcm_dmix_open) unable to open slave
The sound will still work, but it will be behind what is going on by about 2-3 seconds.

In alsamixergui, it said this for my sound card:
Card: VIA 82C686A/B rev50
Chip: Cirrus Logic CS4299 rev 4
Any one have any ideas what is causing this and/or how to fix it?
__________________
http://ricapar.ath.cx:89/
Ricapar is offline  
Old July 13th, 2005   #2
BigCdaAnswer3
5 Cups of Ubuntu
 
BigCdaAnswer3's Avatar
 
Join Date: Jan 2005
Beans: 44
Send a message via AIM to BigCdaAnswer3
Re: Some sound lag problems

Quote:
Originally Posted by Ricapar
When I open some games, I will often get this message:
Code:
ALSA lib pcm_dmix.c:868:(snd_pcm_dmix_open) unable to open slave
The sound will still work, but it will be behind what is going on by about 2-3 seconds.

In alsamixergui, it said this for my sound card:
Card: VIA 82C686A/B rev50
Chip: Cirrus Logic CS4299 rev 4
Any one have any ideas what is causing this and/or how to fix it?
trying doing a:

pkill esd

see if that helps
BigCdaAnswer3 is offline  
Old July 13th, 2005   #3
Ricapar
Just Give Me the Beans!
 
Ricapar's Avatar
 
Join Date: Jan 2005
Location: Old Bridge, New Jersey
Beans: 68
Send a message via AIM to Ricapar
Re: Some sound lag problems

Nope =(

I've tried "killall esd", "pkill esd", no luck. When I do "killall esd", it says: "esd: no process killed".
__________________
http://ricapar.ath.cx:89/
Ricapar is offline  
Old July 13th, 2005   #4
varunus
Dark Roasted Ubuntu
 
Join Date: Nov 2004
Location: Purdue University, Indiana
Beans: 817
Dapper Drake Testing/
Re: Some sound lag problems

Can you post your ~/.asoundrc or your /etc/asound.conf (whichever one you have)? Delay problems can usually be fixed by tweaking these files.
varunus is offline  
Old July 14th, 2005   #5
Ricapar
Just Give Me the Beans!
 
Ricapar's Avatar
 
Join Date: Jan 2005
Location: Old Bridge, New Jersey
Beans: 68
Send a message via AIM to Ricapar
Re: Some sound lag problems

/etc/asound.conf:
Code:
pcm.card0 {
type hw
card 0
}

pcm.!default {
type plug
slave.pcm "dmixer"
}

pcm.dmixer {
type dmix
ipc_key 1025
slave {
pcm "hw:0,0"
period_time 0
period_size 2048
buffer_size 32768
rate 48000
}
bindings {
0 0
1 1
}
}
__________________
http://ricapar.ath.cx:89/
Ricapar is offline  
Old July 14th, 2005   #6
varunus
Dark Roasted Ubuntu
 
Join Date: Nov 2004
Location: Purdue University, Indiana
Beans: 817
Dapper Drake Testing/
Re: Some sound lag problems

Reduce period_size to 1024 and buffer_size to 4096. Then type "sudo /etc/init.d/alsa restart" in a console. This will reduce the delay, but may make scratchy sound. If your sound is scratchy, slowly raise each value and restart alsa again until you find the right balance. I'm using an onboard intel 8x0 card (not exactly the best sound card) and those values produce perfect sound with no delays.

Good luck.
varunus is offline  
Old July 14th, 2005   #7
Ricapar
Just Give Me the Beans!
 
Ricapar's Avatar
 
Join Date: Jan 2005
Location: Old Bridge, New Jersey
Beans: 68
Send a message via AIM to Ricapar
Re: Some sound lag problems

I did that, sound didn't become scratchy, but the delay and that little message was still there.
__________________
http://ricapar.ath.cx:89/
Ricapar is offline  
Old July 14th, 2005   #8
varunus
Dark Roasted Ubuntu
 
Join Date: Nov 2004
Location: Purdue University, Indiana
Beans: 817
Dapper Drake Testing/
Re: Some sound lag problems

Hmm...do you only have lag in games? Which games are those? Do they happen to use OSS? If so, there's something you could try adding to your asound.conf...

Add this to the end:
Code:
pcm.dsp0 {
     type plug
     slave.pcm "dmixer"
}
and then restart ALSA.

Does that work?
varunus is offline  
Old July 15th, 2005   #9
Ricapar
Just Give Me the Beans!
 
Ricapar's Avatar
 
Join Date: Jan 2005
Location: Old Bridge, New Jersey
Beans: 68
Send a message via AIM to Ricapar
Re: Some sound lag problems

Going to give that a try. The games I've gotten those thigns with was Quake2, ZSNES(any rom), and a few others I can't remember off the top of my head =(

update: Nope, same message, same lag
__________________
http://ricapar.ath.cx:89/

Last edited by Ricapar; July 15th, 2005 at 01:08 AM.. Reason: update
Ricapar is offline  
Old July 15th, 2005   #10
varunus
Dark Roasted Ubuntu
 
Join Date: Nov 2004
Location: Purdue University, Indiana
Beans: 817
Dapper Drake Testing/
Re: Some sound lag problems

Hm...I did a little searching, and read on the ZSNES forums that it uses SDL for audio output. (I'm not sure about quake.) Do you have the ALSA version of SDL installed? Check synaptic...If you don't it might be trying to play through ESD, which can have lag.
varunus is offline  
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:37 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry