From owner-freebsd-multimedia Sat Sep 18 18:42:10 1999 Delivered-To: freebsd-multimedia@freebsd.org Received: from poboxer.pobox.com (ferg5200-1-46.cpinternet.com [208.149.16.46]) by hub.freebsd.org (Postfix) with ESMTP id CA54E15116 for ; Sat, 18 Sep 1999 18:42:01 -0700 (PDT) (envelope-from alk@poboxer.pobox.com) Received: (from alk@localhost) by poboxer.pobox.com (8.9.3/8.9.1) id UAA38707; Sat, 18 Sep 1999 20:41:48 -0500 (CDT) (envelope-from alk) From: Anthony Kimball MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 18 Sep 1999 20:41:48 -0500 (CDT) X-Face: \h9Jg:Cuivl4S*UP-)gO.6O=T]]@ncM*tn4zG);)lk#4|lqEx=*talx?.Gk,dMQU2)ptPC17cpBzm(l'M|H8BUF1&]dDCxZ.c~Wy6-j,^V1E(NtX$FpkkdnJixsJHE95JlhO 5\M3jh'YiO7KPCn0~W`Ro44_TB@&JuuqRqgPL'0/{):7rU-%.*@/>q?1&Ed Reply-To: alk@pobox.com To: van.woerkom@netcologne.de Cc: multimedia@freebsd.org Subject: Re: tee-ing a sound stream References: <199909190024.RAA29548@rah.star-gate.com> <199909190034.CAA02916@oranje.my.domain> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14308.15475.162264.375285@avalon.east> Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Quoth Marc van Woerkom on Sun, 19 September: : : Sounds like a generic audio-tee driver would make sense, that : a program writes to, and that iself would pass on data to a file : and a true audio driver. Having wanted to do this for some time, I have formed opinions about how this should be done -- if you are interested: I think it should be done as a device which passes calls on to the existing pcm driver. Make an ioctl which allows one to pass a descriptor to the audio-tee device. The ioctl should be sticky, i.e. should survive closes, so that an aucontrol program can start/stop recording. By passing a descriptor, you make it script-able and allow it to interoperate with sockets, &c. For example, if I want to send all the decoded pcm data to a tcp port, I can use netcat to make that port stdout, and the yet-to-be-written aucontrol program to pass a descriptor for the socket to the driver. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message