aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2007-05-11 20:33:53 +0000
committerCarsten Weisse <[email protected]>2007-05-11 20:33:53 +0000
commit59dd837defa2060ac02d5e213acc4f8be9af6a61 (patch)
treef76d058d4e873548a37f647899452456416e9586 /src
parent3ebf1e8917160998765a2e16b46a474d5b1ef03f (diff)
update to lwjgl 1.1 (bugfix release)
Diffstat (limited to 'src')
-rw-r--r--src/jake2/sound/lwjgl/LWJGLSoundImpl.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/jake2/sound/lwjgl/LWJGLSoundImpl.java b/src/jake2/sound/lwjgl/LWJGLSoundImpl.java
index 97270de..3a12494 100644
--- a/src/jake2/sound/lwjgl/LWJGLSoundImpl.java
+++ b/src/jake2/sound/lwjgl/LWJGLSoundImpl.java
@@ -2,19 +2,22 @@
* LWJGLSoundImpl.java
* Copyright (C) 2004
*
- * $Id: LWJGLSoundImpl.java,v 1.9 2006-10-26 22:02:55 cawe Exp $
+ * $Id: LWJGLSoundImpl.java,v 1.10 2007-05-11 20:33:53 cawe Exp $
*/
package jake2.sound.lwjgl;
import jake2.Defines;
import jake2.Globals;
-import jake2.game.*;
+import jake2.game.Cmd;
+import jake2.game.cvar_t;
+import jake2.game.entity_state_t;
import jake2.qcommon.*;
import jake2.sound.*;
import jake2.util.Lib;
import jake2.util.Vargs;
import java.nio.*;
+
import org.lwjgl.LWJGLException;
import org.lwjgl.openal.*;
@@ -102,12 +105,12 @@ public final class LWJGLSoundImpl implements Sound {
deviceName = "DirectSound3D";
}
- String defaultSpecifier = ALC.alcGetString(ALC.ALC_DEFAULT_DEVICE_SPECIFIER);
+ String defaultSpecifier = ALC10.alcGetString(AL.getDevice(), ALC10.ALC_DEFAULT_DEVICE_SPECIFIER);
Com.Printf(os + " using " + ((deviceName == null) ? defaultSpecifier : deviceName) + '\n');
// Check for an error.
- if (ALC.alcGetError() != ALC.ALC_NO_ERROR)
+ if (ALC10.alcGetError(AL.getDevice()) != ALC10.ALC_NO_ERROR)
{
Com.DPrintf("Error with SoundDevice");
}