From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 25 19:32:48 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 4FBC316A41F for ; Fri, 25 Nov 2005 19:32:48 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from t-mta3.odn.ne.jp (mfep3.odn.ne.jp [143.90.131.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B26843D5C for ; Fri, 25 Nov 2005 19:32:46 +0000 (GMT) (envelope-from kazuhito@ph.noda.tus.ac.jp) Received: from localhost ([211.121.97.79]) by t-mta3.odn.ne.jp with ESMTP id <20051125193245182.SINH.496069.t-mta3.odn.ne.jp@mta3.odn.ne.jp>; Sat, 26 Nov 2005 04:32:45 +0900 Date: Sat, 26 Nov 2005 04:32:44 +0900 (JST) Message-Id: <20051126.043244.343190160.kazuhito@ph.noda.tus.ac.jp> To: zazubrik@mail.ru From: Kazuhito HONDA In-Reply-To: References: <5F806055-9A04-4A91-9FA5-F41C4F7B9C91@mail.ru> <20051125.141025.945472619.kazuhito@ph.noda.tus.ac.jp> X-Mailer: Mew version 3.3 on XEmacs 21.4.17 (Jumbo Shrimp) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 19:32:48 -0000 From: Artem Ignatiev Subject: Re: uaudio question Date: Fri, 25 Nov 2005 17:53:23 +0300 > 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. I see. But I don't know what cause your problem. I haven't found any codes which may cause it in uaudio*.[hc]. However, I can't say any explicit demonstration. It might comes from low-level USB system of FreeBSD, perhaps. I made a mistake that full-duplex didn't work. But it eased me that it worked even though it had the problem. Sincerely yours, Kazuhito HONDA