From owner-freebsd-java@FreeBSD.ORG Thu Feb 23 15:04:24 2006 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2135C16A420 for ; Thu, 23 Feb 2006 15:04:24 +0000 (GMT) (envelope-from drgeorgiev@mail.ru) Received: from mx5.mail.ru (mx5.mail.ru [194.67.23.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8BAB43D45 for ; Thu, 23 Feb 2006 15:04:23 +0000 (GMT) (envelope-from drgeorgiev@mail.ru) Received: from [80.72.90.70] (port=51103 helo=gg.gg) by mx5.mail.ru with esmtp id 1FCI0y-000Fy0-00 for freebsd-java@freebsd.org; Thu, 23 Feb 2006 18:04:21 +0300 To: "freebsd-java@freebsd.org" Date: Thu, 23 Feb 2006 17:00:45 +0200 From: Georgi Content-Type: text/plain; format=flowed; delsp=yes; charset=windows-1251 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/8.51 (FreeBSD, build 1462) Subject: javax.sound X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2006 15:04:24 -0000 here is the code for test : import javax.sound.sampled.AudioSystem; import javax.sound.sampled.Line; import javax.sound.sampled.LineUnavailableException; import javax.sound.sampled.SourceDataLine; import javax.sound.sampled.TargetDataLine; public class TestDataLine { public static void main(String[] args) throws LineUnavailableException { SourceDataLine sdl = (SourceDataLine) AudioSystem.getLine(new Line.Info(SourceDataLine.class)); System.out.println(sdl.getLineInfo()); TargetDataLine tdl = (TargetDataLine) AudioSystem.getLine(new Line.Info(TargetDataLine.class)); System.out.println(tdl.getLineInfo()); } }