public static void main(String[] args) {
		SoundFactory sf = new SoundFactory();

		ISound sound = sf.createSound("/sounds/sound_ambience_nature.wav");
		sound.playAsynchronous();

		System.out.println("hola");
		
		JFrame f = new JFrame("Load Image Sample");
        
        f.addWindowListener(new WindowAdapter(){
                public void windowClosing(WindowEvent e) {
                    System.exit(0);
                }
            });
 
        ImageFactory iff = new ImageFactory();
         IImage iim = iff.createImage("/images/megaman.gif");
         iim.filterGreyScale(1);
         JLabel picLabel = new JLabel(new ImageIcon(iim.getImageObject()));
         f.add(picLabel);
         f.pack();
        f.setVisible(true);
        try {
           
            File outputfile = new File("saved1.gif");
            ImageIO.write((RenderedImage) iim.getImageObject(), "gif", outputfile);
        } catch (IOException e) {
        }
		
//		ISound cancionMidi = sf.createSound("/sounds/N64_MarioKart64.mid");
//		cancionMidi.playSynchronous();
        
        
	}