Sound not working from openjdk6?

Chris devnullaccount at yahoo.se
Sun Jan 30 22:54:18 UTC 2011


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


      


More information about the freebsd-java mailing list