"New" actually isn't quite true anymore, since I've been using the core of this library for over 2 years and it's even been
lying around here for close to that long, but only recently really got around to make it more library like and standalone, apart from the
JOAL dependency and some other packages of my toxiclibs project...
http://code.google.com/p/toxiclibs/downloads/list
audioutils-0002 is the first public release of this library and you can do the following with it:
* Play & loop multiple audio files (mono & stereo, WAV only) without any performance loss (In a
recent project I'm playing 96 stereo samples at the same time whilst still getting 60fps in OpenGL).
* No glitching when looping (unless badly edited samples or when running out of voices).
* On sound cards supporting that kind of thing, playback will be in true 3D (with doppler effect, falloff etc.) Cheaper sound cards will only have left/right panning
* The library has a
multi-timbral manager for playing multiple instances of the same audio buffer without interrupting/restarting currently playing ones.
* AudioSource & SoundListener classes extend Vec3D (from the fairly popular geomutils package) and so can be directly used in vector maths.
* As with all of my other libraries, I went to great lengths not to have any direct dependency on the monolithic PApplet or any other 3rd party, so this library can be used in any Java based context (however the demos are done in Processing).
* Because the underlying JOAL library has not received the same love from Sun as its sibling
JOGL and has not been issued with a digitally signed certificate, you can't unfortunately use the library for projects running in a web browser.
To get you started the only demo available for this lib can be downloaded from here:
http://toxiclibs.googlecode.com/files/audioutils-demos.zip (5.2MB)
It's a sample based sequencer player showing off various interesting parts and usage patterns of the lib...
The library comes bundled with the latest version of JOAL (1.1.2), but if you haven't done so yet, you might have to download the actual OpenAL drivers from here too (not sure anymore, I believe its works automatically on OSX (as expected ;)):
http://connect.creativelabs.com/openal/Downloads/Forms/AllItems.aspx
Finally, you'll also need to download/update the "geomutils" package from the toxiclibs repository... There was a new release yesterday!
Online javadocs are available here:
http://dev.postspectacular.com/docs/audioutils/
Hope some of you find this useful! K.