again bothered with my doubts, I have the following button that plays an audio file from a file in C:, but I need that with another button to be able to stop this audio track. How can I do it ?, in advance I appreciate any help suggestion or comment greetings.
private void equipo7ActionPerformed(java.awt.event.ActionEvent evt) {
String sonido1 = "C:/recursos/equipo10.wav";
InputStream in = new FileInputStream(sonido1);
AudioStream audio1 = new AudioStream(in);
AudioPlayer.player.start(audio1);
Arduino.sendData("H");
} catch (Exception ex) {
Logger.getLogger(Window.class.getName()).log(Level.SEVERE, null,
ex);
} // TODO add your handling code here:
}