Hi, i would really appreciate any help on this one. I am trying to get my java game created with the ACM package to play sound effects. I have all the .wav files i need and added to the package but have tried many things to get them to play in the program but nothing seems to work.
I have tried for example :
AudioClip hit = new AudioClip("hit.wav") ;
AudioClip hit = MediaTools.loadAudioClip("hit.wav");
AudioClip = getAudioClip("hit.wav");
MediaClip hit = new MediaClip("hit.wav");
does anyone have any idea what to do please? thanks