I want to add a sound in a frame I made. I googled it and I found that Java doesn't support mp3 so I converted a song in my disk to a wav file. After impoting sun.audio.* and java.io.* in my project, I add these lines in the frame constructor
File xx = new File("C:\\Users\\LENOVO\\Desktop\\oss.wav");
InputStream in = new FileInputStream(xx);
AudioStream as = new AudioStream(in);
AudioPlayer.player.start(as);
but it doesn't work, I'm not sure what is the problem and I hope someone of you can help me to figure it out.