From 15ba776e7d03379ecdcb8cff912bac257636eaa0 Mon Sep 17 00:00:00 2001 From: Carsten Weisse Date: Thu, 23 Nov 2006 13:13:58 +0000 Subject: reset the number of allocated channels --- src/jake2/sound/joal/Channel.java | 3 ++- src/jake2/sound/lwjgl/Channel.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/jake2/sound/joal/Channel.java b/src/jake2/sound/joal/Channel.java index 09d2c16..51d111b 100644 --- a/src/jake2/sound/joal/Channel.java +++ b/src/jake2/sound/joal/Channel.java @@ -3,7 +3,7 @@ * * Copyright (C) 2003 * - * $Id: Channel.java,v 1.8 2006-11-23 12:32:49 cawe Exp $ + * $Id: Channel.java,v 1.9 2006-11-23 13:13:58 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -107,6 +107,7 @@ public class Channel { Channel.buffers = buffers; // create channels int sourceId; + numChannels = 0; for (int i = 0; i < MAX_CHANNELS; i++) { try { diff --git a/src/jake2/sound/lwjgl/Channel.java b/src/jake2/sound/lwjgl/Channel.java index 0ef06dd..4a0d5f0 100644 --- a/src/jake2/sound/lwjgl/Channel.java +++ b/src/jake2/sound/lwjgl/Channel.java @@ -3,7 +3,7 @@ * * Copyright (C) 2003 * - * $Id: Channel.java,v 1.10 2006-11-23 12:32:49 cawe Exp $ + * $Id: Channel.java,v 1.11 2006-11-23 13:13:57 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -107,6 +107,7 @@ public class Channel { Channel.buffers = buffers; // create channels int sourceId; + numChannels = 0; for (int i = 0; i < MAX_CHANNELS; i++) { try { -- cgit v1.2.3