Date: Sun, 8 Feb 2015 22:22:48 +0100 From: =?UTF-8?B?0JXQstCz0LXQvdC40Lkg0JEuINCh0L/QsNC80LDQutC+0LLRgdC60LjQuQ==?= <spamakowski@gmail.com> To: freebsd-multimedia@freebsd.org Subject: Sound reasoning Message-ID: <CADZMZ90tVR1cuavEOZn___WqhNH%2BtTsRg7wTe_D2LjhyjDYbBw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi. Is there a point to writing a pcm device to have multiple "channel"s in the same direction? Say, two SND_FORMAT(AFMT_S16_LE, 1, 0) for record and two for playback, vs. just one SND_FORMAT(AFMT_S16_LE, 2, 0) in each direction. pcm_register() has so prominently two arguments 'numrec' and 'numplay' and even if they are ignored, one can do pcm_addchan() any number of times. How is this expressed to the user-land programmer? "Read the code" is a fine answer, but it would be nice if someone can readily explain the idea behind the options.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADZMZ90tVR1cuavEOZn___WqhNH%2BtTsRg7wTe_D2LjhyjDYbBw>