I downloaded a zip file that has drum sounds from http://99sounds.org/drum-samples/
I extracted them to a folder, I scanned for my desired sound, copied it into my project's 'src' file.
my code goes like this:
try{
music=new FileInputStream(new File("C:\\Users\\AMMUYUTAN\\Documents\\Java Specialization Course\\CS182P\\AudioSync\\src\\sound\\crash-acoustic.wav"));
AudioStream audios=new AudioStream(music);
AudioPlayer.player.start(audios);
}
catch(Exception ex){
JOptionPane.showMessageDialog(null,ex.getLocalizedMessage());
}
}
I'm having no exceptions, it's just that it wouldn't play while the other sounds I downloaded played. The only difference from those wav files is that this one is from a zip file while the others(working ones) are direct download. I tried other sounds from the same zip file and all the same they do not play.
How to make a wav file from a zip file play?