if (fwrite(out, 4, length, cl_avidemo_soundfile) < length)
{
Cvar_SetValueQuick(&cl_avidemo, 0);
- Con_Printf("avi saving sound failed, out of disk space? stopping avi demo capture.\n");
+ Con_Print("avi saving sound failed, out of disk space? stopping avi demo capture.\n");
}
}
else if (cl_avidemo_soundfile)
// if at end of loop, restart
if (ltime >= ch->end)
{
- if (sc->loopstart >= 0)
+ if (sc->loopstart >= 0 || ch->forceloop)
{
- ch->pos = sc->loopstart;
+ ch->pos = bound(0, sc->loopstart, sc->length - 1);
ch->end = ltime + sc->length - ch->pos;
}
else