jbuzzer Logo SourceForge.net Logo

FAQ

  1. I am using Linux (Ubunutu, Mandriva,...). I can only load 1 sample. Then nothing more happens / I get a "Line unavailable Exception"
 

I am using Linux (Ubunutu, Mandriva,...). I can only load 1 sample. Then nothing more happens / I get a "Line unavailable Exception".

Also when jbuzzer has loaded the first sound other programs can't play sound any more. And vice versa. Java seems to steal the sound device.

I won't go into deep about this problem. Saved myself a lot of time researching on javasound for linux, ALSA, dmix,... . I found my answer on http://forum.ubuntuusers.de/topic/java-will-den-sound-fuer-sich-alleine/ (german). But you could google for javsound ubuntu aoss.

Basically this happens if you have a soundcard that does not support hardware mixing. Software mixing won't work with linux. If no hardware mixing is supported java falls back to OSS (open sound system). So the solution is to force ALSA into OSS compatibility mode.

  • sudo apt-get install alsa-oss
  • aoss java -classpath ./lib/logging/log4j-1.2.8.jar:jbuzzer_bin_1.0.6.jar jbuzzer.startup

Last updated on by Achim Westermann visits: