From owner-freebsd-multimedia@FreeBSD.ORG Sun Feb 8 21:28:55 2015 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4FA2C722 for ; Sun, 8 Feb 2015 21:28:55 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0DB40D7F for ; Sun, 8 Feb 2015 21:28:54 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id E4FEF1FE023; Sun, 8 Feb 2015 22:28:45 +0100 (CET) Message-ID: <54D7D53D.2020504@selasky.org> Date: Sun, 08 Feb 2015 22:29:33 +0100 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: =?UTF-8?B?ItCV0LLQs9C10L3QuNC5INCRLiDQodC/0LDQvNCw0LrQvtCy0YHQutC40Lki?= , freebsd-multimedia@freebsd.org Subject: Re: Sound reasoning References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Feb 2015 21:28:55 -0000 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