aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2005-12-04 19:21:04 +0000
committerCarsten Weisse <[email protected]>2005-12-04 19:21:04 +0000
commit2ccf1e347569d1a2d7737a725e90c3de7f86795a (patch)
tree391bb64b0894813e7a935f39599a7f9cad312b46 /src
parent491d53ee80d4ad0bd0e1666dc302257893f0f58f (diff)
bugfix: streaming buffers wasn't allocated
now the jaol cinematics impl works.
Diffstat (limited to 'src')
-rw-r--r--src/jake2/sound/joal/JOALSoundImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jake2/sound/joal/JOALSoundImpl.java b/src/jake2/sound/joal/JOALSoundImpl.java
index 0dff7ca..6011285 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.14 2005-12-04 17:28:48 cawe Exp $
+ * $Id: JOALSoundImpl.java,v 1.15 2005-12-04 19:21:04 cawe Exp $
*/
package jake2.sound.joal;
@@ -94,7 +94,7 @@ public final class JOALSoundImpl implements Sound {
// set the master volume
s_volume = Cvar.Get("s_volume", "0.7", Defines.CVAR_ARCHIVE);
- al.alGenBuffers(MAX_SFX, buffers);
+ al.alGenBuffers(buffers.length, buffers);
int count = Channel.init(al, buffers);
Com.Printf("... using " + count + " channels\n");
al.alDistanceModel(AL.AL_INVERSE_DISTANCE_CLAMPED);