try {
// java.net.URL soundURL = Sprites.class.getClassLoader().getResource(sound);
// InputStream fis = soundURL.openStream();
InputStream fis = Settings.class.getClassLoader().getResourceAsStream(sound);
// InputStream fis = new FileInputStream(sound);
clip = new OggClip(fis);
} catch (IOException e) {
e.printStackTrace();
System.out.println("sound clip not found or had error");
}
}