From owner-freebsd-multimedia@FreeBSD.ORG Sun Mar 13 13:03:53 2005 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBC1E16A4CE for ; Sun, 13 Mar 2005 13:03:53 +0000 (GMT) Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id E142743D3F for ; Sun, 13 Mar 2005 13:03:52 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd17.aul.t-online.de by mailout01.sul.t-online.com with smtp id 1DASky-00057L-01; Sun, 13 Mar 2005 14:03:44 +0100 Received: from Andro-Beta.Leidinger.net (GMVWhmZO8eomSyUpJN8uH-mJ8yy7nTLovg5w57v3lzYGwnVM38DJ6L@[217.229.215.194]) by fwd17.sul.t-online.de with esmtp id 1DASkh-156l160; Sun, 13 Mar 2005 14:03:27 +0100 Received: from localhost (localhost [127.0.0.1])j2DD2MeR068120; Sun, 13 Mar 2005 14:02:22 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from 192.168.1.5 ([192.168.1.5]) by webmail.leidinger.net (Horde) with HTTP for ; Sun, 13 Mar 2005 14:02:22 +0100 Message-ID: <20050313140222.92g1lfp60owcsw4o@netchild.homeip.net> X-Priority: 3 (Normal) Date: Sun, 13 Mar 2005 14:02:22 +0100 From: Alexander Leidinger To: Mathew Kanner References: <20050312010248.GG2944@cnd.mcgill.ca> <20050313.031425.343188571.kazuhito@ph.noda.tus.ac.jp> <20050312194401.GH2944@cnd.mcgill.ca> In-Reply-To: <20050312194401.GH2944@cnd.mcgill.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.2) / FreeBSD-4.11 X-ID: GMVWhmZO8eomSyUpJN8uH-mJ8yy7nTLovg5w57v3lzYGwnVM38DJ6L@t-dialin.net X-TOI-MSGID: 8086c94a-0248-4f39-9cb6-125d4927625d cc: freebsd-multimedia@freebsd.org Subject: Re: uaudio patch, capabilities X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2005 13:03:54 -0000 Mathew Kanner wrote: >> I expected that only one sampling rate (when discrete) or >> one sampling rate range (when continuous) must be set in caps. >> >> I guess that there are two solutions. >> 1) use only one sampling rate or rage, neglect others. >> 2) select one rate along a speed of a sound source >> when the channel is initialized. >> >> When I challenged it slightly, I aimed at 2). >> It had no problem that I changed the caps at ua_chan_init() in uaudio_pcm.c. > > Hi, > I'm not sure I know exaclty what you mean, but there were I think he means: The audio device doesn't supports a range, it only supports discrete sampling rates: 44100, 48000 and 96000. I'm not sure what the second proposal is, but my proposal is (without looking at any code, since I don't have much time ATM) to provide the posibility to specify multiple capabilities. So if the device is able to 22500 and 48000 but not 44100, it should have 2 discrete sampling rates set in the capabilities. Yes, this is an example out of the blue, I don't know if the capabilities struct only allows fixed discrete sampling rates in the given range, or if a range means that any sampling value in between min and max are allowed, I also don't know if it's possible to have audio hardware which only supports 22500 and 48000, but not 44100. So depending on the reality our proposals may be moot. :-) Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 A language that doesn't affect the way you think about programming is not worth knowing.