Package org.newdawn.slick

Examples of org.newdawn.slick.Sound


   */
  public void init(GameContainer container) throws SlickException {
    SoundStore.get().setMaxSources(32);
   
    myContainer = container;
    sound = new Sound("testdata/restart.ogg");
    charlie = new Sound("testdata/cbrown01.wav");
    try {
      engine = AudioLoader.getAudio("WAV", ResourceLoader.getResourceAsStream("testdata/engine.wav"));
    } catch (IOException e) {
      throw new SlickException("Failed to load engine", e);
    }
    music = musica = new Music("testdata/SMB-X.XM");
    //music = musica = new Music("testdata/theme.ogg", true);
    musicb = new Music("testdata/kirby.ogg", true);
    burp = new Sound("testdata/burp.aif");
   
    music.play();
  }
View Full Code Here


 
  /**
   * @see org.newdawn.slick.BasicGame#init(org.newdawn.slick.GameContainer)
   */
  public void init(GameContainer container) throws SlickException {
    sound = new Sound(ResourceLoader.getResource("testdata/restart.ogg"));
    charlie = new Sound(ResourceLoader.getResource("testdata/cbrown01.wav"));
    engine = new Sound(ResourceLoader.getResource("testdata/engine.wav"));
    //music = musica = new Music("testdata/SMB-X.XM");
    music = musica = new Music(ResourceLoader.getResource("testdata/restart.ogg"), false);
    musicb = new Music(ResourceLoader.getResource("testdata/kirby.ogg"), false);
    burp = new Sound(ResourceLoader.getResource("testdata/burp.aif"));
  }
View Full Code Here

   * @see org.newdawn.slick.BasicGame#init(org.newdawn.slick.GameContainer)
   */
  public void init(GameContainer container) throws SlickException {
    LoadingList.setDeferredLoading(true);
   
    new Sound("testdata/cbrown01.wav");
    new Sound("testdata/engine.wav");
    sound = new Sound("testdata/restart.ogg");
    new Music("testdata/testloop.ogg");
    music = new Music("testdata/SMB-X.XM");
   
    new Image("testdata/cursor.png");
    new Image("testdata/cursor.tga");
View Full Code Here

TOP

Related Classes of org.newdawn.slick.Sound

Copyright © 2018 www.massapicom. 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.