From e42b95ae22e353b8692257faf5dc1be764fa3588 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Fri, 24 Nov 2006 00:40:30 +0000 Subject: magic linux openal handling removed --- src/jake2/sound/joal/JOALSoundImpl.java | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'src/jake2/sound/joal/JOALSoundImpl.java') diff --git a/src/jake2/sound/joal/JOALSoundImpl.java b/src/jake2/sound/joal/JOALSoundImpl.java index 293bc53..f666806 100644 --- a/src/jake2/sound/joal/JOALSoundImpl.java +++ b/src/jake2/sound/joal/JOALSoundImpl.java @@ -2,7 +2,7 @@ * JOALSoundImpl.java * Copyright (C) 2004 * - * $Id: JOALSoundImpl.java,v 1.17 2006-11-23 14:29:42 cawe Exp $ + * $Id: JOALSoundImpl.java,v 1.18 2006-11-24 00:40:30 cawe Exp $ */ package jake2.sound.joal; @@ -39,32 +39,10 @@ public final class JOALSoundImpl implements Sound { private int[] buffers = new int[MAX_SFX + STREAM_QUEUE]; - // singleton private JOALSoundImpl() { + // singleton } - /** - * 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() */ -- cgit v1.2.3