Its weird, when I am playing my sound, it plays right the first time, but it sound electronic the following times. But it only does it with that sound, my other sound works fine every time. Here is my playing method.
Does that make sense?
package Sound;
import java.io.InputStream;
import sun.audio.AudioPlayer;
/**
* @class Player
* @date Mar 3, 2013 4:22:13 PM
* @author
*/
public class Player {
static InputStream in;
public static void run(String sound) {
in = new Player().getClass().getClassLoader().getResourceAsStream(sound);
AudioPlayer.player.start(in);
}
}
Does that make sense?