From 2ccf1e347569d1a2d7737a725e90c3de7f86795a Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Sun, 4 Dec 2005 19:21:04 +0000 Subject: bugfix: streaming buffers wasn't allocated now the jaol cinematics impl works. --- src/jake2/sound/joal/JOALSoundImpl.java | 4 ++-- 1 file 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); -- cgit v1.2.3