X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=snd_wav.c;h=439ec73cbaf4cab9dd281e75976cdb516785c966;hp=041a25524cd6ded477c4611eb71fd5ccfa0f856b;hb=5d00fdd2bc32e9635c51a22bace2e0a883f3561f;hpb=532d14fdb70ad99da30e41e32c21a9022f4ba2fb diff --git a/snd_wav.c b/snd_wav.c index 041a2552..439ec73c 100644 --- a/snd_wav.c +++ b/snd_wav.c @@ -264,7 +264,7 @@ qboolean S_LoadWavFile (const char *filename, sfx_t *s) Con_DPrintf ("Loading WAV file \"%s\"\n", filename); - info = GetWavinfo (s->name, data, fs_filesize); + info = GetWavinfo (s->name, data, (int)fs_filesize); // Stereo sounds are allowed (intended for music) if (info.channels < 1 || info.channels > 2) { @@ -313,7 +313,7 @@ qboolean S_LoadWavFile (const char *filename, sfx_t *s) } #endif - sb->length = ResampleSfx (data + info.dataofs, info.samples, &s->format, sb->data, s->name); + sb->length = (int)ResampleSfx (data + info.dataofs, info.samples, &s->format, sb->data, s->name); s->format.speed = shm->format.speed; s->total_length = sb->length; sb->offset = 0;