On Feb 10 23:29:18, [email protected] wrote:
> On Mon, Feb 10, 2020 at 10:45:02PM +0100, Jan Stary wrote:
> > I must be missing something obvious.
> > How does aucat mix two mono files into one stereo file
> > as the left and right channel, respectively?
> > 
> 
> You have to specify which file goes to which channel,
> for instance:
> 
>       aucat -n -c 0:0 -i 1.wav -c 1:1 -i 2.wav -c 0:1 -o mix.wav
> 
> 
> There is a multi-channel bus. Inputs files (-i) are written to the bus
> and output files (-o) are read from the bus. Bus channels are numbered
> from 0 to the greatest channel of all files. The per-file -c option
> specifies which channels of the bus the file will provide or consume.

Thank you. The following diff attempts to add a short explanation
along these lines to the manpage. (Is it to wordy?)

Index: aucat.1
===================================================================
RCS file: /cvs/src/usr.bin/aucat/aucat.1,v
retrieving revision 1.114
diff -u -p -r1.114 aucat.1
--- aucat.1     24 Apr 2017 06:47:41 -0000      1.114
+++ aucat.1     11 Feb 2020 06:45:55 -0000
@@ -79,10 +79,17 @@ The options are as follows:
 The buffer size of the audio device in frames.
 Default is 7680.
 .It Fl c Ar min : Ns Ar max
-The range of audio file channel numbers.
-The default is
-.Cm 0:1 ,
-i.e. stereo.
+The range of audio channels.
+For input files, these are the channels the file contributes
+to the global multi-channel bus;
+for output files, these are the channels the file consumes.
+option for details about channel routing.
+If the file header specifies a number of channels,
+.Nm
+will use that by default.
+Otherwise,
+.Cm 0:1
+is the default.
 .It Fl d
 Increase log verbosity.
 .It Fl e Ar enc

> > This mixes the two mono files into the left channel,
> > leaving the right channel empty:
> > 
> > $ aucat -n -i 1.wav -i 2.wav -o mix.wav  
> > 
> 
> Yes, by default '-c 0:0' is assumed for mono files,

For files with a header, aucat uses what the header said about channels.
That makes the above sentence seem to be in conflict with

        The default is 0:1, i.e. stereo.

in the current manpage (also addressed in the above diff).

        Jan


Reply via email to