Play WAV files JAVA

Thanks to this class taken from a forum you can play wave sound files.

to play the files, just run
new wav_player (“/Users/basso/Dropbox/workspace/OBLIG4/src/test.wav”).start();
if windows:
new wav_player (“C:\\dir\\test.wav”).start();

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>