Examples of OggClip


Examples of org.newdawn.easyogg.OggClip

  public static final int HEROBRINE = 31, CREEPER = 16;
 
  // Static Utilities used globally
  public static Map<String, OggClip> Clips;
  public static OggClip makeOGG(String name) throws IOException{
    return new OggClip(
      new FileInputStream(
        "src/Project1/img/" + name
      )
    );
  }
View Full Code Here

Examples of org.newdawn.easyogg.OggClip

    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");
    }
  }
View Full Code Here

Examples of org.newdawn.easyogg.OggClip

  public OggSound(String sound) {
    location = new RelativePath(sound);
    try {
      InputStream fis = this.getClass().getClassLoader().getResourceAsStream(sound);
      clip = new OggClip(fis);
    } catch (IOException e) {
      e.printStackTrace();
      System.err.println("sound clip not found.");
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.