Hi, and beforehand thanks so much who can help me, this is my code, that i use for a Interactive Audio Project, this Aplication should show a interface and detect a hand and if a hand is un the area of rectangle then should light this rectangle and play some audio clip, but, when should play the sound, throw the follow error
NullPointerException:
JavaSound Minim Error
Error invoking createInput on the file loader object: null
this is the Script
This part is in a Tab
import SimpleOpenNI.*;
import ddf.minim.*;
SimpleOpenNI context;
Sonido MiSonido;
// NITE
XnVSessionManager sessionManager;
XnVSelectableSlider2D trackPad;
int gridX = 7;
int gridY = 5;
Trackpad trackPadViz;
void setup()
{
context = new SimpleOpenNI(this,SimpleOpenNI.RUN_MODE_MULTI_THREADED);
MiSonido= new Sonido();
// mirror is by default enabled
context.setMirror(true);
// enable depthMap generation
if(context.enableDepth() == false)
{
println("Can't open the depthMap, maybe the camera is not connected!");