mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-18 00:42:25 +00:00
remove some unneeded stuff
This commit is contained in:
parent
30825d4d0a
commit
396ff706ed
3 changed files with 0 additions and 33 deletions
|
@ -182,8 +182,6 @@ void S_Init (void)
|
|||
Con_Printf ("loading all sounds as 8bit\n");
|
||||
}
|
||||
|
||||
SND_InitScaletable ();
|
||||
|
||||
known_sfx = (sfx_t *) Hunk_AllocName (MAX_SFX*sizeof(sfx_t), "sfx_t");
|
||||
num_sfx = 0;
|
||||
|
||||
|
|
|
@ -237,24 +237,6 @@ void S_PaintChannels (int endtime)
|
|||
}
|
||||
}
|
||||
|
||||
void SND_InitScaletable (void)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
for (i = 0; i < 32; i++)
|
||||
{
|
||||
for (j = 0; j < 256; j++)
|
||||
/* When compiling with gcc-4.1.0 at optimisations O1 and
|
||||
higher, the tricky signed char type conversion is not
|
||||
guaranteed. Therefore we explicity calculate the signed
|
||||
value from the index as required. From Kevin Shanahan.
|
||||
See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26719
|
||||
*/
|
||||
// snd_scaletable[i][j] = ((signed char)j) * i * 8;
|
||||
snd_scaletable[i][j] = ((j < 128) ? j : j - 0xff) * i * 8;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void SND_PaintChannelFrom8 (channel_t *ch, sfxcache_t *sc, int count)
|
||||
{
|
||||
|
@ -298,21 +280,11 @@ void SND_PaintChannelFrom16 (channel_t *ch, sfxcache_t *sc, int count)
|
|||
|
||||
for (i = 0; i < count; i++)
|
||||
{
|
||||
if ((ch->pos + i) >= sc->length)
|
||||
{
|
||||
Con_Printf("Overran Sample!\n");
|
||||
}
|
||||
|
||||
data = sfx[i];
|
||||
left = (data * leftvol) >> 8;
|
||||
right = (data * rightvol) >> 8;
|
||||
paintbuffer[i].left += left;
|
||||
paintbuffer[i].right += right;
|
||||
|
||||
if (paintbuffer[i].left > (1 << 24))
|
||||
{
|
||||
Con_Printf("Clipping!\n");
|
||||
}
|
||||
}
|
||||
|
||||
ch->pos += count;
|
||||
|
|
|
@ -215,9 +215,6 @@ extern int snd_blocked;
|
|||
void S_LocalSound (const char *s);
|
||||
sfxcache_t *S_LoadSound (sfx_t *s);
|
||||
|
||||
wavinfo_t GetWavinfo (const char *name, byte *wav, int wavlength);
|
||||
|
||||
void SND_InitScaletable (void);
|
||||
|
||||
void S_AmbientOff (void);
|
||||
void S_AmbientOn (void);
|
||||
|
|
Loading…
Reference in a new issue