[nas] [PATCH] changed method of setting the input gain
Paul Fox
pgf at foxharp.boston.ma.us
Thu Jul 27 08:53:35 MDT 2006
erik wrote:
> > is this tossing out one channel of level? (i need to find a
> > voxware manual.) if so, i think that instead we should average
> > the two channels, in case someone set them very differently:
> > gain = ((pcm_level & 0xff) + ((pcm_level >> 8 ) & 0xff)) / 2 ;
> > or something like that.
>
> Since the NAS server only knows one gain value (implicitely used for
> both channels) an average is not really better than tossing away one
> channel IMHO (indeed, I'm tossing away one channel). But if you prefer
> the average I can incorporate this into the next patch version.
a non-nas mixer may set one channel to 100% and the other to 0%. in
that case, i think it would be better for nas to report the average.
i know it's an unlikely case. the average just feels more "symmetric",
somehow.
paul
=---------------------
paul fox, pgf at foxharp.boston.ma.us (arlington, ma, where it's 78.6 degrees)
More information about the Nas
mailing list