aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2007-02-27 13:44:17 +0000
committerCarsten Weisse <[email protected]>2007-02-27 13:44:17 +0000
commit3befd95aede52544d9a665d3e1be7376cab929d9 (patch)
tree269df0e22e03c43f0d850576df6aa0bf626eafd2 /src
parentfb7a87e51165b5f561aab998b3472bdef1dd8e72 (diff)
hack of old joal EAX bug removed
Diffstat (limited to 'src')
-rw-r--r--src/jake2/sound/joal/JOALSoundImpl.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/jake2/sound/joal/JOALSoundImpl.java b/src/jake2/sound/joal/JOALSoundImpl.java
index 5d84580..c1578cf 100644
--- a/src/jake2/sound/joal/JOALSoundImpl.java
+++ b/src/jake2/sound/joal/JOALSoundImpl.java
@@ -202,12 +202,6 @@ public final class JOALSoundImpl implements Sound {
private int currentEnv = -1;
private boolean changeEnv = true;
- // TODO workaround for JOAL-bug
- // should be EAX.LISTENER
- private final static int EAX_LISTENER = 0;
- // should be EAX.SOURCE
- private final static int EAX_SOURCE = 1;
-
/* (non-Javadoc)
* @see jake2.sound.SoundImpl#Update(float[], float[], float[], float[])
*/
@@ -225,7 +219,7 @@ public final class JOALSoundImpl implements Sound {
// workaround for environment initialisation
if (currentEnv == -1) {
eaxEnv.put(0, EAX.EAX_ENVIRONMENT_UNDERWATER);
- eax.EAXSet(EAX_LISTENER, EAX.DSPROPERTY_EAXLISTENER_ENVIRONMENT | EAX.DSPROPERTY_EAXLISTENER_DEFERRED, 0, eaxEnv, 4);
+ eax.EAXSet(EAX.LISTENER, EAX.DSPROPERTY_EAXLISTENER_ENVIRONMENT | EAX.DSPROPERTY_EAXLISTENER_DEFERRED, 0, eaxEnv, 4);
changeEnv = true;
}
@@ -238,7 +232,7 @@ public final class JOALSoundImpl implements Sound {
}
if (changeEnv) {
eaxEnv.put(0, currentEnv);
- eax.EAXSet(EAX_LISTENER, EAX.DSPROPERTY_EAXLISTENER_ENVIRONMENT | EAX.DSPROPERTY_EAXLISTENER_DEFERRED, 0, eaxEnv, 4);
+ eax.EAXSet(EAX.LISTENER, EAX.DSPROPERTY_EAXLISTENER_ENVIRONMENT | EAX.DSPROPERTY_EAXLISTENER_DEFERRED, 0, eaxEnv, 4);
}
}