I have about 20 different sound, and i want it to be played for example every 1 second. every sound just have a duration about 0.7 second. I don't even know how to import mp3 to java either. How can i do this in java?
UPDATE
try
{
in = new FileInputStream(new File("C:\\Users\\Toshiba\\Downloads\\Music\\adios.wav"));
AudioStream as = new AudioStream(in);
AudioPlayer.player.start(as);
Thread.sleep(1*1000);
} catch (Exception e)
{
JOptionPane.showMessageDialog(null, e);
}
i got new problem. i can't stop it once it start