diff options
-rw-r--r-- | Alc/mixer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c index 2c7af645..4112abcf 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -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) |