X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=snd_mem.c;h=f6f9c145d85c073cf9aa2421f5cdab6d3dc17068;hb=641d75aeb3b3934d9bbe1e2603bdd05d14a15ff1;hp=f6e6fcb35d1f8d878ae40705e41a05173be86a52;hpb=3363fb8484e2d85676337135e41e85e54d72451e;p=xonotic%2Fdarkplaces.git diff --git a/snd_mem.c b/snd_mem.c index f6e6fcb3..f6f9c145 100644 --- a/snd_mem.c +++ b/snd_mem.c @@ -90,7 +90,7 @@ snd_buffer_t *Snd_CreateSndBuffer (const unsigned char *samples, unsigned int sa sb->format.channels = in_format->channels; sb->format.width = in_format->width; sb->format.speed = sb_speed; - sb->maxframes = newsampleframes; + sb->maxframes = (unsigned int)newsampleframes; sb->nbframes = 0; if (!Snd_AppendToSndBuffer (sb, samples, sampleframes, in_format)) @@ -289,7 +289,7 @@ qboolean Snd_AppendToSndBuffer (snd_buffer_t* sb, const unsigned char *samples, } } - sb->nbframes += outcount; + sb->nbframes += (unsigned int)outcount; return true; }