aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2006-11-24 00:40:30 +0000
committerCarsten Weisse <[email protected]>2006-11-24 00:40:30 +0000
commite42b95ae22e353b8692257faf5dc1be764fa3588 (patch)
tree319607b723cde58fecb4e633f036031278adea34 /src
parentbea899618bed414d47597d164d85dcbc244ad5ca (diff)
magic linux openal handling removed
Diffstat (limited to 'src')
-rw-r--r--src/jake2/sound/joal/JOALSoundImpl.java26
1 files changed, 2 insertions, 24 deletions
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()
*/