[nas] [PATCH] changed method of setting the input gain

Jon Trulson jon at radscan.com
Mon Jul 24 18:47:17 MDT 2006


On Mon, 24 Jul 2006, Paul Fox wrote:

> erik wrote:
> > On Sun, Jul 23, 2006 at 10:29:07PM -0600, Jon Trulson wrote:
> > >         Hmm... It should setup default gains and recsrc if mixerinit
> > >         is true.
> >
> > That's my opinion as well.
> >
> > >         It should probaby setup these defaults every time it
> > >         opens the device, shouldn't it?
> >
> > I don't think so. The defaults should be applied the first time the
> > device is opened. After that the last set values should be activated
> > (what is done now to keep the changes made while the device was
> > released).
>
> but isn't the point of releasing the device that you want to play
> well with other users of the device?  in that case, shouldn't you
> touch nothing at all on a re-acquire of the device?  seems to me
> the server should query the device for current settings when it
> re-opens, and start from there.
>

         Well, yes and no (at least for my case).  ReleaseDevice
         functionality is for 'playing nice' with other apps, by not
         hogging the device.  It really says nothing about the mixer.
         Choices have been made by the original voxware developers,
         that are not what we would find useful in our particular
         scenarios :)

         As to what nas should do to the mixer on a re-aquire, seems to
         be a matter of debate :)

         It seems you would prefer behavior '0' in the list in my last
         message.  Right now, you can't do that.  For me (and my
         setup/uses) behavior '2' would be preferable.  Can't quite do
         that either.

         If we can come to an understanding of what people need then
         there is no reason we can't please everybody here :) I can
         modify the parser fairly easily, and I'd like to clean up some
         of this 'leave_device' etc crap in auvoxware as well.


> paul
> =---------------------
> paul fox, pgf at foxharp.boston.ma.us (arlington, ma, where it's 62.6 degrees)
>

-- 
Jon Trulson
mailto:jon at radscan.com http://radscan.com/~jon
#include <std/disclaimer.h>
"No Kill I" -Horta




More information about the Nas mailing list