I have the code to play a .wav file working. however, there doesn't seem to be any actual audio playing. The program even prints the little test thing at the end. I can't seem to figure out why it won't produce any sound.
Thanks for the help in advance.
What I have tried:
import java.applet.*;
import java.io.File;
import java.net.*;
public class playAudio{
public static void main(String args[]) {
try {
AudioClip clip = Applet.newAudioClip(new URL("file:/------"));
clip.play();
System.out.println("test");
}
catch (MalformedURLException murle) {
System.out.println(murle);
}
}
}