summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2005-07-23 17:21:35 +0000
committerSimon Howard2005-07-23 17:21:35 +0000
commit54eadca987f07550997b558e24b1c761c75f444b (patch)
treebb78c37b279ec418b52a85636bcf73a0ed58891a
parent73e68c76833526304bb062144f62b9358f6f77e5 (diff)
downloadchocolate-doom-54eadca987f07550997b558e24b1c761c75f444b.tar.gz
chocolate-doom-54eadca987f07550997b558e24b1c761c75f444b.tar.bz2
chocolate-doom-54eadca987f07550997b558e24b1c761c75f444b.zip
Remove step table (unused, adds dependency on pow function)
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 12
-rw-r--r--src/i_sound.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/src/i_sound.c b/src/i_sound.c
index 4bf121e5..b0feb982 100644
--- a/src/i_sound.c
+++ b/src/i_sound.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: i_sound.c 8 2005-07-23 16:44:57Z fraggle $
+// $Id: i_sound.c 12 2005-07-23 17:21:35Z fraggle $
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.3 2005/07/23 17:21:35 fraggle
+// Remove step table (unused, adds dependency on pow function)
+//
// Revision 1.2 2005/07/23 16:44:55 fraggle
// Update copyright to GNU GPL
//
@@ -35,7 +38,7 @@
//-----------------------------------------------------------------------------
static const char
-rcsid[] = "$Id: i_sound.c 8 2005-07-23 16:44:57Z fraggle $";
+rcsid[] = "$Id: i_sound.c 12 2005-07-23 17:21:35Z fraggle $";
#include <stdio.h>
#include <stdlib.h>
@@ -153,9 +156,6 @@ int channelhandles[NUM_CHANNELS];
// Used to catch duplicates (like chainsaw).
int channelids[NUM_CHANNELS];
-// Pitch to stepping lookup, unused.
-int steptable[256];
-
// Volume lookups.
int vol_lookup[128*256];
@@ -414,20 +414,12 @@ void I_SetChannels()
int i;
int j;
- int* steptablemid = steptable + 128;
-
// Okay, reset internal mixing channels to zero.
/*for (i=0; i<NUM_CHANNELS; i++)
{
channels[i] = 0;
}*/
- // This table provides step widths for pitch parameters.
- // I fail to see that this is currently used.
- for (i=-128 ; i<128 ; i++)
- steptablemid[i] = (int)(pow(2.0, (i/64.0))*65536.0);
-
-
// Generates volume lookup tables
// which also turn the unsigned samples
// into signed samples.
@@ -504,8 +496,6 @@ I_StartSound
// Debug.
//fprintf( stderr, "starting sound %d", id );
- // Returns a handle (not used).
- id = addsfx( id, vol, steptable[pitch], sep );
// fprintf( stderr, "/handle is %d\n", id );