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 › trouble loading audio files with ess
Page Index Toggle Pages: 1
trouble loading audio files with ess (Read 2014 times)
trouble loading audio files with ess
Nov 1st, 2005, 12:20am
 
Hi there, I'm using the file loading example in ESS, but I seem to be unable to load some files. Of four randomly chosen .aiff or .wav files, I can only get one to work.

I've stuck a zip of the sketch online with the offending sound files >

http://www.markallen.com/processing/sound_test-001.zip

any advice?

here's the code >

import krister.Ess.*;

Channel myChannel;

void setup() {
 size(256,200);

 // start up Ess
 Ess.start(this);

 // load "hello.aiff" into a new Channel
 myChannel=new Channel();
 myChannel.loadSound("thunder.aif");

 // start the sound looping forever
 myChannel.play(Ess.FOREVER);
}

void draw() {
}

// we are done, clean up Ess

public void stop() {
 Ess.stop();
 super.stop();
}
Re: trouble loading audio files with ess
Reply #1 - Nov 3rd, 2005, 8:20pm
 
My project is currently blocked due to the fact that ESS doesn't seem to support medium size mp3 files.

It throws a java.outOfMemory exception at me when I try to play a mp3-song at about 3MB.

The Sonia sound library is not a good option since it requires a browser plugin.

Anyone got any ideas? My project depends on being able to play mp3 files of normal size.
Re: trouble loading audio files with ess
Reply #2 - Nov 13th, 2005, 3:34am
 
Hery Mark, Can you give me the sampling rates and samples sizes (8 vs 16 vs 24) for the samples that you can't load? Also your platform? Thanks. K
Re: trouble loading audio files with ess
Reply #3 - Nov 22nd, 2005, 7:03am
 
Hi Krister,

Sorry for the delay in replying. The files that I were using were mono, 11025Hz. When I switched to using 16 bit stereo WAV files at 22050 KHz or better as suggested by JohnG in the thread above this one it worked.

thanks!

Mark

Re: trouble loading audio files with ess
Reply #4 - Dec 2nd, 2005, 6:32pm
 
thanks mark. i'll make a note of that in the documentation. must be a javasound limitation.
Re: trouble loading audio files with ess
Reply #5 - Dec 3rd, 2005, 7:04am
 
I am also having trouble with all files I try to load.

java.lang.NoSuchFieldError: folder
at krister.Ess.Channel.loadSound(Channel.java:290)

im running processing 95 and 96 on Tiger....

Here is my code

// Example by Krister Olsson

import krister.Ess.*;

Channel myChannel;

void setup() {
 size(256,200);

 // start up Ess
 Ess.start(this);

 // load "hello.aiff" into a new Channel
 myChannel=new Channel();
 myChannel.loadSound("boo.aiff");

 // start the sound looping forever
 myChannel.play(Ess.FOREVER);
}

void draw() {
}

// we are done, clean up Ess

public void stop() {
 Ess.stop();
 super.stop();
}


What am I doing wrong?

Thanks
Re: trouble loading audio files with ess
Reply #6 - Dec 3rd, 2005, 6:28pm
 
that's the issue described here:
http://processing.org/discourse/yabb_beta/YaBB.cgi?board=os_libraries_tools;action=display;num=1133358875
Page Index Toggle Pages: 1