return NULL;
if (strlen (name) >= sizeof (sfx->name))
- Host_Error ("S_FindName: sound name too long (%s)", name);
+ {
+ Con_Printf ("S_FindName: sound name too long (%s)", name);
+ return NULL;
+ }
// Look for this sound in the list of known sfx
for (sfx = known_sfx; sfx != NULL; sfx = sfx->next)
break;
}
if (prev_sfx == NULL)
- Sys_Error ("S_FreeSfx: Can't find SFX %s in the list!\n", sfx->name);
+ {
+ Con_Printf ("S_FreeSfx: Can't find SFX %s in the list!\n", sfx->name);
+ return;
+ }
}
// Free it
{
channel_t *target_chan, *check;
int ch_idx;
- size_t skip;
+ int skip;
if (!sound_started || !sfx || nosound.integer)
return -1;
if (check->sfx == sfx && !check->pos)
{
skip = 0.1 * sfx->format.speed;
- if (skip > sfx->total_length)
- skip = sfx->total_length;
+ if (skip > (int)sfx->total_length)
+ skip = (int)sfx->total_length;
if (skip > 0)
skip = rand() % skip;
target_chan->pos += skip;
{
if (sfx->fetcher != NULL)
{
- size = sfx->mempool->totalsize;
+ size = (int)sfx->mempool->totalsize;
total += size;
Con_Printf ("%c%c%c%c(%2db, %6s) %8i : %s\n",
(sfx->loopstart >= 0) ? 'L' : ' ',