We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › JOALSequencerDemo doesn't work
Page Index Toggle Pages: 1
JOALSequencerDemo doesn't work (Read 1438 times)
JOALSequencerDemo doesn't work
Mar 5th, 2009, 4:35pm
 
Hi, I'm Trying to use the sketch demo of the toxiclibs - audioutils on ubuntu 8.10 but I've got this error :

Exception in thread "Animation Thread" java.lang.RuntimeException: Can not get proc address for method "alcCaptureCloseDevice": Couldn't set value of field "_addressof_alcCaptureCloseDevice" in class net.java.games.joal.impl.ALCProcAddressTable
at com.sun.gluegen.runtime.ProcAddressHelper.resetProcAddressTable(ProcAddressHelpe
r.java:68)
at net.java.games.joal.impl.ALProcAddressLookup.resetALCProcAddressTable(ALProcAddr
essLookup.java:109)
at net.java.games.joal.impl.ALCImpl.alcOpenDevice(ALCImpl.java:341)
at net.java.games.joal.util.ALut.alutInit(ALut.java:69)
at toxi.audio.JOALUtil.init(Unknown Source)
at toxi.audio.JOALUtil.init(Unknown Source)
at JOALSequencerDemo.setup(JOALSequencerDemo.java:69)
at processing.core.PApplet.handleDraw(PApplet.java:1400)
at processing.core.PApplet.run(PApplet.java:1328)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: Unable to find and load OpenAL library
at net.java.games.joal.impl.ALProcAddressLookup$DynamicLookup.dynamicLookupFunction
(ALProcAddressLookup.java:66)
at com.sun.gluegen.runtime.ProcAddressHelper.resetProcAddressTable(ProcAddressHelpe
r.java:64)
... 9 more

Anybody has already have this problems or see where is the mistake?

Re: JOALSequencerDemo doesn't work
Reply #1 - Apr 28th, 2009, 6:59am
 
Sorry for not replying sooner, but it's usually a better place to use the toxiclibs mailing list or issue tracker at google code than this forum for dealing with errors...

Anyway, I have no experience with using OpenAL under Linux, but I'd guess you'll need to download some drivers first:

http://ubuntuforums.org/showthread.php?t=89846
Re: JOALSequencerDemo doesn't work
Reply #2 - May 10th, 2009, 10:00am
 
It runs now.
Thanks

If you have another example a little more simple to can understand how works your library, it will help me a lot.
Re: JOALSequencerDemo doesn't work
Reply #3 - Jul 18th, 2009, 10:45am
 
I've just uploaded a new release of this library and also prepared 3 more (simpler) examples for that occasion. get the libs from here:

http://code.google.com/p/toxiclibs/downloads/list

The most basic usage is just this:

Code:

import toxi.audio.*;
import toxi.geom.*;

JOALUtil audioSys;
AudioSource source;

audioSys = JOALUtil.getInstance();
audioSys.init();
source=audioSys.generateSourceFromFile(dataPath("test.wav"));
source.play();


Hth!
Page Index Toggle Pages: 1