Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jan 2011 22:40:16 +0000 (GMT)
From:      Chris <devnullaccount@yahoo.se>
To:        freebsd-java@freebsd.org
Subject:   Sound not working from openjdk6?
Message-ID:  <591837.33750.qm@web29013.mail.ird.yahoo.com>

next in thread | raw e-mail | index | archive | help
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/004958.html
And trying the test program from the same thread:
http://lists.freebsd.org/pipermail/freebsd-java/2006-February/004959.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.

/Chris


      



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?591837.33750.qm>