From owner-freebsd-multimedia@FreeBSD.ORG Fri Jul 11 08:00:23 2008 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FC83106564A; Fri, 11 Jul 2008 08:00:23 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id B10A68FC1F; Fri, 11 Jul 2008 08:00:22 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A56336.dip.t-dialin.net [84.165.99.54]) by redbull.bpaserver.net (Postfix) with ESMTP id 751B32E0E5; Fri, 11 Jul 2008 10:00:15 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 6F803134DC0; Fri, 11 Jul 2008 10:00:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1215763203; bh=7SlZrlkUdyxHEVqJwd6z7AjU+5M2L9d35 8Yp0tizGLI=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=AIUNvHtEo2wUb4f/thvRztqieK2L7De/ryvmHrAwnVjR87MuNicycHtEq91yM5fJq 2WB2loewJGgIbC+6sZh2US8R1Ipu1lDNjrhgt22+gKXH+XtGxqk0nToOxqugnPYVpI3 6WrpxU4gRe4Z+DhedCHFNcBlgDKAv8oM5AxUo9fRifbNXYEEpwY2u8E3UfMUI+9XnwK jCYHMW91ncUaeCdXlazDCrDcraSnKAEwqKQf5OHoKVSxjvHE2xBpoKgA86B/evarb+V hUzsJ9g36QSYzroIyd+dAtyapBzlMQQkdFC7Z60k8vX22lqsDa7oXbd9OpSx+TRfLdZ beWG3kL3A== Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m6B8027D074787; Fri, 11 Jul 2008 10:00:02 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Fri, 11 Jul 2008 10:00:02 +0200 Message-ID: <20080711100002.20844u2b3kvbufwg@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 11 Jul 2008 10:00:02 +0200 From: Alexander Leidinger To: Matthias Apitz References: <20080706110137.GD2606@svm.csie.ntu.edu.tw> <20080711074951.100037zloqohmbgg@webmail.leidinger.net> <20080711073642.GA2149@rebelion.Sisis.de> In-Reply-To: <20080711073642.GA2149@rebelion.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2-RC2) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-13.504, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, MIME_QP_LONG_LINE 1.40, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: Steve Ames , Piet Delport , multimedia@freebsd.org, Rong-En Fan Subject: Re: ports/devel/pwlib and multiple sound devices X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2008 08:00:23 -0000 Quoting Matthias Apitz (from Fri, 11 Jul =20 2008 09:36:42 +0200): > The above device nodes are only created on demand through the dynamic > devfs(5) clone handler. Users are strongly discouraged to access the= m > directly. For specific sound card access, please instead use =20 > /dev/dsp or > /dev/dsp%d. > ^^^^^^^^^^ > > and it works fine with KDE sharing sound with all othe applications; > what is wrong with /dev/dsp0? There may be more than one soundcard in the system. By accessing dsp0, =20 you hardcode the first detected soundcard. This may be not desired by =20 the user. Either provide the possibility to specify a sound device, or use =20 '/dev/dsp', as this allows the user to set the default soundcard. He =20 can decide to route '/dev/dsp' to the second or third instead of the =20 first detected soundcard via a config mechanism. Here's the relevant =20 man page text: ---snip--- hw.snd.default_unit Default sound card for systems with =09=09 multiple sound cards. When using =09=09 devfs(5), the default device for =09=09 /dev/dsp. Equivalent to a symlink from =09=09 /dev/dsp to =09=09 /dev/dsp${hw.snd.default_unit}. hw.snd.default_auto Enable to automatically assign default =09=09 sound unit to the most recent attached =09=09 device. ---snip--- Bye, Alexander. --=20 A good programmer is someone who looks both ways before crossing a one-way street. =09=09-- Doug Linder http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137