a simple code that tries to load a wav file into an input stream.import java.io.*; import sun.audio.*; public class Sample { public static void main(String[] args) throws Exception { String soundFile = "C:\\KKKFOLDER\\samp.wav"; InputStream in = new FileInputStream(soundFile); AudioStream audioStream = new AudioStream(in); AudioPlayer.player.start(audioStream); } }
but no matter what code i tried to run from Google and web resources i always get this errorneed some precise guide with this one..could not create audio stream from input stream