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 › Sonia only finding some files
Page Index Toggle Pages: 1
Sonia only finding some files (Read 785 times)
Sonia only finding some files
Nov 29th, 2008, 5:00am
 
I have Sonia playing an .aiff file and .wav file, although these two are unique in which they are the only files which will not cause a NullPointerException.

If i try any other .aiff or .wav i file i get:

Sonia: Please make sure you have entered the correct Sample file name to load
Exception in thread "Animation Thread" java.lang.NullPointerException
at pitaru.sonia_v2_9.BJSyn.setVolume(BJSyn.java:192)
at pitaru.sonia_v2_9.Sample.setVolume(Sample.java:140)
at pitaru.sonia_v2_9.Sample.<init>(Sample.java:47)
at latest_project.setup(latest_project.java:72)
at processing.core.PApplet.handleDraw(PApplet.java:1372)
at processing.core.PApplet.run(PApplet.java:1300)
at java.lang.Thread.run(Unknown Source)

Although the files are present in the data folder and named correctly,

This really has me stumped, anyone have any ideas why my .aiff and .wav files may be causing this error?
Re: Sonia only finding some files
Reply #1 - Apr 1st, 2009, 5:39am
 
same for me, sonia gets ma an null pointer error when trying to load any file.
btw: I'm on Linux maybe thats relevant.

edit: it seems to be very relevant (and sonia seems to work with winshit or mac only)
http://processing.org/discourse/yabb2/num_1159134166.html

I have no internet on my winshit PC, sux to work with it Sad
Page Index Toggle Pages: 1