audio - Java - playing some of *.wav files outside of IDE fails -


i have 3 wav files 3 different sources, , 1 file working. runs fine in eclipse, whenever compile it, doesn't. short clips < 1 second. 1 of them should played, when hover on buttons. here code use playblack:

static eventhandler<mouseevent> menuhover =new eventhandler<mouseevent>() { @override public void handle(mouseevent event) {  try{         clip clip = audiosystem.getclip(); file menuhover = new file("menuhover.wav"); audioinputstream inputstream = audiosystem.getaudioinputstream(menuhover.getabsolutefile());  clip.open(inputstream); clip.start();  clip.setframeposition(0); } catch (exception g) { g.printstacktrace(); }  } }; 

the 1 working has format of (pcm_unsigned 22050.0 hz, 8 bit, mono, 1 bytes/frame)

and 1 isn't (pcm_signed 48000.0 hz, 16 bit, stereo, 4 bytes/frame, little-endian)

i converted not working files, same format working one, still doesn't work. checked, if file output has correct path, has. don't errors.

do have idea problem?


Comments