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 › ess sound file loading outside of processing IDE
Page Index Toggle Pages: 1
ess sound file loading outside of processing IDE (Read 784 times)
ess sound file loading outside of processing IDE
Jan 30th, 2006, 7:01pm
 
I'm trying to load sound files writing something in eclipse and ess never seems to be able to find my sound files (works fine in the processing IDE tho)

anybody else have this problem?

or krister are you adding something to the path i'm giving to Channel? using something akin to dataPath()?
Re: ess sound file loading outside of processing I
Reply #1 - Jan 31st, 2006, 12:17am
 
yes, an update is due. i'll finish a fix and upload tonight.
Re: ess sound file loading outside of processing I
Reply #2 - Oct 15th, 2007, 10:43pm
 
traer -

My experience in messing around with this is that when you pass a relative file path into AudioChannel, Ess looks for it in your sketch's data directory (which means it must be bundled into the jar (or .app or .exe) when exported.

However if you pass in an absolute path -- ie, something starting with "/" (or "C:/" on Windows) -- Ess will look for that in your file system ... and you won't need to export the file with your sketch.

good luck.
R
Page Index Toggle Pages: 1