programSound = new ProgrammableSound();
targetSound = new ProgrammableSound();
    private void setupSound() {        /** init sound API acording to the rendering enviroment you're using */        SoundAPIController.getSoundSystem(properties.getRenderer());        /** Set the 'ears' for the sound API */        SoundAPIController.getRenderer().setCamera(cam);        snode = new SoundNode();        /** Create program sound */        programSound = new ProgrammableSound();        /** Make the sound softer */        programSound.setGain(1f);        programSound.setLooping(false);        programSound.setPosition(cam.getLocation());        /** locate laser and register it with the prog sound. */        laserURL = HelloIntersection.class.getClassLoader().getResource(                "jmetest/data/sound/laser.ogg");        hitURL = HelloIntersection.class.getClassLoader().getResource(                "jmetest/data/sound/explosion.wav");        // Ask the system for a program id for this resource        int programid = SoundPool.compile(new URL[] { laserURL });        int hitid = SoundPool.compile(new URL[] { hitURL });        // Then we bind the programid we received to our laser event id.        programSound.bindEvent(laserEventID, programid);        programSound.bindEvent(hitEventID, hitid);        programSound.setMaxDistance(25f);        //        programSound.setNextProgram(programid);        snode.attachChild(programSound);        //... repeat above 3 lines to register other sounds.    }