* snd_mem.c: Remove prototype for non-existant function S_Alloc().

Remove unused global cache_full_cycle. Comment out unused function
DumpChunks().


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@341 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2010-10-18 20:39:10 +00:00
parent 0eaca6e6c2
commit 2de33fba8b

View file

@ -22,10 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "quakedef.h" #include "quakedef.h"
int cache_full_cycle;
byte *S_Alloc (int size);
/* /*
================ ================
ResampleSfx ResampleSfx
@ -110,12 +106,13 @@ sfxcache_t *S_LoadSound (sfx_t *s)
if (sc) if (sc)
return sc; return sc;
//Con_Printf ("S_LoadSound: %x\n", (int)stackbuf); // Con_Printf ("S_LoadSound: %x\n", (int)stackbuf);
// load it in // load it in
Q_strcpy(namebuffer, "sound/"); Q_strcpy(namebuffer, "sound/");
Q_strcat(namebuffer, s->name); Q_strcat(namebuffer, s->name);
// Con_Printf ("loading %s\n",namebuffer); // Con_Printf ("loading %s\n", namebuffer);
data = COM_LoadStackFile(namebuffer, stackbuf, sizeof(stackbuf)); data = COM_LoadStackFile(namebuffer, stackbuf, sizeof(stackbuf));
@ -224,13 +221,13 @@ void FindChunk(const char *name)
FindNextChunk (name); FindNextChunk (name);
} }
#if 0
void DumpChunks(void) void DumpChunks(void)
{ {
char str[5]; char str[5];
str[4] = 0; str[4] = 0;
data_p=iff_data; data_p = iff_data;
do do
{ {
memcpy (str, data_p, 4); memcpy (str, data_p, 4);
@ -240,6 +237,7 @@ void DumpChunks(void)
data_p += (iff_chunk_len + 1) & ~1; data_p += (iff_chunk_len + 1) & ~1;
} while (data_p < iff_end); } while (data_p < iff_end);
} }
#endif
/* /*
============ ============
@ -271,7 +269,9 @@ wavinfo_t GetWavinfo (const char *name, byte *wav, int wavlength)
// get "fmt " chunk // get "fmt " chunk
iff_data = data_p + 12; iff_data = data_p + 12;
// DumpChunks (); #if 0
DumpChunks ();
#endif
FindChunk("fmt "); FindChunk("fmt ");
if (!data_p) if (!data_p)