Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SDL Sound Lag
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
FRiO
n00b
n00b


Joined: 30 Jun 2003
Posts: 45

PostPosted: Mon Jul 07, 2003 8:17 am    Post subject: SDL Sound Lag Reply with quote

Hi all,
I've recently been having issues with SDL sound lagging. In games like Cube, there's a constant difference between me performing an action and the sound occurring. Now, I'm assuming that it has something to do with the fact that it's using aRTs as the sound output device... are there any console commands to use when starting aRTs that cause this sound lag to stop? I know, I know, don't use arts in the first place... but I can't get the ALSA dmix plugin to work, hence software mixing doesn't work... and I can't afford a card with hardware mixing for quite a while.

*Sigh* Going back to Windows is sorely tempting D:!
Back to top
View user's profile Send private message
FRiO
n00b
n00b


Joined: 30 Jun 2003
Posts: 45

PostPosted: Tue Jul 08, 2003 12:06 am    Post subject: Reply with quote

Bump'd.

Please, I really need help with this!
Back to top
View user's profile Send private message
Woody
Guru
Guru


Joined: 30 Nov 2002
Posts: 592
Location: Milwaukee

PostPosted: Tue Jul 08, 2003 5:48 am    Post subject: Reply with quote

I don't use arts, but from looking at the --help output I see:
Quote:

-F <fragments> number of fragments
-S <size> fragment size in bytes

I would imagine the latency is determined by F*S so you need
to get these values down. If I start artsd with debug output
it opens the device with S=1024 (reasonable) and F=7 (not
so reasonable) for a latency of 40 ms (horrible). A reasonable
value would be F=2. The downside is performance...smaller
buffer makes for tighter constraints and may result in pops
because your system can't keep up with a hungry sound card.
HTH.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum