From owner-freebsd-java Fri May 4 4:10:28 2001 Delivered-To: freebsd-java@freebsd.org Received: from icope.com (PPP-89-112.bng.vsnl.net.in [202.54.89.112]) by hub.freebsd.org (Postfix) with SMTP id 1165537B423 for ; Fri, 4 May 2001 04:10:25 -0700 (PDT) (envelope-from ksudhir@icope.com) Received: from nd101 by icope.com with SMTP (MDaemon.v2.7.SP5.R) for ; Fri, 04 May 2001 16:42:39 +0530 From: "Sudhir Kumar" To: "'java-port@FreeBSD.ORG'" Subject: Reading and writing audio data at the same time on Linux Date: Fri, 4 May 2001 16:57:27 +0530 Message-ID: <51C3A5885AC5D111B68100201861C72750218D@INTERCOPE> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-MDaemon-Deliver-To: freebsd-java@FreeBSD.ORG X-Return-Path: ksudhir@icope.com Reply-To: KSudhir@icope.com Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I am doing an application (voice based) that require "Source data line"(audio data can be read) and "Target data line"(data may be written) to be open at the same time. I am creating two threads, one for reading, and other for writing and starts both at same time. On Windows 2000, both thread runs, but on Linux one thread blocks. If thread started reading the audio data from "Source data line" then other will wait for some resource and vice versa. If i run one thread in my application (any one thread), it works. If i run each thread in different application, it blocks. Everything runs perfectly well on Windows 2000. I am using jdk1.3 on SuSe Linux 7.0 and using javax.sound.sampled package. Can anyone give me an idea of what to do? I would be glad to explain more. Thanks in advance for your help. Sudhir To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message