From owner-freebsd-java@FreeBSD.ORG Fri Feb 11 22:22:15 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 53D7A1065670; Fri, 11 Feb 2011 22:22:15 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-java@freebsd.org Date: Fri, 11 Feb 2011 17:21:48 -0500 User-Agent: KMail/1.6.2 References: <591837.33750.qm@web29013.mail.ird.yahoo.com> In-Reply-To: <591837.33750.qm@web29013.mail.ird.yahoo.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201102111721.55304.jkim@FreeBSD.org> Cc: Chris Subject: Re: Sound not working from openjdk6? 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: Fri, 11 Feb 2011 22:22:16 -0000 On Sunday 30 January 2011 05:40 pm, Chris wrote: > Hi, > > I'm trying out the sound APIs in Java under FreeBSD 8.1 with the > latest openjdk6 on an amd64 platform: openjdk version "1.6.0" > OpenJDK Runtime Environment (build 1.6.0-b20) > OpenJDK 64-Bit Server VM (build 17.0-b16, mixed mode) > > And whatever I try do do with the sound system, I get exceptions > saying the format is unsupported, and I don't know if it is me or > the platform.. > > I'm getting the same errors as pointed out in an old thread on this > list: > http://lists.freebsd.org/pipermail/freebsd-java/2006-February/00495 >8.html And trying the test program from the same thread: > http://lists.freebsd.org/pipermail/freebsd-java/2006-February/00495 >9.html > > Gives errors that "No line matching interface SourceDataLine is > supported." (and the same for TargetDataLine). > > Am I doing something seriously wrong (e.g. is there something I > should have initialized?) or is this known to not work? > > Btw, /dev/sndstat says (running snd_hda driver, which works fine > from e.g. mplayer, so the sound in the OS is working at least): > FreeBSD Audio Driver (newpcm: 64bit 2009061500/amd64) > Installed devices: > pcm0: (play/rec) default > pcm1: (play) > pcm2: (play) > pcm3: (play) > pcm4: (play) > pcm5: (play) > pcm6: (play) > > Any help appreciated. OpenJDK does not include sound support for OSS because of copyright issues. I just added ALSA support via audio/alsa-plugins. Please update ports and try again. You need to do "make config" and select "SOUND" because it is turned off by default. Cheers, Jung-uk Kim