git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5500
d7cf8633-e32d-0410-b094-
e92efae38249
typedef struct
{
- size_t length;
- size_t offset;
+ unsigned int length;
+ unsigned int offset;
qbyte data[4]; // variable sized
} sfxbuffer_t;
unsigned int flags; // cf SFXFLAG_* defines
snd_format_t format;
int loopstart;
- size_t total_length;
+ unsigned int total_length;
const snd_fetcher_t *fetcher;
void *fetcher_data; // Per-sfx data for the sound fetching functions
};
if (sb->offset <= start && sb->offset + sb->length >= start + nbsamples)
return sb;
- newlength = sb->offset + sb->length - start;
+ newlength = (int)(sb->offset + sb->length) - start;
// If we need to skip some data before decompressing the rest, or if the stream has looped
if (newlength < 0 || sb->offset > start)