java.io.IOException: mark/reset not supported Java Audio Input Stream / Buffered Input Stream
I'm in the process of creating a 2D Java Platform Game and I'm trying to get audio to play from a .wav file while the game is running... Below is an AudioPlayer class I created to take care of loading the resource into an Audio Input Stream import javax.sound.sampled.*; import java.io.*; import java.util.*; import java.net.*; public class AudioPlayer { private Clip clip; public AudioPlayer(String s) { try { /************/ InputStream is = getClass().getResourceAsStream(s); AudioInputStream ais; BufferedInputStream bis = new BufferedInputStream(is); ais = AudioSystem.getAudioInputStream(bis); /