Hi, I started implementing sound in my application and ended up in a very early stage with an exception. I have really tried a lot, searched the forums and the internet, but did not find a solution. This is the code I added for sound processing:
JavaSoundMixer jsm = new JavaSoundMixer(view.getPhysicalEnvironment()); jsm.initialize(); String path = "file:sounds/song1.mid"; MediaContainer media = new MediaContainer(path); BackgroundSound sound = new BackgroundSound(); Bounds bounds = new BoundingSphere(new Point3d(), 1e6); sound.setSchedulingBounds(bounds); sound.setSoundData(media); sound.setLoop(-1); sound.setEnable(true); this.addChild(sound); ... and I get the followind exception when activating the scene: java.lang.NullPointerException at javax.media.j3d.SoundScheduler.renderChanges(SoundScheduler.java:955) at javax.media.j3d.SoundScheduler.processMessages(SoundScheduler.java:253) at javax.media.j3d.StructureUpdateThread.doWork(StructureUpdateThread.java:83) at javax.media.j3d.J3dThread.run(J3dThread.java:250) Has anybody experienced the same problem? What am I doing wrong? Thanks, Harald =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".