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

Erik Auerswald auerswal at unix-ag.uni-kl.de
Wed Jul 12 07:45:20 MDT 2006


Hi,

if the voxware NAS server is configured to release the audio device when
not playing (this is the default), changing the output gain seems to
work (the server reports the changed value), but it is ignored. The
attached patch changes this: just after reopening the device the mixer
is set to the current gain value. Therefore the output gain of the NAS
server can be set even if no stream is playing.

Erik

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.
-- 
When in doubt, use brute force.
                        -- Ken Thompson
-------------- next part --------------
diff -Naur nas-1.8/server/dda/voxware/auvoxware.c nas-1.8-new/server/dda/voxware/auvoxware.c
--- nas-1.8/server/dda/voxware/auvoxware.c	2006-05-17 02:51:42.000000000 +0200
+++ nas-1.8-new/server/dda/voxware/auvoxware.c	2006-07-12 13:43:05.000000000 +0200
@@ -1014,7 +1014,10 @@
     }
 
   if (relinquish_device)
+    {
       openDevice(AuTrue);
+      setPhysicalOutputGain(getPhysicalOutputGain());
+    }
 
 #ifdef sco
     if (!processFlowEnabled)


More information about the Nas mailing list