report the name of the stream if reading is truncated

This commit is contained in:
Bill Currie 2003-04-15 21:11:41 +00:00
parent 0421c33b85
commit 63e6ae2869

View file

@ -131,7 +131,8 @@ read_samples (sfxbuffer_t *buffer, int count)
size = samples * info->width * info->channels;
data = alloca (size);
stream->read (stream->file, data, size, info);
if (stream->read (stream->file, data, size, info) < size)
Sys_Printf ("%s\n", sfx->name);
stream->resample (buffer, data, samples);
buffer->head += count;
if (buffer->head >= buffer->length)