aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/sound/lwjgl/PlaySound.java
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2005-05-08 13:37:46 +0000
committerCarsten Weisse <[email protected]>2005-05-08 13:37:46 +0000
commit06d4d63e21a0771bae2932e3284e2d90fd25a9cf (patch)
treee853b18b41d4dff07525228243e51d04ad539184 /src/jake2/sound/lwjgl/PlaySound.java
parent360ca724c3f1ddab3483426f4c864b91eb154b0d (diff)
handles different source volumes (e.g. explosions far away)
Diffstat (limited to 'src/jake2/sound/lwjgl/PlaySound.java')
-rw-r--r--src/jake2/sound/lwjgl/PlaySound.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jake2/sound/lwjgl/PlaySound.java b/src/jake2/sound/lwjgl/PlaySound.java
index 703e80c..1e3c4f8 100644
--- a/src/jake2/sound/lwjgl/PlaySound.java
+++ b/src/jake2/sound/lwjgl/PlaySound.java
@@ -3,7 +3,7 @@
*
* Copyright (C) 2003
*
- * $Id: PlaySound.java,v 1.1 2004-12-23 00:52:12 cawe Exp $
+ * $Id: PlaySound.java,v 1.2 2005-05-08 13:37:46 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -59,7 +59,7 @@ public class PlaySound {
int entnum;
int entchannel;
int bufferId;
- // float volume;
+ float volume;
float attenuation;
float[] origin = {0,0,0};
@@ -158,7 +158,7 @@ public class PlaySound {
ps.entnum = entnum;
ps.entchannel = entchannel;
ps.bufferId = bufferId;
- // ps.volume = volume;
+ ps.volume = volume;
ps.attenuation = attenuation;
ps.beginTime = Globals.cl.time + (long)(timeoffset * 1000);
PlaySound.add(ps);