mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
report the name of the stream if reading is truncated
This commit is contained in:
parent
0421c33b85
commit
63e6ae2869
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue