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 › Q: Exporting OpenAL, toxilibs.audioutils
Page Index Toggle Pages: 1
Q: Exporting OpenAL, toxilibs.audioutils? (Read 1194 times)
Q: Exporting OpenAL, toxilibs.audioutils?
May 7th, 2010, 3:08pm
 
I've tried to export the standard examples (any of them) which come with the audioutils OpenAL wrapper from toxi, but without any luck.

My issue is not the actual exporting of the thing (it does export!), but I can't run the exported .app. Funny thing is that it does run fine through the IDE... I can't really wrap my head around this thing at this hour.

For this I'm on a Mac Mini, running OS X.

Some "cheap debugging" tells me it hangs up at the initialization of the JOALUtil obj. (f.ex. "audioSys.init() ).
Does the initialization of the JOALUtil demand something which is not delivered properly in an exported app but is delivered when executing from within the IDE?

Is there anyone that have successfully exported and executed a sketch using OpenAL?

thanks.
Re: Q: Exporting OpenAL, toxilibs.audioutils?
Reply #1 - May 8th, 2010, 1:03am
 
Here's the error message the consol prints. I suppose there's a missmatch between the opengl/openal libs?

Code:

5/8/10 9:54:48 AM [0x0-0x82082].HelloManagedWorld[652] [JavaAppLauncher] Requested [1.5*], launching in [1.6] instead.
5/8/10 9:54:52 AM [0x0-0x82082].HelloManagedWorld[652] Exception in thread "Animation Thread"
5/8/10 9:54:52 AM [0x0-0x82082].HelloManagedWorld[652] java.lang.NoSuchMethodError: com.sun.gluegen.runtime.BufferFactory.nativeOrder(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
5/8/10 9:54:52 AM [0x0-0x82082].HelloManagedWorld[652] at net.java.games.joal.impl.ALCImpl.alcOpenDevice(ALCImpl.java:349)
5/8/10 9:54:52 AM [0x0-0x82082].HelloManagedWorld[652] at toxi.audio.JOALUtil.init(Unknown Source)
5/8/10 9:54:52 AM [0x0-0x82082].HelloManagedWorld[652] at toxi.audio.JOALUtil.init(Unknown Source)
5/8/10 9:54:52 AM [0x0-0x82082].HelloManagedWorld[652] at HelloManagedWorld.setup(HelloManagedWorld.java:69)
5/8/10 9:54:52 AM [0x0-0x82082].HelloManagedWorld[652] at processing.core.PApplet.handleDraw(PApplet.java:1402)
5/8/10 9:54:52 AM [0x0-0x82082].HelloManagedWorld[652] at processing.core.PApplet.run(PApplet.java:1327)
5/8/10 9:54:52 AM [0x0-0x82082].HelloManagedWorld[652] at java.lang.Thread.run(Thread.java:637)
5/8/10 9:58:18 AM com.apple.launchd.peruser.501[103] ([0x0-0x82082].HelloManagedWorld[652]) Exited with exit code: 143
Re: Q: Exporting OpenAL, toxilibs.audioutils?
Reply #2 - May 8th, 2010, 1:11am
 
Finally solved the issue (I think) by copy/replace all the jars from within the audioutils library folder to the .app.

Copy to "HelloManagedWorld.app/Contents/Resources/Java"

Then I had to create the data folder inside the application.macosx folder and move the sound "synth.wav" there.

This fixed it for me at least. I hope this information will help anyone else out there.
Page Index Toggle Pages: 1