Date: Fri, 11 Feb 2011 17:21:48 -0500 From: Jung-uk Kim <jkim@FreeBSD.org> To: freebsd-java@freebsd.org Cc: Chris <devnullaccount@yahoo.se> Subject: Re: Sound not working from openjdk6? Message-ID: <201102111721.55304.jkim@FreeBSD.org> In-Reply-To: <591837.33750.qm@web29013.mail.ird.yahoo.com> References: <591837.33750.qm@web29013.mail.ird.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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: <HDA VIA VT1708S_0 PCM #0 Analog> (play/rec) default > pcm1: <HDA VIA VT1708S_0 PCM #1 Digital> (play) > pcm2: <HDA VIA VT1708S_0 PCM #2 Digital> (play) > pcm3: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play) > pcm4: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play) > pcm5: <HDA NVidia (Unknown) PCM #0 DisplayPort> (play) > pcm6: <HDA NVidia (Unknown) PCM #0 DisplayPort> (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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102111721.55304.jkim>