Installing and Deploying JOALMixer
Installing 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.
Launching Desktop App
To launch a desktop application using the mixer, 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);