JOALMixer java files (as of 7 July 2007)

JOALMixer.java
JOALSample.java

JOALMixer jar file (as of 7 July 2007)

Jar File Description
joalmixer.jar Java files needed to use the JOALMixer

 

How to use the JOALMixer

To use the JOALMixer with a webstart application simply add the following line to your jnlp file:

<extension href="http://download.java.net/media/java3d/webstart/release/java3d-1.5.1-joal.jnlp"/>

This installs OpenAL, JOAL and the JOALMixer together with Java3D 1.5.1 which is everything needed to use the JOALMixer.

 

To use the JOALMixer with a desktop application you need to install OpenAL and JOAL (or bundle the jars and native libraries with your application), then put the JOALMixer.jar in the classpath of your application

Then when launching your application use

java -Dj3d.audiodevice="org.jdesktop.j3d.audioengines.joal.JOALMixer" yourApplication

and in your code use viewer.createAudioDevice();

OR

Initialize the JOALMixer directly in your code with:

PhysicalEnvironment pe = new PhysicalEnvironment();

JOALMixer joalMixer = new JOALMixer(pe);

joalMixer.initialize();

pe.setAudioDevice(joalMixer);

viewer.getView().setPhysicalEnvironment(pe);

 

Webstart examples from https://j3d-webstart.dev.java.net/test/

Jar File Description
BackgroundSoundTest A example of using a BackgroundSound
PointSoundTest A example of using a PointSound

Links

OpenAL Link to the OpenAL website where you can download OpenAL for Windows, Mac and Linux
JOAL Link to the JOAL website where you can download JOAL for Windows, Mac and Linux