From: Carsten W. <ca...@us...> - 2006-11-24 00:40:40
|
Update of /cvsroot/jake2/jake2/src/jake2/sound/joal In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv518/src/jake2/sound/joal Modified Files: JOALSoundImpl.java Log Message: magic linux openal handling removed Index: JOALSoundImpl.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/sound/joal/JOALSoundImpl.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** JOALSoundImpl.java 23 Nov 2006 14:29:42 -0000 1.17 --- JOALSoundImpl.java 24 Nov 2006 00:40:30 -0000 1.18 *************** *** 40,69 **** private int[] buffers = new int[MAX_SFX + STREAM_QUEUE]; - // singleton private JOALSoundImpl() { } - /** - * unpack OpenAL shared library on Linux - */ - private void unpack() { - String path = System.getProperty("user.home") + "/.jake2/libopenal.so"; - File f = new File(path); - if (!f.exists()) { - try { - f.createNewFile(); - InputStream in = getClass().getResourceAsStream("/libopenal.so"); - OutputStream out = new FileOutputStream(f); - byte[] buf = new byte[8192]; - int len; - while ((len = in.read(buf)) > 0) { - out.write(buf, 0, len); - } - } catch (Exception e) { - f.delete(); - } - } - } - /* (non-Javadoc) * @see jake2.sound.SoundImpl#Init() --- 40,47 ---- private int[] buffers = new int[MAX_SFX + STREAM_QUEUE]; private JOALSoundImpl() { + // singleton } /* (non-Javadoc) * @see jake2.sound.SoundImpl#Init() |