I am making a Java based game for which I want to add some sound effects. I searched and found myself more confused. I know the coding differs from file format to format. I just need some sounds - does not matter which format. So please suggest me the easiest file format. Code snippet will be extremely helpful.
What is the easiest format and way to provide sound effects?
for short sounds, you should use WAV or AU, WAV being the most known format for small sounds. i just finished this small program, all you need to do is have a .wav sound.
this program spawns a window with a button and every time you click that button the specified sound will play.
you can always change "click.wav" for another sound, including .au files.