nasd MixerInit (was Re: [nas] native alsa bottom-end )

Erik Auerswald auerswal at unix-ag.uni-kl.de
Sat May 13 23:43:18 MDT 2006


Hi,

On Sun, May 14, 2006 at 12:39:39AM +0100, Steve McIntyre wrote:
> On Sat, May 13, 2006 at 04:38:59PM -0400, Paul Fox wrote:
> >i believe i've figured out the problem.  it's this configuration
> >setting:
> >    # init the mixer on startup? Voxware only.
> >    MixerInit	"no"			
> >
> >not only does this cause the mixer to not be initialized at
> >startup time, but it disables all mixer "set" operations.
> >
> >surely this isn't intentional.  is it?  (see the "leave_mixer" boolean
> >in auvoxware.c)
> 
> Hmmm, that does sound like a bug, yes! Looks like the check in
> setPhysicalOutputGain() is the culprit.

I can confirm this, line 966 in server/dda/voxware/auvoxware.c should be
deleted.

Erik
-------------- next part --------------
diff -ur nas-1.7b/server/dda/voxware/auvoxware.c nas-1.7b.new/server/dda/voxware/auvoxware.c
--- nas-1.7b/server/dda/voxware/auvoxware.c	2005-06-04 22:08:54.000000000 +0200
+++ nas-1.7b.new/server/dda/voxware/auvoxware.c	2006-05-14 07:38:39.000000000 +0200
@@ -963,7 +963,6 @@
     Letsplay = g;
     gusvolume = g | (g << 8);
     if (mixerfd != -1)
-        if(!leave_mixer)
 	i = ioctl(mixerfd, MIXER_WRITE(SOUND_MIXER_PCM), &gusvolume);
 }


More information about the Nas mailing list