hi all!!!!!
 
I am trying to create a BackgroundSound using the following code:
 
MediaContainer song = new MediaContainer("Jungle.wav");
BackgroundSound sound = new BackgroundSound(song, 20.0f);
sound.setSchedulingBounds(new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 100.0));
 
Jungle.wav is in my current directory.
When i run it, i get the following execption:
"Exception in thread "main" javax.media.j3d.SoundException: MediaContainer: setURL - bad URL".
 
Where am i going wrong???
I've tried specifying the full path, still it doesn't work.
 
any help will be appreciated.....
 
Ajit

Reply via email to