git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9912
d7cf8633-e32d-0410-b094-
e92efae38249
if (ch->pos < 0)
{
count = -ch->pos;
if (ch->pos < 0)
{
count = -ch->pos;
- count = min(count, frames - ltime);
+ count = min(count, (int)frames - ltime);
ch->pos += count;
ltime += count;
}
ch->pos += count;
ltime += count;
}
+ while (ltime < (int)frames)
{
// paint up to end of buffer or of input, whichever is lower
count = sfx->total_length - ch->pos;
{
// paint up to end of buffer or of input, whichever is lower
count = sfx->total_length - ch->pos;
- count = bound(0, count, frames - ltime);
+ count = bound(0, count, (int)frames - ltime);
if (count)
{
SND_PaintChannel (ch, paintbuffer + ltime, count);
if (count)
{
SND_PaintChannel (ch, paintbuffer + ltime, count);