Quoting Alexandre Ratchov <a...@caoua.org>:

> On Wed, Feb 08, 2012 at 01:45:03PM +1300, richardtoo...@paradise.net.nz
> wrote:
> > Hi, guys.
> > 
> > I'm not sure if this is an issue, because the defaults might be best
> for a
> > normal/base install, just asking if this is as expected.
> > 
> > This is my desktop/development box. I've got a snapshot of 30th Jan
> and a set
> > of ports from soon after.
> > 
> > OpenBSD 5.1-beta (GENERIC.MP) #172: Mon Jan 30 16:30:40 MST 2012
> > dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
> > 
> > Rhythmbox and Gnome mplayer stuttering a bit playing mp3s ...
> especially if I
> > Alt-Tab to Firefox & Thunderbird (and do a bit of work in them.) If I
> remove
> > hands from keyboard, no stuttering.
> > 
> > I remembered seeing this post ("important audio settings to test")
> > 
> > http://comments.gmane.org/gmane.os.openbsd.tech/27483
> > 
> > And the below (from that post) makes my problems go away:
> > 
> > # sndiod -r 48000 -b 7680 -z 1920
> > 
> 
> 
> Thanks! Have you tried "-b1920 -z480" and "-b3840 -z960", if not,
> could you try them and see whether they fix audio?
> 
> If possible, while stuttering occurs could you type:
> 
>       audioctl play.errors
> 

Hi, Alexandre.

Everything I tried was stuttering today ... then realised it worked better if I
restarted Rhythmbox *after* each sndiod command.  8-)

My "testing" is Rhythmbox playing MP3s with FF 9.0.1 & TB 9.0.1 also running. 
Mostly loading web pages, scrolling down web pages, switching tabs.  On some of
the "heavier" pages FF is taking 30%+ of one CPU.

So ... not too good ...
$ sndiod -b1920 -z480 
$ audioctl play.errors
play.errors=0
$ audioctl play.errors; sleep 5; audioctl play.errors
play.errors=5760
play.errors=7680
$ audioctl play.errors; sleep 5; audioctl play.errors 
play.errors=14880
play.errors=23520
$ audioctl play.errors; sleep 5; audioctl play.errors 
play.errors=30240
play.errors=32640
$ audioctl play.errors; sleep 5; audioctl play.errors 
play.errors=36480
play.errors=39360

... better ...
$ sndiod -b3840 -z960
$ audioctl play.errors
play.errors=0
$ audioctl play.errors; sleep 5; audioctl play.errors 
play.errors=960
play.errors=960
$ audioctl play.errors; sleep 5; audioctl play.errors 
play.errors=2880
play.errors=2880
$ audioctl play.errors; sleep 5; audioctl play.errors 
play.errors=5760
play.errors=5760
$ audioctl play.errors; sleep 5; audioctl play.errors 
play.errors=5760
play.errors=6720
$ audioctl play.errors; sleep 5; audioctl play.errors 
play.errors=8640
play.errors=8640
$ audioctl play.errors; sleep 5; audioctl play.errors 
play.errors=9600
play.errors=9600

... best (if FF is flat out I might get a stutter or two, but for normal use all
good.)
$ sndiod -b7680 -z1920  
$ audioctl play.errors                                
play.errors=0
$ audioctl play.errors 
play.errors=0
$ audioctl play.errors; sleep 5; audioctl play.errors 
play.errors=0
play.errors=0
$ audioctl play.errors; sleep 5; audioctl play.errors 
play.errors=0
play.errors=0
$ audioctl play.errors; sleep 5; audioctl play.errors 
play.errors=0
play.errors=0
$ audioctl play.errors; sleep 5; audioctl play.errors 
play.errors=0
play.errors=0

Thanks.

> and see whether the counter increases during stuttering?
> 
> thanks!
> 
> -- Alexandre

Reply via email to