diff options
author | Carsten Weisse <[email protected]> | 2006-11-23 13:13:58 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2006-11-23 13:13:58 +0000 |
commit | 15ba776e7d03379ecdcb8cff912bac257636eaa0 (patch) | |
tree | 210256fbc11dc30326b05ba84297304e53e5254e | |
parent | 49521fc9affd2d9bc15b72c5977cda97009fc684 (diff) |
reset the number of allocated channels
-rw-r--r-- | src/jake2/sound/joal/Channel.java | 3 | ||||
-rw-r--r-- | src/jake2/sound/lwjgl/Channel.java | 3 |
2 files changed, 4 insertions, 2 deletions
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 { |