Index | Thread | Search

From:
Jan Stary <hans@stare.cz>
Subject:
Re: aucat: Add generic channel mapping in place of -j and -c options.
To:
Alexandre Ratchov <alex@caoua.org>
Cc:
tech@openbsd.org
Date:
Mon, 18 Mar 2024 13:30:51 +0100

Download raw body.

Thread
I find the swapped order of A/B in -m A/B for -o files
a bit confusing; for example, the manpage example

	aucat -n -i stereo.wav -c 1
		-m 0:0/0:0 -o left.wav
		-m 0:0/1:1 -o right.wav

creates the right.wav having the (only) 0:0 channel
take its data *from* the 1:1 channel of -i stereo.wav;

It is one of the two possibilities of course,
but having the meaning of -m A/B uniform of both -i and -o files
would be slightly less confusing imho.

> +.It Fl m Ar min : Ns Ar max Ns / Ns Ar min : Ns Ar max
> +Map the given range of file channels into the given range of
> +device channels.

If it stays swapped as in the current diff,
the manpage should perhaps say so explicitly.

Also, with -n, there is no "device", so no "device channels".
Would it be clearer to talk about "input channels" and "output channels"
instead in the Fl m portion of the manpage?

At any rate, thank you very much for this,
and for dropping -j in particular.

	Jan