[nas] [PATCH] consistent gain setting in voxware server

Jon Trulson jon at radscan.com
Wed Jul 19 23:08:11 MDT 2006


On Thu, 20 Jul 2006, Erik Auerswald wrote:

> Hi,
>
> On Wed, Jul 12, 2006 at 10:35:24PM -0600, Jon Trulson wrote:
>> On Wed, 12 Jul 2006, Erik Auerswald wrote:
>>>
>>> P.S. I did not change the behaviour of setting the input gain because
>>> this is implemented differently and I don't use NAS for input so I don't
>>> know if it works correctly or not.
>>>
>>
>>         Nice, I had noticed that that did not seem to be working
>>         correctly :)  Applied.
>
> I just did some recording tests (on linux/x86, ALSA, kernel 2.6):
>
> - the input gain is only set when recording has already started
>  -> I'll write a patch to make this work just like the output gain
>

         Ok...

> - On my system the wrong mixer parts are affected, i.e. the value of
>  patching the line or mic input to output, but not the value used for
>  recording (called 'IGain' by aumix). Selecting the input in aupanel
>  (or audemo or ...) works insofar as the line resp. mic level is
>  controlled, but the recording input selection is not done.
>
>  These problems might come from my use of ALSA drivers and the OSS
>  (voxware) NAS server. I don't want to change the current behaviour,
>  because it might work correctly with OSS drivers on linux and/or on
>  other systems using OSS resp. voxware drivers. Is there anybody for
>  whom input selection and gain control work via NAS/voxware?
>
>  Perhaps a config option to use a seperate input selection call and to
>  control the IGain mixer value could be added to the voxware server
>  (if someone finds out how to change these values...).
>

         I guess I'm not sure I follow... I haven't played with
         recording in NAS since I first tried NAS out so many years ago
         :)

         Looking at setPhysicalInputGainAndLineMode(), it does appear
         we try to set the hw gains. What also interesting is that line
         and mic are mutually exclusive with respect to their gain
         settings.

         Maybe if you explain the problem in more detail?  I am also
         using OSS emulation with ALSA, but again, have not tried
         recording in some time, so I am not sure I understand the
         problem...

> Erik
>

-- 
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