From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 25 14:53:39 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 087ED16A41F for ; Fri, 25 Nov 2005 14:53:39 +0000 (GMT) (envelope-from zazubrik@mail.ru) Received: from mx1.mail.ru (mx1.mail.ru [194.67.23.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1F5D43D75 for ; Fri, 25 Nov 2005 14:53:35 +0000 (GMT) (envelope-from zazubrik@mail.ru) Received: from [195.149.104.100] (port=53561 helo=[10.13.66.8]) by mx1.mail.ru with esmtp id 1Efex5-000PpS-00; Fri, 25 Nov 2005 17:53:27 +0300 In-Reply-To: <20051125.141025.945472619.kazuhito@ph.noda.tus.ac.jp> References: <20051119.022305.343188611.kazuhito@ph.noda.tus.ac.jp> <5F806055-9A04-4A91-9FA5-F41C4F7B9C91@mail.ru> <20051125.141025.945472619.kazuhito@ph.noda.tus.ac.jp> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Artem Ignatiev Date: Fri, 25 Nov 2005 17:53:23 +0300 To: Kazuhito HONDA X-Mailer: Apple Mail (2.746.2) Cc: freebsd-multimedia@freebsd.org Subject: Re: uaudio question 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, 25 Nov 2005 14:53:39 -0000 On 25.11.2005, at 8:10, Kazuhito HONDA wrote: > From: Artem Ignatiev > Subject: Re: uaudio question > Date: Mon, 21 Nov 2005 16:25:42 +0300 > >> >> On 18.11.2005, at 20:23, Kazuhito HONDA wrote: >> >>> Please look at these mails: >>> >>> A part of http://docs.freebsd.org/cgi/getmsg.cgi?fetch=10831+0 >>> +archive/2005/freebsd-multimedia/20050501.freebsd-multimedia after >>> `3.'. >>> >> >> That worked, but buffer seems to be 2 secs long... > > Excuse me, but I don't understand your circumstances. > Whose buffer is that? Dunno. ;-) just doing while(1) { read(dev_dsp_fd, buf, BUFSZ); write(dev_dsp_fd, buf, BUFSZ); } gives 2 (sometimes 3, depends on BUFSZ, I've used values 4000, 8000, 16000) second lag, than it begins to plays sounds that were recorded 2 secs (or 3) ago. > And would you please read 3'. in that mail, too. > You must delete one line of uaudio.c for complete full-duplex. Yes, it's just what I've done (actually, I #ifdef 0-ed condition and return)