On Thu, Jan 14, 2010 at 11:49:52AM +0100, Jan Stary wrote:
> This is yesterday's current. Trying to record a _mono_
> sound with 'aucat -C 0:0 -o file.wav' seems to always
> result in a _stereo_ file, whether I specify -u or not,
> whether the aucat server is running or not
> (see script and dmesg below).
> 
> I used file(1) to look at the resulting file,
> but also play'd it with sox and ffplay - it is
> indeed stereo, with one chanel silent (and one channel
> containing what I wanted to record into a mono file).
> 
> Am I missing something obvious?
> 

no, this is a bug in aucat (it uses -c instead of -C for
recording, which is wrong). This should fix the problem

-- Alexandre

Index: aucat.c
===================================================================
RCS file: /cvs/src/usr.bin/aucat/aucat.c,v
retrieving revision 1.79
diff -u -p -r1.79 aucat.c
--- aucat.c     11 Jan 2010 13:06:32 -0000      1.79
+++ aucat.c     14 Jan 2010 12:45:58 -0000
@@ -542,7 +542,7 @@ aucat_main(int argc, char **argv)
                fa = SLIST_FIRST(&ofiles);
                SLIST_REMOVE_HEAD(&ofiles, entry);
                if (!wav_new_out(&wav_ops, fa->name,
-                       fa->hdr, &fa->ipar, fa->xrun))
+                       fa->hdr, &fa->opar, fa->xrun))
                free(fa);
        }
        while (!SLIST_EMPTY(&sfiles)) {

Reply via email to