i am create simple java music system. when i click the button song need to play. but i got the error as could not create audio stream from input stream. i went through some article but those are i tried but couldn't solove error . what i tried so far i attached below.
InputStream path;
AudioStream music = null;
try {
path = new FileInputStream(new File("src\\audio\\Blunt.mp3"));
music = new AudioStream(path);
AudioPlayer.player.start(music);
} catch (FileNotFoundException ex) {
Logger.getLogger(sound.class.getName()).log(Level.SEVERE, null, ex);
} catch (IOException ex) {
Logger.getLogger(sound.class.getName()).log(Level.SEVERE, null, ex);
}