public Music(SoundPlayer var1, URL var2) { player = var1; try { LogicalOggStreamImpl var3 = new OnDemandUrlStream(var2).getLogicalStreams().iterator().next(); stream = new VorbisStream(var3); } catch (Exception ex) { LogUtil.logError("Error loading music from " + var2, ex); } new MusicPlayThread(this).start(); }
public AnimatedTextureFX(int targetTextureID, String fileToLoad, int scale) { super(targetTextureID); try { file = ImageIO.read(TextureManager.class.getResourceAsStream(fileToLoad)); } catch (IOException ex) { LogUtil.logError("Error loading texture from " + fileToLoad, ex); } scaling = file.getWidth() / 16; int frames = file.getHeight() / file.getWidth(); int frameSize = file.getWidth(); unStitch(frames, frameSize); }