Cast a 64-bit variable to a 32-bit int
This commit is contained in:
+2
-1
@@ -592,7 +592,8 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo)
|
||||
DataSize64 += BufferPadding+BufferPrePadding;
|
||||
DataSize64 *= FrameSize;
|
||||
|
||||
BufferSize = ((DataSize64 > STACK_DATA_SIZE) ? STACK_DATA_SIZE : DataSize64);
|
||||
BufferSize = (ALuint)((DataSize64 > STACK_DATA_SIZE) ?
|
||||
STACK_DATA_SIZE : DataSize64);
|
||||
BufferSize -= BufferSize%FrameSize;
|
||||
|
||||
if(Source->lSourceType == AL_STATIC)
|
||||
|
||||
Reference in New Issue
Block a user