Date: Sun, 08 Feb 2015 22:29:33 +0100 From: Hans Petter Selasky <hps@selasky.org> To: =?UTF-8?B?ItCV0LLQs9C10L3QuNC5INCRLiDQodC/0LDQvNCw0LrQvtCy0YHQutC40Lki?= <spamakowski@gmail.com>, freebsd-multimedia@freebsd.org Subject: Re: Sound reasoning Message-ID: <54D7D53D.2020504@selasky.org> In-Reply-To: <CADZMZ90tVR1cuavEOZn___WqhNH%2BtTsRg7wTe_D2LjhyjDYbBw@mail.gmail.com> References: <CADZMZ90tVR1cuavEOZn___WqhNH%2BtTsRg7wTe_D2LjhyjDYbBw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 02/08/15 22:22, Евгений Б. Спамаковский wrote: > 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. Hi, Sounds similar to what my "virtual_oss" is doing. See: svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b/trunk/ports --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54D7D53D.2020504>