if (endtime - paintedtime > PAINTBUFFER_SIZE)
end = paintedtime + PAINTBUFFER_SIZE;
- // clear the paint buffer, filling it with data from rawsamples (music/video/whatever)
- S_RawSamples_Dequeue(&paintbuffer->left, end - paintedtime);
+ // clear the paint buffer
+ memset (&paintbuffer, 0, (end - paintedtime) * sizeof (paintbuffer[0]));
// paint in the channels.
ch = channels;
if (count > 0)
{
+ if (ch->leftvol > 255)
+ ch->leftvol = 255;
+ if (ch->rightvol > 255)
+ ch->rightvol = 255;
+
if (sfx->format.width == 1)
stop_paint = !SND_PaintChannelFrom8(ch, count);
else
const sfxbuffer_t *sb;
int i, n;
- if (ch->leftvol > 255)
- ch->leftvol = 255;
- if (ch->rightvol > 255)
- ch->rightvol = 255;
-
lscale = snd_scaletable[ch->leftvol >> 3];
rscale = snd_scaletable[ch->rightvol >> 3];