minor cleanups

This commit is contained in:
Bill Currie 2003-04-15 04:03:02 +00:00
parent 130a3f4d59
commit 5505aba316
2 changed files with 1 additions and 7 deletions

View file

@ -156,7 +156,6 @@ extern channel_t channels[MAX_CHANNELS];
// 0 to MAX_DYNAMIC_CHANNELS-1 = normal entity sounds
// MAX_DYNAMIC_CHANNELS to MAX_DYNAMIC_CHANNELS + NUM_AMBIENTS -1 = water, etc
// MAX_DYNAMIC_CHANNELS + NUM_AMBIENTS to total_channels = static sounds
extern int sound_delta;
extern int total_channels;
#endif//__snd_render_h

View file

@ -125,9 +125,6 @@ read_samples (sfxbuffer_t *buffer, int count)
sfxstream_t *stream = (sfxstream_t *) sfx->data;
wavinfo_t *info = &stream->wavinfo;
if (count <= 0)
Sys_Error ("read_samples: count <= 0");
stepscale = (float) info->rate / shm->speed; // usually 0.5, 1, or 2
samples = count * stepscale;
@ -166,8 +163,6 @@ SND_StreamAdvance (sfxbuffer_t *buffer, int count)
headpos = sfx->length;
else
headpos -= sfx->length - sfx->loopstart;
if (headpos > sfx->length)
Sys_Error ("huh");
}
if (samples < count) {
@ -549,7 +544,7 @@ SND_ResampleStereo (sfxbuffer_t *sc, byte *data, int length)
{
byte *x = sc->data + sc->length * outwidth * 2;
if (memcmp (x, "\xde\xad\xbe\xef", 4))
Sys_Error ("SND_ResampleMono screwed the pooch %02x%02x%02x%02x",
Sys_Error ("SND_ResampleStereo screwed the pooch %02x%02x%02x%02x",
x[0], x[1], x[2], x[3]);
}
}