XMMS & other sound troubles with 5.3-RELEASE

Michael Riexinger michael.riexinger at de.clara.net
Tue Nov 16 08:46:52 PST 2004

On Tuesday 16 November 2004 17:34, Rick C. Petty wrote:
> I am having troubles with 5.3's sound drivers.  Once in awhile I'll
> have popping noises when some programs are using sound, although I
> have been unable to repeat anything reliabliy.  However, I can
> repeatably lock up XMMS (and thus holding /dev/dsp open, preventing
> others from playing sound) if I (1) pause playback and then (2) hit
> stop.  I'm using the built-in OSS driver (1.2.10 libOSS.so) with no
> other plugins enabled. Under heavy load, music skips significantly. 
> I've tried messing with hw.snd.targetirqrate, but that didn't seem to
> help.
> What's very strange is that I am using the exact same setup as I was
> under 5.1-p19, same config files (incl. the kernel config).  I was
> expecting a smooth transition, but it seems like sound is being
> problematic for me.
> I've also noticed audio lag in certain programs (notorious ones such
> as linux-flashplugin*, others under the linux ABI, and many games). 
> This was a problem back in 5.1, but since I'm emailing I thought I'd
> ask a related question:  How would one go about fixing this audio
> lag?  I've tried tuning hw.snd.targetirqrate up to 256 but that just
> makes xmms skip more often and doesn't fix the lag in other programs.
>  I've even gone through the effort of changing buffer sizes, etc. and
> recompiling the laggy programs, but many programs still are about
> 0.3-1.0 seconds behind (ave: 0.5s).  Take games/heretic for
> instance..  Back in the 5.0-RELEASE timeframe, there was zero audio
> lag, and around 5.1 to 5.2.1 sound was completely broken..  now with
> 5.3-R it's lagging 0.5s on the default build.  Any suggestions???
> I did not install the xmms package(s) but built everything from
> scratch. I doubt there's anything strange in my kernel config, since
> it's mostly GENERIC with items removed that exist as KLDs...
Maybe enabling preemption will help you. (options PREEMPTION in the 

Kind regards,

Michael Riexinger
systems engineer

claranet gmbh   internet service provider
tel   +49 (0) 69  - 40 80 18 - 300
email: michael.riexinger at de.clara.net  http://www.claranet.de/

More information about the freebsd-multimedia mailing list