[nas] Re: debugging help: nas enabled mpg123 sounds slow and scratchy?

Jon Trulson jon at radscan.com
Tue Mar 4 00:12:28 MST 2003


On Mon, 3 Mar 2003, Scott Presnell wrote:

> Date: Mon, 03 Mar 2003 21:59:09 -0800
> From: Scott Presnell <srp at tworoads.net>
> To: jon at radscan.com
> Cc: netbsd-help at netbsd.org, nas at radscan.com,
>      Frederick Bruckman <fredb at immanent.net>
> Subject: Re: [nas] Re: debugging help: nas enabled mpg123 sounds slow and
>     scratchy?
>
> Jon Trulson wrote:
> >>2:
> >>
> >>Changing nasd.conf, restarting nasd, and using audioctl -a to check
> >>parameters I found:
> >>
> >>	a) altering maxfrags corresponds to, and changes hiwat as 				expected.
> >>	b) altering minfrags does not alter lowat (always == 1)
> > 	This I will need to look into.
>
> OK, here I was wrong... hiwat and lowat are both correctly managed
> *while the sample is playing* (I was just restarting nasd to check).

	Ok.

>
> >
> >>	c) altering fragsize does not alter blocksize (always == 2048)
> > 	I can try to look at this too, but I don't think this is related
> > to your problem...
> >
> (Blocksize is still fixed at 2048.)
>
> What I also note, while the sample is playing is that audioctl -a reports
>
> play.error=1
>
> when I hear chop (e.g. at 44100Hz)
>
> but
>
> play.error=0
>
> when it sounds fine (e.g. at 32000Hz)
>
> from NetBSD sys/audioio.h
>
> u_char	error;		/* non-zero if underflow/overflow ocurred */
>
> So it sounds like the driver is responding with "overflow ocurred"?

	Or underflow.  Sure would be nice to know which ;-) ...
Definitely a good hint... Anyway to tell which it is?

>
> Is there anywhere I can go with this?
>
> 	Thanks.
>
> 	- Scott
>

-- 
Jon Trulson    mailto:jon at radscan.com
ID: 1A9A2B09, FP: C23F328A721264E7 B6188192EC733962
PGP keys at http://radscan.com/~jon/PGPKeys.txt
#include <std/disclaimer.h>
You talk like a Ferengi.




More information about the Nas mailing list