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);

Source

August 13th, 2007 | Leave a Comment

Quickly Delete Cached Pages

wp-cache thumbIf you’re using the wp-cache plugin for wordpress and you’re editing your website often and you have your cache turned on THEN you may want to make a quick link to blow away the pages in the cache. This is so you don’t have to go all the way into the admin pages wp-cache options blah, blah screen.

[YOUR SITE]/wp-admin/options-general.php?page=wp-cache/wp-cache.php&wp_delete_cache

wp_delete_cache is the hidden page attribute that is submitted when you press the delete cache button.

August 6th, 2007 | Leave a Comment

Regular Expression to Strip All Styling

This is a simple regular expression to find all styling inside an html doc.

style="[a-zA-Z\-: %;/0-9#]+"

Use it to find and replace to nothing.

July 10th, 2007 | Leave a Comment

Powered by WordPress | Blue Weed by Blog Oh! Blog | Entries (RSS) and Comments (RSS).